managarten/packages/shared-ui/src
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
..
actions feat(shared-ui): add focusTrap action and apply to shared Modal 2026-03-24 10:04:04 +01:00
atoms feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
bottom-stack fix(mana,ui): integrate guest nudge into bottom stack + theme it 2026-04-08 12:13:05 +02:00
charts fix(mana/web+packages): clear all 270 warnings to zero 2026-04-10 17:34:49 +02:00
command-bar refactor(shared-ui): extract search-core for highlight + debounce 2026-04-15 01:06:37 +02:00
components feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
context-menu fix(mana/web+packages): clear all 270 warnings to zero 2026-04-10 17:34:49 +02:00
dnd feat(firsts): add first-times module with dream-to-lived tracking 2026-04-10 22:23:32 +02:00
help fix(mana/web+packages): clear all 270 warnings to zero 2026-04-10 17:34:49 +02:00
molecules feat(web): wallpaper system + sticky PageHeader 2026-04-12 16:00:03 +02:00
navigation refactor(shared-ui): extract search-core for highlight + debounce 2026-04-15 01:06:37 +02:00
onboarding fix: dev startup — Redis eviction policy, mana-media port crash, Svelte warnings 2026-04-10 18:33:41 +02:00
organisms fix(web): remove hardcoded white text, use theme tokens for light mode 2026-04-12 16:07:40 +02:00
pages fix(a11y): replace 215 suppression comments with real fixes 2026-04-10 22:43:05 +02:00
quick-input refactor(shared-ui): extract search-core for highlight + debounce 2026-04-15 01:06:37 +02:00
search-core refactor(shared-ui): extract search-core for highlight + debounce 2026-04-15 01:06:37 +02:00
settings fix(mana/web+packages): clear all 270 warnings to zero 2026-04-10 17:34:49 +02:00
test feat(shared-ui): add TagChip component and tag component tests 2026-04-02 14:24:19 +02:00
toast feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
index.ts refactor(shared-ui): extract search-core for highlight + debounce 2026-04-15 01:06:37 +02:00