[Story-1133] No-nav drawer for New Matter Template (warm cache)

Story 1133Epic None7 files · +430/−50

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

Why this matters

The drawer promised instant. It lied.

Three dropdowns, one by one, on every click.

The cost has to land somewhere. The question is where — and when.

The fix — The drawer opens fast because the list page already paid for the data.

How it flows

sequenceDiagram
  autonumber
  participant list as Matter templates list
  participant boot as Catalog bootstrap
  participant drawer as Matter template drawer
  list->>boot: List mounts → trigger concurrent prefetch
  boot-->>list: Three catalogs return in parallel
  list->>drawer: User clicks New → drawer slides in (closed-state already mounted)
  drawer->>drawer: Drawer opens → pickers read warm seed, zero fetches

Files changed (7)

File±
docs/walkthroughs/story-1133-walkthrough.html+245
src/app/[locale]/(workspace)/settings/matter-configuration/matter-templates/page.tsx+9 −1
src/components/settings/matter-types/matter-template-detail-page.tsx+3 −39
src/components/settings/matter-types/matter-template-sheet.tsx ★+77
src/components/settings/matter-types/matter-templates-list-page.tsx ★+21 −9
src/components/settings/matter-types/use-matter-template-catalogs.ts ★+64
src/components/settings/matter-types/use-matter-template-form.ts+11 −1