Skip to content

Conversation

@ArtemHoruzhenko
Copy link
Collaborator

What

Moved frompopover to modal for deploy button

Testing

Before After
Screenshot 2025-11-11 at 10 32 10 Screenshot 2025-11-11 at 10 31 39
Screenshot 2025-11-11 at 10 32 50 Screenshot 2025-11-11 at 10 31 50

@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2025

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.59% 20551/24884
🟡 Branches 67.77% 8780/12956
🟡 Functions 77.26% 5531/7159
🟢 Lines 82.99% 20121/24244

Test suite run success

5266 tests passing in 688 suites.

Report generated by 🧪jest coverage report action from a05694b

}}
button={
<>
<Modal.Compose>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip: Do we need to compose the modal on our own, we already have a FormDialog that is a wrapper for the modal. If there is nothing custom here, we can go for it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, I didn;t find a way to add data test id to rhe default buttons

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch, that hurts. I'll give you my approval, but composing the whole modal just for the sake of providing two test IDs looks too much to me.

I would rather update the tests to use the labels of the buttons as a selector, instead of composing the modal and detaching it from Redis UI this way.

valkirilov
valkirilov previously approved these changes Nov 11, 2025
KrumTy
KrumTy previously approved these changes Nov 12, 2025
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
import styles from './styles.module.scss'
import { RiTooltip } from 'uiSrc/components/base'
import { Modal } from '@redis-ui/components'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { Modal } from '@redis-ui/components'
import { Modal } from 'uiSrc/components/base/display/modal'

>
Deploy
</PrimaryButton>
<>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<>

we can directly return the <Modal ...

Copy link
Collaborator

@pawelangelow pawelangelow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a couple of comments about small issues to be fixed

@ArtemHoruzhenko ArtemHoruzhenko merged commit df1b23d into main Nov 12, 2025
11 checks passed
@ArtemHoruzhenko ArtemHoruzhenko deleted the fe/feature/RI-7687-adjust-rdi-deploy-modal branch November 12, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants