Skip to content

Conversation

@aeisenberg
Copy link
Contributor

@aeisenberg aeisenberg commented Dec 15, 2020

This commit moves the "Add *" and "Download *" database commands
from the buttons on top and into an overflow menu.

I believe this is easier to read since the icons were never fully
understandable and required hovering to read.

Also, renamed the commands to be more consistent. Now all begin
with "Add Database from".

Simple PR to change the layout of the view commands. I didn't know this was possible until I saw it in another extension. Will look like this:

_Extension_Development_Host__-_XXE_qlref_—_vscode-codeql-starter__Workspace_

I'm open to better wording than "Download Database from Internet".

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [n/a] @github/docs-content-dsp has been cc'd in all issues for UI or other user-facing changes made by this pull request.

{
"command": "codeQLDatabases.chooseDatabaseInternet",
"title": "Download Database",
"title": "Add Database from Internet",
Copy link
Contributor

Choose a reason for hiding this comment

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

"from URL" is another option.

"command": "codeQLDatabases.chooseDatabaseFolder",
"when": "view == codeQLDatabases",
"group": "navigation"
"group": "1_open@1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to create your own group below an icon, rather than the overflow menu? I think decluttering the database view is a good idea, but I am concerned users will not know to look in the overflow menu for 'Add Database' commands, whereas an 'Add Database From...' submenu may be more obvious.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know if that's possible. Let me look.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. It's not. https://code.visualstudio.com/api/extension-guides/tree-view#view-actions

I could put the actions in both places, but that seems worse. I feel like I would want to talk to a UX engineer for this.

This commit moves the "Add *" and "Download *" database commands
from the buttons on top and into an overflow menu.

I believe this is easier to read since the icons were never fully
understandable and required hovering to read.

Also, renamed the commands to be more consistent. Now all begin
with "Add Database from".
@yoff
Copy link

yoff commented Dec 18, 2020

It does declutter a bit, but it seems a lot less discoverable than before...

@jbj
Copy link
Contributor

jbj commented Dec 21, 2020

As a user of the extension, I prefer the existing behaviour. I've only ever used two of those buttons, but I've used them a lot: Add Database from {Archive, Folder}.

@aeisenberg
Copy link
Contributor Author

No consensus on this. Not going to go ahead with this change.

@aeisenberg aeisenberg closed this Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants