-
Notifications
You must be signed in to change notification settings - Fork 14
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
storage: re-design the disk selection component #440
Conversation
265e335
to
706b694
Compare
To confirm, the modal, when it gets more content (like a lot of disks), grows taller and the box scrolls, like in this horribly quick mockup based on the screnshot: @jkonecny12 was concerned about this on Slack, but this is what those widgets should do by default. The list means it overflows, and the modal should be able to grow with more content. If it doesn't do this, then that's a bug. |
Looks good to me design wise. |
706b694
to
ef9764b
Compare
Design related issues:
Here are the most recent versions of the mockups, for reference: Here's how the modal would look with multiple, 2 items, and 1 item (where it becomes force-selected, unless another disk is added). The right two have a minimum height, but then it starts to grow and become overflowed with a scrollbar like the above modified screenshot I posted. |
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.
(see above for review)
adf567b
to
0bccc33
Compare
0bccc33
to
96d6377
Compare
There's currently no way to refresh when there are no disks, and the actions should be just a "Close" button in secondary style. (You cannot select nothing, and you cannot cancel... just close, unless you click refresh and disks appear, then it should go back to "Select" and "Cancel".) I can make a mockup for this state. |
Probably something like one of these: I like the top-left of these the most, but that'd mean we would need to change the modal like this: (Whoops! I forgot to change the Select/Cancel to close! Fixing below...) So the pairs of disks vs. no disks would look like this: Which looks best to you? I like the leftmost pair together overall, but as having no disks available is not a common situation, we could go with the rightmost (the one with the left alignment). We could also drop the icon: |
The most straightforward one to implement is probably this, which is probably fine, really, especially since nobody should see this error state (hopefully): However, we do need a refresh in the no disks mode due to the interactive tests, so we need this. (I'll probably always forget to add a disk before this, and without being able to refresh, it'll be annoying to have to restart a VM.) |
@KKoukiou should I wait with a review a bit (after finishing the design review?). |
Move disk selection from the inline select inside a modal dialog. Move the re-scan button also there to make the disk selection entry page more minimal.
This affects the spacing between the sections, which according to designer feedback was previously insufficient.
96d6377
to
8d286ef
Compare
I think I addressed all design comments. |
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 to me.
Move disk selection from the inline select inside a modal dialog. Move the re-scan button also there to make the disk selection entry page more minimal.