managarten/packages/shared-ui/src/quick-input
Till JS 24eb8b3b7f refactor(shared-ui): extract search-core for highlight + debounce
Both QuickInputBar (InputBar.svelte), CommandBar.svelte, and GlobalSpotlight
were duplicating syntax highlighting and the 150ms search debounce. Pull
these into a new `packages/shared-ui/src/search-core/` module so the two
input surfaces stay in sync on feel and matching rules.

- search-core/highlight.ts — HighlightPattern type, locale-aware
  getHighlightPatterns(), and the shared highlightText() (HTML-escape +
  span wrap). Patterns were previously in quick-input/highlightPatterns.ts
  + inline in CommandBar.svelte.
- search-core/config.ts — SEARCH_DEBOUNCE_MS = 150. Used from InputBar,
  CommandBar, GlobalSpotlight, and apps/mana web SearchEngine.
- quick-input/highlightPatterns.ts + types.ts become thin back-compat
  re-exports.
- Public surface: @mana/shared-ui now exports getHighlightPatterns,
  highlightText, SEARCH_DEBOUNCE_MS, and the HighlightPattern type.

No UX change. UIs still live in their own files (per earlier split
recommendation: shared backend, separate surfaces).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 01:06:37 +02:00
..
highlightPatterns.ts refactor(shared-ui): extract search-core for highlight + debounce 2026-04-15 01:06:37 +02:00
index.ts feat(shared-ui): locale-aware highlighting + success feedback for InputBar 2026-03-23 20:55:31 +01:00
InputBar.svelte refactor(shared-ui): extract search-core for highlight + debounce 2026-04-15 01:06:37 +02:00
InputBarContextMenu.svelte feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
InputBarHelpModal.svelte feat(auth): add SessionExpiredBanner to all remaining web apps 2026-03-24 22:35:13 +01:00
inputBarSettings.svelte.ts feat(shared-ui): add InputBar context menu with settings 2025-12-14 22:20:00 +01:00
recentInputHistory.ts feat(shared-ui): add InputBar context menu with settings 2025-12-14 22:20:00 +01:00
types.ts refactor(shared-ui): extract search-core for highlight + debounce 2026-04-15 01:06:37 +02:00