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

Add an action-list component #3785

Open
nzaytsev opened this issue Nov 21, 2024 · 0 comments · May be fixed by #3786
Open

Add an action-list component #3785

nzaytsev opened this issue Nov 21, 2024 · 0 comments · May be fixed by #3786
Assignees

Comments

@nzaytsev
Copy link
Contributor

Image

Create a "smart component" that uses the <action-nav> and <action-item> components to create a more complex toolbar experience closer to what VS Code provides.

Features:

  • list of items
    • support modifier-based alternate actions
    • rough item typing { icon: string; label: string; href?: string; modifiers: [{ key: 'ctrl' | 'alt'; icon: string; label: string; href?: string; }] }
  • action item limit which then overflows remaining action-items into a ... menu

Example markup:

<gl-toolbar limit="3" items=${[ 
  { icon: 'request-changes', label: 'Open Pull Request Changes', href='command:gitlens.home.fetch' },
  { icon: 'globe', label: 'Open Pull Request on Remote', href='command:gitlens.home.openPullRequestOnRemote' },
  { icon: 'git-pull-request-create', label: 'Create Pull Request...', href='command:gitlens.home.createPullRequest' },
  { icon: 'gl-repo-fetch', label: 'Fetch', href='command:gitlens.home.fetch' } 
]}></gl-toolbar>
@nzaytsev nzaytsev self-assigned this Nov 21, 2024
@nzaytsev nzaytsev linked a pull request Nov 21, 2024 that will close this issue
7 tasks
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 a pull request may close this issue.

1 participant