Bug-1200: Unblock Add Matter participant labels

Story 1200Epic None12 files · +546/−102

PR #305 · pramaan-io/pramaan-app · merged 2026-06-11

Why this matters

The wizard wouldn't let a partner file a matter — even when the client was already on file

Add Matter, Step 3

A valid client wasn't enough to file the matter.

The fix — Don't block the doorway for a sticker you don't need.

How it flows

sequenceDiagram
  autonumber
  participant firm as Firm
  participant page as Matters Page
  participant wiz as Wizard Step 3
  participant api as Backend
  firm->>page: catalog hydrates
  page->>wiz: map name → displayName
  wiz-->>api: createLabel mutation
  wiz->>wiz: forward labels into payload
  wiz->>wiz: valid client → advance to Team

Files changed (12)

File±
messages/en.json+9
messages/hi.json+9
src/app/[locale]/(workspace)/matters/page.tsx+25 −13
src/components/add-matter/add-matter-wizard.tsx+26 −8
src/components/add-matter/participant-label-select.stories.tsx+20 −1
src/components/add-matter/participant-label-select.tsx ★+149 −32
src/components/add-matter/party-island.stories.tsx+18 −1
src/components/add-matter/step3-parties-form.tsx ★+82 −24
src/components/matters/live-matters-list-page.tsx ★+60 −23
src/components/matters/live-matters-wizard-payload.ts+41
tests/unit/add-matter-wizard-label-gate.test.tsx+46
tests/unit/live-matters-wizard-payload.test.ts+61