[PR #6352] [MERGED] feat(ui): add global command palette (Ctrl+K) for fast navigation and search #6232

Closed
opened 2026-11-02 04:07:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6352
Author: @TheMRVX
Created: 8/28/2026
Status: ✅ Merged
Merged: 9/10/2026
Merged by: @MHSanaei

Base: main ← Head: feat/command-palette


📝 Commits (10+)

  • 85624b8 feat(ui): add global command palette (Ctrl+K) for fast navigation and search
  • 7cb2f1c fix(ui): address review feedback for shortcut listener, i18n parity, and search deep links
  • ba2d5f7 fix(ui): resolve search routing, translation keys, and palette state reset
  • 939bb61 fix(ui): improve command palette styling and sidebar transitions
  • 829b250 fix(ui): address review feedback for typecheck, codegen, debouncing, and state reset
  • df7db7c fix(ui): resolve effect state update warning and debounce reset in command palette
  • 94fdf80 fix(ui): address review feedback for stale client search results and theme action
  • c94252b Merge branch 'main' into feat/command-palette
  • 002a1eb style(ui): apply oxfmt formatting to command palette and tests
  • 1611479 fix(deps): update js-yaml override to resolve audit advisory

📊 Changes

30 files changed (+2140 additions, -4 deletions)

View changed files

📝 docs/public/openapi.json (+8 -0)
📝 frontend/public/openapi.json (+8 -0)
➕ frontend/src/components/command-palette/CommandPalette.css (+625 -0)
➕ frontend/src/components/command-palette/CommandPalette.tsx (+802 -0)
➕ frontend/src/components/command-palette/useCommandPalette.ts (+49 -0)
📝 frontend/src/generated/examples.ts (+2 -0)
📝 frontend/src/generated/schemas.ts (+6 -0)
📝 frontend/src/generated/types.ts (+2 -0)
📝 frontend/src/generated/zod.ts (+2 -0)
📝 frontend/src/layouts/AppSidebar.tsx (+50 -1)
📝 frontend/src/layouts/PanelLayout.tsx (+7 -1)
📝 frontend/src/pages/clients/ClientsPage.tsx (+16 -1)
📝 frontend/src/pages/inbounds/list/InboundList.tsx (+13 -1)
📝 frontend/src/schemas/client.ts (+2 -0)
📝 frontend/src/test/app-sidebar.test.tsx (+6 -0)
➕ frontend/src/test/command-palette.test.tsx (+330 -0)
📝 internal/web/service/inbound.go (+43 -0)
📝 internal/web/translation/ar-EG.json (+13 -0)
📝 internal/web/translation/en-US.json (+13 -0)
📝 internal/web/translation/es-ES.json (+13 -0)

...and 10 more files

📄 Description

Summary

Adds a global Command Palette (Ctrl+K / ⌘K or sidebar search button) providing instant keyboard-driven search and navigation across clients, inbounds, panel routes, settings subpages, and system actions.

Why

Navigating large panels with dozens of clients, inbounds, and nested configuration tabs requires multiple clicks. This command palette enables instant search, quick client subscription link copying, theme cycling, and deep-linking into nested settings.

Type of change

  • New feature

Areas affected

  • Frontend (UI / panel pages)

How was this tested?

  • Hotkeys & Trigger: Verified Ctrl+K / ⌘K and sidebar trigger button open/close modal across desktop and mobile drawer.
  • Search & Deep Navigation: Tested live client API queries, inbound matching, settings tab navigation, and theme switcher action.
  • Theme Reactivity: Verified styling and contrast across Light, Dark, and Ultra Dark modes.

Breaking changes

None

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6352 **Author:** [@TheMRVX](https://github.com/TheMRVX) **Created:** 8/28/2026 **Status:** ✅ Merged **Merged:** 9/10/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/command-palette` --- ### 📝 Commits (10+) - [`85624b8`](https://github.com/MHSanaei/3x-ui/commit/85624b850a3e72423e073a8f9b49eef5f22ff624) feat(ui): add global command palette (Ctrl+K) for fast navigation and search - [`7cb2f1c`](https://github.com/MHSanaei/3x-ui/commit/7cb2f1cf579eb8b0958dc06bc9ba351b90a2a27e) fix(ui): address review feedback for shortcut listener, i18n parity, and search deep links - [`ba2d5f7`](https://github.com/MHSanaei/3x-ui/commit/ba2d5f7628eae359ef94662cd2b159286de3cb88) fix(ui): resolve search routing, translation keys, and palette state reset - [`939bb61`](https://github.com/MHSanaei/3x-ui/commit/939bb61b0d23d35d68f27977669b07df2017dc52) fix(ui): improve command palette styling and sidebar transitions - [`829b250`](https://github.com/MHSanaei/3x-ui/commit/829b2506ccf9650811a42570f958252937be4df7) fix(ui): address review feedback for typecheck, codegen, debouncing, and state reset - [`df7db7c`](https://github.com/MHSanaei/3x-ui/commit/df7db7c6d1228400253647044950bb39445d8fd4) fix(ui): resolve effect state update warning and debounce reset in command palette - [`94fdf80`](https://github.com/MHSanaei/3x-ui/commit/94fdf80db9ab93e0f25a59bfb85f8881dc5a1e28) fix(ui): address review feedback for stale client search results and theme action - [`c94252b`](https://github.com/MHSanaei/3x-ui/commit/c94252b65109565054675a158351a7f2557e2d10) Merge branch 'main' into feat/command-palette - [`002a1eb`](https://github.com/MHSanaei/3x-ui/commit/002a1eba7c76f9b9bb37db4ec11535b2bd31d6c2) style(ui): apply oxfmt formatting to command palette and tests - [`1611479`](https://github.com/MHSanaei/3x-ui/commit/16114798cd418267d6c5ff5d742f9ffaa90e1df5) fix(deps): update js-yaml override to resolve audit advisory ### 📊 Changes **30 files changed** (+2140 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/public/openapi.json` (+8 -0) 📝 `frontend/public/openapi.json` (+8 -0) ➕ `frontend/src/components/command-palette/CommandPalette.css` (+625 -0) ➕ `frontend/src/components/command-palette/CommandPalette.tsx` (+802 -0) ➕ `frontend/src/components/command-palette/useCommandPalette.ts` (+49 -0) 📝 `frontend/src/generated/examples.ts` (+2 -0) 📝 `frontend/src/generated/schemas.ts` (+6 -0) 📝 `frontend/src/generated/types.ts` (+2 -0) 📝 `frontend/src/generated/zod.ts` (+2 -0) 📝 `frontend/src/layouts/AppSidebar.tsx` (+50 -1) 📝 `frontend/src/layouts/PanelLayout.tsx` (+7 -1) 📝 `frontend/src/pages/clients/ClientsPage.tsx` (+16 -1) 📝 `frontend/src/pages/inbounds/list/InboundList.tsx` (+13 -1) 📝 `frontend/src/schemas/client.ts` (+2 -0) 📝 `frontend/src/test/app-sidebar.test.tsx` (+6 -0) ➕ `frontend/src/test/command-palette.test.tsx` (+330 -0) 📝 `internal/web/service/inbound.go` (+43 -0) 📝 `internal/web/translation/ar-EG.json` (+13 -0) 📝 `internal/web/translation/en-US.json` (+13 -0) 📝 `internal/web/translation/es-ES.json` (+13 -0) _...and 10 more files_ </details> ### 📄 Description ## Summary Adds a global Command Palette (`Ctrl+K` / `⌘K` or sidebar search button) providing instant keyboard-driven search and navigation across clients, inbounds, panel routes, settings subpages, and system actions. ## Why Navigating large panels with dozens of clients, inbounds, and nested configuration tabs requires multiple clicks. This command palette enables instant search, quick client subscription link copying, theme cycling, and deep-linking into nested settings. ## Type of change - New feature ## Areas affected - Frontend (UI / panel pages) ## How was this tested? - **Hotkeys & Trigger:** Verified `Ctrl+K` / `⌘K` and sidebar trigger button open/close modal across desktop and mobile drawer. - **Search & Deep Navigation:** Tested live client API queries, inbound matching, settings tab navigation, and theme switcher action. - **Theme Reactivity:** Verified styling and contrast across Light, Dark, and Ultra Dark modes. ## Breaking changes None ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (when applicable). - [x] `go build ./...` and the test suite pass locally. - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [x] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:07:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6232
No description provided.