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

Improve discoverability of the language status pin/unpin interaction #140241

Closed
daviddossett opened this issue Jan 6, 2022 · 3 comments
Closed
Assignees
Labels
feature-request Request for new features or functionality languages-basic Basic language support issues verification-needed Verification of issue is requested verified Verification succeeded workbench-status Status bar
Milestone

Comments

@daviddossett
Copy link
Contributor

There are a couple of potential usability improvements to be made on the language status bar item with regards to pinning:

  1. Make it easier for users to understand that an item can be added/pinned to the status bar in the first place.
  2. Make it easier to unpin—currently the pinned item and its counterpart in the context menu are often hard to match.

Current state

Pinning

One potential issue here is correlating the pin icon with the actual out come of adding it to the status bar. Not sure yet if other users have found this confusing.

CleanShot 2022-01-06 at 14 44 30@2x

Unpinning

A more obvious issue here is knowing which item to pick. Could there be a "Unpin this item" action at the top when right clicking on the item? Probably other ideas to explore as well.

CleanShot 2022-01-06 at 14 51 18@2x

Design explorations to come 🤘 cc @misolori @lychung7

@daviddossett
Copy link
Contributor Author

Here's a proposal that includes a few tweaks:

  • The language status hover always lists all status items regardless of state
  • The pinning action moves to a state toggle model vs. the current "move from here to status bar" model
  • Update pin/unpin action icons to more clearly reflect the state and action
CleanShot.2022-01-12.at.10.19.41.mp4

As the recording shows, I also explored moving the "Unpin" action to the top of context menu to avoid the action being hidden under the context menu's fold—this is a problem on macOS, not on windows/web from what I can tell. The downside here would be the action moving further away from the user's mouse as @bpasero pointed out. It would also mean we would have to change that behavior for all status bar items. Probably not a necessary change if the pinned state is primarily maintained in the language status hover.

This also pointed out the potential confusion between show/hide vs. pinned/unpinned concepts since we use both across regular status bar items and these language status items. Something to think about.

@bpasero bpasero removed their assignment Jan 13, 2022
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 14, 2022
Commit: 44374eb86e9c5ea03565753fc4438f30675a1a43
@jrieken jrieken added feature-request Request for new features or functionality languages-basic Basic language support issues workbench-status Status bar labels Jan 18, 2022
@daviddossett
Copy link
Contributor Author

daviddossett commented Jan 18, 2022

Closed via @jrieken's changes here. Some related issues still pending fixes as described in #140851

@jrieken jrieken added the verification-needed Verification of issue is requested label Jan 24, 2022
@jrieken
Copy link
Member

jrieken commented Jan 24, 2022

To Verify

  • open a TS file
  • in its language hover pin/unpin items
  • make sure the item stays despite being pinned

@alexr00 alexr00 added the verified Verification succeeded label Jan 26, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality languages-basic Basic language support issues verification-needed Verification of issue is requested verified Verification succeeded workbench-status Status bar
Projects
None yet
Development

No branches or pull requests

4 participants