Phase F1: Backend-Powered Search in Frontend
Goal: Expose the backend's full-text, semantic, and hybrid search through the pal-e-app frontend — the #1 feature that transforms browsing into operating.
Owner: Dev-Frontend agent
Repo:
forgejo_admin/pal-e-appDepends on: None — backend search APIs already built and tested.
Scope
- New route:
/searchwith+page.server.tscallingGET /notes/search?q=...&mode=keyword|semantic|hybrid - Display ranked results with headline snippets, note_type badges (using existing
typeColor()), project tags - URL-persistent query params (
/search?q=deploy+recovery&mode=hybrid) - Toggle: keyword vs semantic vs hybrid search mode
- Search input in nav bar (
+layout.svelte) that navigates to /search on submit - Keyboard shortcut:
/orCmd+Kto focus search - Add
searchNotes()function tosrc/lib/api.ts - Loading state for semantic search (Ollama embedding latency)
- Empty state with search tips
Deliverables
- TBD — filled after completion
Related
plan-pal-e-docs— parent planphase-pal-e-docs-activate-semantic-search— Phase 5a that built the backend searchphase-pal-e-docs-board-filtering— Phase F2 (parallel frontend work)