-
Notifications
You must be signed in to change notification settings - Fork 420
RI-7687: adjust RDI deploy modal #5170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RI-7687: adjust RDI deploy modal #5170
Conversation
Code Coverage - Frontend unit tests
Test suite run success5266 tests passing in 688 suites. Report generated by 🧪jest coverage report action from a05694b |
| }} | ||
| button={ | ||
| <> | ||
| <Modal.Compose> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
...ce/components/header/components/buttons/deploy-pipeline-button/DeployPipelineButton.spec.tsx
Show resolved
Hide resolved
...nstance/components/header/components/buttons/deploy-pipeline-button/DeployPipelineButton.tsx
Outdated
Show resolved
Hide resolved
...nstance/components/header/components/buttons/deploy-pipeline-button/DeployPipelineButton.tsx
Outdated
Show resolved
Hide resolved
| 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' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import { Modal } from '@redis-ui/components' | |
| import { Modal } from 'uiSrc/components/base/display/modal' |
| > | ||
| Deploy | ||
| </PrimaryButton> | ||
| <> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <> |
we can directly return the <Modal ...
pawelangelow
left a comment
There was a problem hiding this 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
What
Moved frompopover to modal for deploy button
Testing