feat(blocks): add context-driven global search

Add a command-style global search dialog with asynchronous cancellation, paginated grouped results, highlighting, loading and error states, recent query history, and a configurable Mod+K shortcut.

Make search sources and result actions host-defined through SearchProvider and SearchAdapter, so the block has no route, database, or HTTP dependency. Export the block, register i18n discovery, and cover adapter pagination and selection behavior.
This commit is contained in:
Maofeng
2026-07-31 16:04:30 +08:00
parent 324d8c0244
commit 38d2defeb1
28 changed files with 1461 additions and 3 deletions
+1
View File
@@ -65,6 +65,7 @@
"@tanstack/react-router": "^1.170.18",
"@workspace/i18n": "workspace:*",
"@workspace/ui": "workspace:*",
"cmdk": "^1.1.1",
"lucide-react": "^1.27.0",
"react": "^19.2.6",
"react-dom": "^19.2.6",