-
Notifications
You must be signed in to change notification settings - Fork 367
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
refactor: [M3-8143] - Improve PowerActionsDialog #10667
Conversation
Coverage Report: ✅ |
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.
Looks good and other changes are safe. Left a comment for a fix in the reboot modal that will improve the UX
@@ -96,7 +97,7 @@ export const LinodeRebuildDialog = (props: Props) => { | |||
maxWidth="md" | |||
onClose={onClose} | |||
open={open} | |||
title={`Rebuild Linode ${linode?.label ?? ''}`} | |||
title={`Rebuild Linode ${linodeLabel ?? ''}`} | |||
> | |||
<StyledDiv> | |||
{unauthorized && <LinodePermissionsError />} |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
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.
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
PowerActionsDialog
by 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
.linodeLabel
prop to child component to eliminate the flash of content.default exports
withnamed 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)
LinodeActionMenu
and select any of the options.As an Author I have considered 🤔
Check all that apply