-
Notifications
You must be signed in to change notification settings - Fork 29
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
Switch experiment table radio buttons to plot icons #4121
Conversation
Thanks @mattseddon ! It gets us aligned with Studio. Can we make them close to the checkbox? (same way as in Studio). |
Do you want me to recreate this: ? Where do stars go? Our checkboxes currently behave very differently. |
We also specifically put a wider gap between the checkboxes and the actions for #3430 to help separate them from one another (different behaviour) |
No, I'm not sure we can do that (in our case top level can also be in the running state). We can replace the plot icon with a spinner when it runs. or put a spinner on top of it, I don't know tbh ...
after plots?
in Studio its WIP. They will behave similar. Do you mean some specific things?
It thought this because we have those spinners? |
[styles.oddRow]: isOdd, | ||
[styles.evenRow]: !isOdd, | ||
[styles.workspaceRow]: isWorkspace, | ||
[styles.normalRow]: !isWorkspace, |
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.
[F] Half of these classes didn't exist, the other half have been deleted.
@@ -576,7 +580,7 @@ $badge-size: 0.85rem; | |||
height: 100%; | |||
|
|||
&:first-child { | |||
margin-right: 20px; | |||
margin-right: 4px; |
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.
[Q] Will changing this affect the way the shadow is displayed? Is there a gotcha here? Maybe with the default size of the first column?
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.
Changing margin shouldn't affect the shadow or the width of the first column. It just affects the width of the exp name text. By decreasing the margin, the exp-name/commit has a bit more room :)
7b123e0
to
0228dd9
Compare
0228dd9
to
1f6b725
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.
Plot icons definitely make it more obvious what selected experiments are for!
border: calc(var(--border-width) * 1px) solid $checkbox-border; | ||
color: $icon-color; | ||
.plotBox { | ||
height: $checkbox-size; |
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.
There is little to no spacing between the SVG and the border, which looks strange to me. I do see the value of making the plot icon look more clickable though and the checkbox look does help with that.
We could add a little padding to the button, but that might make it harder to tell if the exp is selected since the SVG is smaller:
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.
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.
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.
What color did you use for the selected svg fill in that screenshot?
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.
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.
I just used white since it works as a foreground for all of our unchanging custom colors. Something likevar(--vscode-list-activeSelectionForeground)
works for most cases if we wanted to use a variable though!
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.
Updated to this:
WDYT?
Looks better to me!
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.
I went with fill: 'var(--vscode-editor-foreground)'
for the selected svgs we can revisit later if needed.
d20eea6
to
9399425
Compare
9399425
to
657829b
Compare
Code Climate has analyzed commit 657829b and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 95.2% (0.0% change). View more on Code Climate. |
Related to #3430
This PR swaps the old radio button for a plot icon and separates an experiment's running indicator from the icon. This brings us closer to the new Studio UI for plotting.
Demo
Final Icons
Layout (outdated icons)
Screen.Recording.2023-06-15.at.7.29.05.pm.mov
Studio UI (for reference)
Note: As you can see in the original demo (below) I have left the tree untouched. I have taken this approach because the user will lose information if we move to the plot icon there (a user cannot tell if an experiment is running from the tree).
Demo (outdated)
Screen.Recording.2023-06-15.at.11.11.45.am.mov