-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(storage) add warning for project snapshot restriction [WD-7885] #577
Conversation
Demo starting at https://lxd-ui-577.demos.haus |
d9d7d99
to
b55e5ac
Compare
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.
Code and QA looks good to me, maybe find a better or shorter copy as suggested below.
b55e5ac
to
550e703
Compare
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.
All good, thanks for adjusting the notification copy
Should we still wait for piper to do a design review on this? |
550e703
to
3a6a723
Compare
3a6a723
to
9c97edc
Compare
I think this copy might be a little clearer: (Snapshots tab) (Warning message) In the last message, would it be possible to include a link to the configuration page where the setting can be changed back? |
9c97edc
to
1ac1cd4
Compare
@piperdeck the snapshots tab warning message makes sense. I think we can take it one step further for the configuration warning message. We can maybe display a different message for restricted users since they will not be allowed to edit project configurations. See below screenshots, WDYT? Also, this would be done for both instance and custom storage volume snapshot configurations. |
1ac1cd4
to
3cf4b20
Compare
3cf4b20
to
c1e4683
Compare
c1e4683
to
954ef76
Compare
954ef76
to
610e3fc
Compare
610e3fc
to
0c2ad29
Compare
0c2ad29
to
269bff0
Compare
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.
Ideas to simplify and reduce code below.
269bff0
to
54e55c0
Compare
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 the changes, tiny nitpick about copy. Links should always be descriptive of the target document, it is discouraged to use "here" as a link text.
Signed-off-by: Mason Hu <mason.hu@canonical.com>
54e55c0
to
fcdd641
Compare
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.
All good, thanks for applying the changes 👍
Done
StorageVolueSnapshotsForm.tsx
. There is a pre-existing componentStorageVolumeFormSnapshots.tsx
which serves the exact same purpose.QA
Allow custom restrictions on a project level
to true.