Skip to content

feat: add command palette for quick access to actions and collections#818

Open
remo-lab wants to merge 1 commit intoHSF:mainfrom
remo-lab:feat/command-palette
Open

feat: add command palette for quick access to actions and collections#818
remo-lab wants to merge 1 commit intoHSF:mainfrom
remo-lab:feat/command-palette

Conversation

@remo-lab
Copy link
Contributor

@remo-lab remo-lab commented Mar 7, 2026

Summary

This adds a command palette to Phoenix so actions and collections can be accessed quickly from a searchable menu.

You can open it with /, Ctrl+K, or by clicking a >_ button added to the toolbar.
The idea is similar to the command palette used in editors like VS Code — instead of navigating menus, you can just search for what you want to do.

The palette walks the existing Phoenix menu tree, so it automatically discovers actions, collections, and geometry controls from the loaded event.


Features

  • Fuzzy search across commands
  • Keyboard navigation (↑ ↓ Enter Esc)
  • Toolbar button (>_) so it’s easy to access without shortcuts
  • Automatically discovers collections and geometry from the event
  • Includes common actions like:
    • dark theme toggle
    • auto rotate
    • clipping
    • zoom
    • reset camera
    • cartesian grid / axes
  • Works across the existing experiment views (ATLAS, CMS, LHCb, TrackML, Playground)

Changes

New command palette component:

  • command-palette.component.ts
  • command-palette.component.html
  • command-palette.component.scss

Toolbar integration:

  • added <app-command-palette> to ui-menu.component.html
  • added <app-command-palette> to lhcb.component.html

Other changes:

  • new toolbar icon command.svg (>_)
  • export added in ui-menu/index.ts
  • component registered in phoenix-ui.module.ts
  • ui-manager/index.ts exposes getPhoenixMenuRoot() so the palette can read the menu structure

Testing

Things I checked locally:

  • >_ icon appears in the toolbar for ATLAS/CMS and opens the palette
  • / and Ctrl+K both open the palette
  • typing filters results
  • arrow keys move through results, Enter runs the command
  • Esc closes it
  • toggling things like dark theme, clipping, rotate works
  • collections visibility can be toggled from the palette
  • works the same in the LHCb view
  • icon doesn't conflict with the existing info icon ()

Everything seems to behave the same as before, just with faster access to actions.

Recording.2026-03-08.050822.1.1.mp4

Signed-off-by: remo-lab <remopanda7@gmail.com>
@remo-lab
Copy link
Contributor Author

remo-lab commented Mar 7, 2026

@EdwardMoyse , I’ve been working on this over the past few days and just pushed the full implementation. I’d really appreciate it if you could take a look whenever you have time. Thanks!

@remo-lab
Copy link
Contributor Author

@EdwardMoyse , what are your thoughts on this feature?

@remo-lab
Copy link
Contributor Author

@EdwardMoyse is there any update on this pr?

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.

1 participant