Go to file
Bhanu Prakash Sai Potteri a52ff32eb4 feat: surface the AI's work, the audit trail and the invoice PDF in our UI
Ports the data that arrived with the merge into the rebuilt detail view, so
nothing the API returns is left unrendered and there is one visual language.

- SourceDocument: invoice_pdf was write-only — uploaded, OCR'd, then shown
  nowhere. Fetched as a Blob (the endpoint forces an attachment) and rendered
  inline via an object URL, revoked on unmount
- AuditTrail: the history as a timeline — actor AI-vs-human, resulting state,
  per-activity headline and how long each hop waited
- AiActivity: decisions with status/confidence/model, the model's plan,
  reasoning and self-check, escalations, and a per-run trace waterfall with
  durations, tokens and cost
- adopts lib/matchSummary for both free-text AI fields: it parses entity
  labels our inline version dropped ("PO-3001:", "GR:"), treats
  PARTIAL/MISSING as warnings and "Payments: NONE" as neutral, and turns
  analysis_so_far into evidence rows instead of a paragraph
- drops the five pre-migration components these replace, plus the TONE_PILL /
  TONE_DOT class maps they were the only users of — the last hardcoded
  slate/zinc palette in the app. CSS 115.8 -> 98.1 kB

STATE_META stays: keying display metadata off state UUIDs beats matching
served names, and folding it into lib/workflow.ts is the next step.
2026-07-29 20:04:58 +05:30
public initial commit: p2p-studio — custom frontend wired to studio env (app 169) 2026-06-04 15:39:22 +05:30
src feat: surface the AI's work, the audit trail and the invoice PDF in our UI 2026-07-29 20:04:58 +05:30
.gitignore initial commit: p2p-studio — custom frontend wired to studio env (app 169) 2026-06-04 15:39:22 +05:30
components.json feat: rebuild the UI on Tailwind v4 + shadcn/ui 2026-07-29 19:47:59 +05:30
frontgen_projects_dev_to_studio.sql initial commit: p2p-studio — custom frontend wired to studio env (app 169) 2026-06-04 15:39:22 +05:30
index.html initial commit: p2p-studio — custom frontend wired to studio env (app 169) 2026-06-04 15:39:22 +05:30
migration_dev_to_studio.sql initial commit: p2p-studio — custom frontend wired to studio env (app 169) 2026-06-04 15:39:22 +05:30
p2p_demo_schema.sql initial commit: p2p-studio — custom frontend wired to studio env (app 169) 2026-06-04 15:39:22 +05:30
package-lock.json feat: rebuild the UI on Tailwind v4 + shadcn/ui 2026-07-29 19:47:59 +05:30
package.json feat: rebuild the UI on Tailwind v4 + shadcn/ui 2026-07-29 19:47:59 +05:30
seed.sql initial commit: p2p-studio — custom frontend wired to studio env (app 169) 2026-06-04 15:39:22 +05:30
tsconfig.app.json feat: rebuild the UI on Tailwind v4 + shadcn/ui 2026-07-29 19:47:59 +05:30
tsconfig.json feat: rebuild the UI on Tailwind v4 + shadcn/ui 2026-07-29 19:47:59 +05:30
tsconfig.node.json feat: rebuild the UI on Tailwind v4 + shadcn/ui 2026-07-29 19:47:59 +05:30
vite.config.ts feat: rebuild the UI on Tailwind v4 + shadcn/ui 2026-07-29 19:47:59 +05:30