Skip to content
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

Merged
merged 5 commits into from
Jun 15, 2023
Merged

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Jun 15, 2023

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

image

Layout (outdated icons)

Screen.Recording.2023-06-15.at.7.29.05.pm.mov

Studio UI (for reference)

image

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

@mattseddon mattseddon added the product PR that affects product label Jun 15, 2023
@mattseddon mattseddon self-assigned this Jun 15, 2023
@shcheklein
Copy link
Member

Thanks @mattseddon !

It gets us aligned with Studio.

Can we make them close to the checkbox? (same way as in Studio).
Can we replace a running experiment with a spinner (can ask @djsauble if it possible to do an icon for a running experiment out of the plot icon later)? It's a bit wasteful to have two columns for this.
Can we make a border similar to Studio to make it look like a button?

@mattseddon
Copy link
Member Author

Can we make them close to the checkbox? (same way as in Studio).
Can we replace a running experiment with a spinner (can ask @djsauble if it possible to do an icon for a running experiment out of the plot icon later)? It's a bit wasteful to have two columns for this.
Can we make a border similar to Studio to make it look like a button?

Do you want me to recreate this:

image

?

Where do stars go?

Our checkboxes currently behave very differently.

@mattseddon
Copy link
Member Author

We also specifically put a wider gap between the checkboxes and the actions for #3430 to help separate them from one another (different behaviour)

@shcheklein
Copy link
Member

Do you want me to recreate this:

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 ...

Where do stars go?

after plots?

Our checkboxes currently behave very differently.

in Studio its WIP. They will behave similar. Do you mean some specific things?

We also specifically put a wider gap between the checkboxes and the actions for #3430 to help separate them from one another (different behaviour)

It thought this because we have those spinners?

[styles.oddRow]: isOdd,
[styles.evenRow]: !isOdd,
[styles.workspaceRow]: isWorkspace,
[styles.normalRow]: !isWorkspace,
Copy link
Member Author

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;
Copy link
Member Author

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?

Copy link
Contributor

@julieg18 julieg18 Jun 15, 2023

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 :)

@mattseddon mattseddon marked this pull request as ready for review June 15, 2023 09:38
@mattseddon mattseddon requested a review from shcheklein June 15, 2023 09:38
Copy link
Contributor

@julieg18 julieg18 left a 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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

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:

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we considered filling in the checkbox completely with the selected color? That would make selected experiments stand out more to me. Example:

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I now see that I'm basically just describing what Studio does in their design 😅

image

Copy link
Member Author

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to this:

image

WDYT?

Copy link
Contributor

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!

Copy link
Contributor

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!

Copy link
Member Author

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.

@codeclimate
Copy link

codeclimate bot commented Jun 15, 2023

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.

@mattseddon mattseddon merged commit 34ed830 into main Jun 15, 2023
@mattseddon mattseddon deleted the switch-plot-icons branch June 15, 2023 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR that affects product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants