Phase F1: Backend-Powered Search in Frontend

phase-pal-e-docs-frontend-search Phase

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-app
Depends on: None — backend search APIs already built and tested.

Scope

  • New route: /search with +page.server.ts calling GET /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: / or Cmd+K to focus search
  • Add searchNotes() function to src/lib/api.ts
  • Loading state for semantic search (Ollama embedding latency)
  • Empty state with search tips

Deliverables

  • TBD — filled after completion
  • plan-pal-e-docs — parent plan
  • phase-pal-e-docs-activate-semantic-search — Phase 5a that built the backend search
  • phase-pal-e-docs-board-filtering — Phase F2 (parallel frontend work)