[Bug-1122] Fix /help RSC server→client boundary crash

Story 1122Epic None11 files · +108/−19

PR #276 · pramaan-io/pramaan-app · merged 2026-06-09

Why this matters

Help page crashes when a function crosses the server→client line

React Server Components — one live reference is enough to kill the page

Functions and live refs cannot cross the RSC boundary.

The fix — Across the RSC boundary, only data travels — never functions, refs, or unprovided translations.

How it flows

sequenceDiagram
  autonumber
  participant server as Server
  participant boundary as Boundary Check
  participant client as Client
  server->>boundary: icon (function ref)
  boundary-->>server: BLOCKED
  server->>boundary: icon = 'BookOpen' (string)
  boundary->>client: allowed
  server->>boundary: resultsTitle (function)
  boundary-->>server: BLOCKED
  client->>client: useTranslations formats count

Files changed (11)

File±
src/app/[locale]/(workspace)/help/layout.tsx+1 −2
src/app/[locale]/(workspace)/help/page.tsx+0 −1
src/components/kb/AGENTS.md ★+70
src/components/kb/CLAUDE.md+1
src/components/kb/HelpHome.stories.tsx ★+11 −1
src/components/kb/HelpHome.tsx+0 −2
src/components/kb/HelpSearch.tsx+0 −2
src/components/kb/HelpSidebar.stories.tsx+1 −2
src/components/kb/KbSearchResults.stories.tsx ★+9 −4
src/components/kb/KbSearchResults.tsx+6 −2
src/components/settings/settings-sidebar.tsx+9 −3