Command palette: run actions, not just find pages #78

Merged
jcoffey-dev merged 1 commits from feat/palette-actions into main 2026-10-05 21:55:59 +00:00
Owner

Admin UX roadmap item 8: Ctrl+K runs things, not only finds pages.

What the palette now offers, beside pages and settings

  • Server actions the account may run (action<Name> permission and create on x:Action), listed as "Reload: Server settings", "MTA: Pause queue processing" and so on. Choosing one opens the Actions page with it picked (?action=<name>, removed from the address once read): an action with options shows its form with its defaults; one without asks first, with a Run button, because a click on the Actions page runs it at once.
  • Guided setups: sending, limits, sign-in directory, certificates, each through its own "Guided or manual?", for whoever may update what it sets up.
  • Delivery trace: an address or domain typed in offers "Trace delivery to …", opening the delivery test with it filled in (needs liveDeliveryTest).
  • Theme and sign out. Sign-out moves into services/auth/signOut.ts, shared with the account menu.

Fixed on the way: after a new query, cmdk kept the old highlighted row's value, so once that row was gone Enter picked nothing. The palette now controls the highlight and puts it back on the first result whenever the results change.

Strings: 16 new English strings and a reworded search placeholder (globalSearch.placeholderActions replaces globalSearch.placeholder, also in the top bar). No other catalogues yet.

Checked

  • npm test (60 files, 578 tests, 10 new in features/commands/commands.test.ts), lint, i18n check, build.
  • In Chrome against a throwaway local server: pause queue (confirm, then Run), classify a message from the Actions page itself (form opens), "ldap" → directory setup → Guided or manual → wizard, an address → delivery trace prefilled, theme both ways, arrow down then retype → first row highlighted and Enter works.
Admin UX roadmap item 8: Ctrl+K runs things, not only finds pages. **What the palette now offers, beside pages and settings** - **Server actions** the account may run (`action<Name>` permission and create on `x:Action`), listed as "Reload: Server settings", "MTA: Pause queue processing" and so on. Choosing one opens the Actions page with it picked (`?action=<name>`, removed from the address once read): an action with options shows its form with its defaults; one without asks first, with a Run button, because a click on the Actions page runs it at once. - **Guided setups**: sending, limits, sign-in directory, certificates, each through its own "Guided or manual?", for whoever may update what it sets up. - **Delivery trace**: an address or domain typed in offers "Trace delivery to …", opening the delivery test with it filled in (needs `liveDeliveryTest`). - **Theme and sign out.** Sign-out moves into `services/auth/signOut.ts`, shared with the account menu. **Fixed on the way:** after a new query, cmdk kept the old highlighted row's value, so once that row was gone Enter picked nothing. The palette now controls the highlight and puts it back on the first result whenever the results change. **Strings:** 16 new English strings and a reworded search placeholder (`globalSearch.placeholderActions` replaces `globalSearch.placeholder`, also in the top bar). No other catalogues yet. **Checked** - `npm test` (60 files, 578 tests, 10 new in `features/commands/commands.test.ts`), lint, i18n check, build. - In Chrome against a throwaway local server: pause queue (confirm, then Run), classify a message from the Actions page itself (form opens), "ldap" → directory setup → Guided or manual → wizard, an address → delivery trace prefilled, theme both ways, arrow down then retype → first row highlighted and Enter works.
jcoffey-dev added 1 commit 2026-10-05 21:51:52 +00:00
Command palette: run actions, not just find pages
ci / github (pull_request) Skipped
ci / build (pull_request) Successful in 1m35s
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
d7f3106116
Ctrl+K now offers commands beside pages and settings (admin UX roadmap
item 8):

- Server actions the account may run. Choosing one opens the Actions
  page with it picked: an action with options shows its form, and one
  without asks before it runs, since a click on the Actions page runs
  it at once.
- The guided setups (sending, limits, sign-in directory, certificates),
  each through its own "Guided or manual?".
- A delivery trace for an address or domain typed in, for whoever may
  run one.
- Theme and sign out. Sign-out is shared with the account menu.

The highlighted row goes back to the first result whenever the results
change; cmdk kept the old row's value, so after a new query Enter could
pick nothing.

16 new English strings and a reworded search placeholder; no other
catalogues yet.
jcoffey-dev merged commit f06b875f64 into main 2026-10-05 21:55:59 +00:00
jcoffey-dev deleted branch feat/palette-actions 2026-10-05 21:55:59 +00:00
Sign in to join this conversation.