[PR #3263] feat: Command Palette for searching accross the dashboard #36919

Open
opened 2026-06-18 22:10:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/pangolin/pull/3263
Author: @Fredkiss3
Created: 6/12/2026
Status: 🔄 Open

Base: devHead: feat/command-bar


📝 Commits (10+)

  • 444d293 🚧 WIP: copy command bar from existing PR
  • a68b570 🚧 wip: Use command bar nav items
  • abc0a41 ♻️ reorganize command bar items
  • ce77268 🚧 wip: block top position of command palette
  • 3bc5ab2 🚧 wip
  • c0a9db9 💄 update command bar UI
  • b6aba13 ♻️ rename query, add query
  • 6380079 Command palette with search & actions
  • 4e7328a ♻️ refactor private resource page
  • 2ab5540 ♻️ add command palette trigger on the header

📊 Changes

23 files changed (+1559 additions, -120 deletions)

View changed files

📝 messages/en-US.json (+60 -0)
📝 src/app/[orgId]/settings/layout.tsx (+4 -1)
📝 src/app/[orgId]/settings/resources/private/page.tsx (+3 -42)
📝 src/app/navigation.tsx (+232 -0)
📝 src/app/page.tsx (+3 -1)
📝 src/components/CreateShareLinkForm.tsx (+1 -1)
📝 src/components/Layout.tsx (+51 -39)
📝 src/components/LayoutHeader.tsx (+2 -0)
📝 src/components/LayoutMobileMenu.tsx (+15 -14)
📝 src/components/PrivateResourcesTable.tsx (+2 -4)
📝 src/components/SitesTable.tsx (+0 -7)
📝 src/components/alert-rule-editor/AlertRuleFields.tsx (+1 -1)
src/components/command-palette/CommandPalette.tsx (+478 -0)
src/components/command-palette/CommandPaletteTrigger.tsx (+69 -0)
src/components/command-palette/useCommandPaletteActions.tsx (+161 -0)
src/components/command-palette/useCommandPaletteNavigation.ts (+57 -0)
src/components/command-palette/useCommandPaletteOrganizations.ts (+45 -0)
src/components/command-palette/useCommandPaletteSearch.ts (+198 -0)
📝 src/components/resource-selector.tsx (+1 -1)
📝 src/components/ui/command.tsx (+21 -5)

...and 3 more files

📄 Description

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Summary

Add a command palette for searching pages accross the dashboard, triggered by cmd+k.

It includes 3 modes:

  • the default mode show the list of pages accessible from the command bar by default
  • Action mode, triggered by starting your search query with >, it will filter actions instead of pages (This is copied from Github)
  • Search mode: which searches for sites, proxy & private resources, user devices & machine clients, whenever you starts to type 2 characters in the command input

Not in this PR:

  • switching between organizations

Screenshots

https://github.com/user-attachments/assets/8caf33a8-480c-4c20-a5d2-3d4185bcf65d


🔄 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/fosrl/pangolin/pull/3263 **Author:** [@Fredkiss3](https://github.com/Fredkiss3) **Created:** 6/12/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `feat/command-bar` --- ### 📝 Commits (10+) - [`444d293`](https://github.com/fosrl/pangolin/commit/444d293a29575402575c16e92955df1033f7b30a) 🚧 WIP: copy command bar from existing PR - [`a68b570`](https://github.com/fosrl/pangolin/commit/a68b57067c5b93662e18c1da0f9f48d3d41ebff9) 🚧 wip: Use command bar nav items - [`abc0a41`](https://github.com/fosrl/pangolin/commit/abc0a41d9ecf9a27a023202a729311d748c63310) ♻️ reorganize command bar items - [`ce77268`](https://github.com/fosrl/pangolin/commit/ce77268c82a7d2b1ed4618e80e752d3856612718) 🚧 wip: block top position of command palette - [`3bc5ab2`](https://github.com/fosrl/pangolin/commit/3bc5ab2136f030c0bc5477ba95001c9b69b7b546) 🚧 wip - [`c0a9db9`](https://github.com/fosrl/pangolin/commit/c0a9db92ef13556a6fe158dbae0cfb86e9ac341a) 💄 update command bar UI - [`b6aba13`](https://github.com/fosrl/pangolin/commit/b6aba13d3ab203cd7ad4125bd2dd09f7433a9fd9) ♻️ rename query, add query - [`6380079`](https://github.com/fosrl/pangolin/commit/6380079239a599996255a0883348ed2fd9106b35) ✨ Command palette with search & actions - [`4e7328a`](https://github.com/fosrl/pangolin/commit/4e7328a1cc2c37b4fa5f17e648395323dd1659ea) ♻️ refactor private resource page - [`2ab5540`](https://github.com/fosrl/pangolin/commit/2ab5540085bfb9415638455848bddcbb4ef903b6) ♻️ add command palette trigger on the header ### 📊 Changes **23 files changed** (+1559 additions, -120 deletions) <details> <summary>View changed files</summary> 📝 `messages/en-US.json` (+60 -0) 📝 `src/app/[orgId]/settings/layout.tsx` (+4 -1) 📝 `src/app/[orgId]/settings/resources/private/page.tsx` (+3 -42) 📝 `src/app/navigation.tsx` (+232 -0) 📝 `src/app/page.tsx` (+3 -1) 📝 `src/components/CreateShareLinkForm.tsx` (+1 -1) 📝 `src/components/Layout.tsx` (+51 -39) 📝 `src/components/LayoutHeader.tsx` (+2 -0) 📝 `src/components/LayoutMobileMenu.tsx` (+15 -14) 📝 `src/components/PrivateResourcesTable.tsx` (+2 -4) 📝 `src/components/SitesTable.tsx` (+0 -7) 📝 `src/components/alert-rule-editor/AlertRuleFields.tsx` (+1 -1) ➕ `src/components/command-palette/CommandPalette.tsx` (+478 -0) ➕ `src/components/command-palette/CommandPaletteTrigger.tsx` (+69 -0) ➕ `src/components/command-palette/useCommandPaletteActions.tsx` (+161 -0) ➕ `src/components/command-palette/useCommandPaletteNavigation.ts` (+57 -0) ➕ `src/components/command-palette/useCommandPaletteOrganizations.ts` (+45 -0) ➕ `src/components/command-palette/useCommandPaletteSearch.ts` (+198 -0) 📝 `src/components/resource-selector.tsx` (+1 -1) 📝 `src/components/ui/command.tsx` (+21 -5) _...and 3 more files_ </details> ### 📄 Description ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Summary Add a command palette for searching pages accross the dashboard, triggered by `cmd+k`. It includes 3 modes: - the default mode show the list of pages accessible from the command bar by default - Action mode, triggered by starting your search query with `>`, it will filter actions instead of pages (This is copied from Github) - Search mode: which searches for sites, proxy & private resources, user devices & machine clients, whenever you starts to type 2 characters in the command input Not in this PR: - switching between organizations ## Screenshots https://github.com/user-attachments/assets/8caf33a8-480c-4c20-a5d2-3d4185bcf65d --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-18 22:10:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#36919