refactor: [M3-8143] - Improve PowerActionsDialog#10667
refactor: [M3-8143] - Improve PowerActionsDialog#10667carrillo-erik merged 8 commits intolinode:developfrom
Conversation
|
Coverage Report: ✅ |
abailly-akamai
left a comment
There was a problem hiding this comment.
Looks good and other changes are safe. Left a comment for a fix in the reboot modal that will improve the UX
| title={`Rebuild Linode ${linodeLabel ?? ''}`} | ||
| > | ||
| <StyledDiv> | ||
| {unauthorized && <LinodePermissionsError />} |
There was a problem hiding this comment.
This components needs its form state reset on either close or open - especially since the Config Select clearable prop does not seem to any effect. Ex: select a config and close the modal, open it back up and the previously selected config will be selected and unclearable.
There was a problem hiding this comment.
@abailly-akamai This issue was also occurring with onSubmit(), both cases for the state reset have been addressed. Also, the isClearable prop now works as expected.
abailly-akamai
left a comment
There was a problem hiding this comment.
Thanks for addressing the changes - confirmed the modal select is not clearable and reset properly. ✅
Description 📝
This PR helps improve the janky loading state of the
PowerActionsDialogby removing the flash of content when a dialog or drawer is rendered. The user is now shown helper text in the Reboot Linode dialog above the config select component.Changes 🔄
List any change relevant to the reviewer.
useLinodeQuery.linodeLabelprop to child component to eliminate the flash of content.default exportswithnamed exports.Target release date 🗓️
07/22/2024
Preview 📷
PowerActionsDialog-before.mov
PowerActionsDialog-after.mov
How to test 🧪
Prerequisites
(How to setup test environment)
Verification steps
(How to verify changes)
LinodeActionMenuand select any of the options.As an Author I have considered 🤔
Check all that apply