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

Use a real button for lazy variables #143602

Closed
weinand opened this issue Feb 22, 2022 · 20 comments
Closed

Use a real button for lazy variables #143602

weinand opened this issue Feb 22, 2022 · 20 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Feb 22, 2022

Testing #143572

Currently the string (...) is used to indicate that a variables is "lazy" and that an additional click is required to retrieve the variable's value:

CleanShot 2022-02-22 at 11 49 53@2x

To make more obvious that the (...) is not a value but an interaction element, I propose to use a button:

CleanShot 2022-02-21 at 12 38 04@2x

@misolori what do you think?

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Feb 22, 2022
@miguelsolorio
Copy link
Contributor

+1 to using a more obvious button, though we do use the ... for expanding selection in folded regions and folded notebook cells

CleanShot 2022-02-22 at 09 53 37@2x

@roblourens
Copy link
Member

I could easily use that type of button, but I'm worried that it wouldn't be more obvious as a button since it doesn't have a background color except on hover, and in this view we already use ... when text overflows

@roblourens roblourens added this to the February 2022 milestone Feb 22, 2022
@weinand
Copy link
Contributor Author

weinand commented Feb 22, 2022

I'm fine with this kind of button as long as the background color is always shown.
CleanShot 2022-02-22 at 09 53 37@2x
Without the background color it just looks like the ellipsis we use in text overflows.

@roblourens roblourens modified the milestones: February 2022, March 2022 Feb 24, 2022
@roblourens roblourens added the under-discussion Issue is under discussion for relevance, priority, approach label Feb 24, 2022
@roblourens
Copy link
Member

If the background color is always shown, then there isn't any change when you hover it.

@weinand
Copy link
Contributor Author

weinand commented Feb 24, 2022

yes, that's the reason why I proposed the button: to increase discoverability
if the three dots look like a text overflow ellipsis '...' or the random string (...), users won't hover over it because they are not expecting an action.

But I'm not insisting on the button...
@misolori could you please decide what to do here?

@miguelsolorio
Copy link
Contributor

If we decide to go with a button, I'd say we use our common icon buttons that have the hover feedback so that it's consistent:

CleanShot.2022-02-24.at.09.25.11.mp4

@weinand
Copy link
Contributor Author

weinand commented Feb 24, 2022

@misolori yep, makes sense: if the button neither looks like an ellipsis nor like some random text, then it will work because users will be curious to hover over it or click on it.

@roblourens
Copy link
Member

roblourens commented Feb 25, 2022

I'm not crazy about that icon. We just replaced it in notebooks with the .... At a quick glance I think it looks more like a star

@weinand
Copy link
Contributor Author

weinand commented Mar 1, 2022

I'm not a fan of that icon too, but I like the fact that it is an icon and not some random text.

What's about this:
CleanShot 2022-03-01 at 15 35 35@2x

@miguelsolorio
Copy link
Contributor

@weinand that icon can work too, I'm fine with whatever icon we decide to go with as long as it uses the same stylings as our icon in the toolbars (with the hover feedback)

@roblourens roblourens modified the milestones: March 2022, Backlog Mar 18, 2022
@weinand weinand modified the milestones: Backlog, April 2022 Mar 31, 2022
@weinand weinand added feature-request Request for new features or functionality and removed under-discussion Issue is under discussion for relevance, priority, approach labels Mar 31, 2022
@roblourens
Copy link
Member

I'm also not sure about that icon which looks like "refresh"/"reload". @connor4312 suggested an eye, which I don't hate

image

Although with no context, I wonder whether the codicon looks enough like an eye

@roblourens
Copy link
Member

roblourens commented Apr 13, 2022

There is also the "expand"

image

@weinand
Copy link
Contributor Author

weinand commented Apr 14, 2022

I like the concept of an "eye" but not the octicon suggested above.

This eye would work for me:
CleanShot 2022-04-14 at 10 19 01

from https://primer.style/octicons/eye-24


Another candidate:

"unfold":
CleanShot 2022-04-14 at 10 26 07

from https://primer.style/octicons/unfold-24

It is similar to the icon suggested by @misolori above:
CleanShot 2022-04-14 at 10 26 59

but doesn't look like a "star"

@roblourens
Copy link
Member

@misolori do you think it's worth taking another look at the shape of the eye codicon?

@miguelsolorio
Copy link
Contributor

miguelsolorio commented Apr 18, 2022

I can adjust the eyes to be a bit wider, the Fluent icon library (which is what ours are based on) also has updated versions that we can try:

image

CleanShot 2022-04-18 at 14 55 35@2x

@weinand
Copy link
Contributor Author

weinand commented Apr 19, 2022

The new icon actually looks more like an eye because the distance between the pupil and the eyebrow is smaller.
Let's go for it.

@miguelsolorio
Copy link
Contributor

Eye has been updated:

CleanShot 2022-04-19 at 08 35 26@2x

@roblourens
Copy link
Member

I strongly prefer the new version, thanks @misolori!

@capegreg
Copy link

capegreg commented May 5, 2022

illuminati symbol? This was a terrible and unnecessary change. The ellipse was a better lazy variable indicator, it made scrolling through a list of nodes or elements easier than this weird-looking eye. At least allow a setting to choose preference.

@capegreg
Copy link

capegreg commented May 5, 2022

If we decide to go with a button, I'd say we use our common icon buttons that have the hover feedback so that it's consistent:

CleanShot.2022-02-24.at.09.25.11.mp4

Why did you think VSCode needed this. Such a mistake!

@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants
@roblourens @capegreg @jrieken @weinand @miguelsolorio and others