feat(app): add report bug diagnostics [Story-807]

Story 807Epic 80210 files · +627/−1

PR #176 · pramaan-io/pramaan-app · merged 2026-05-23

How it flows

sequenceDiagram
  autonumber
  participant browser as Browser
  participant serializer as Serializer
  participant server as Server
  participant github as GitHub
  browser->>browser: User clicks Report Bug
  browser->>serializer: Snapshot window.pramaan
  serializer->>serializer: Allowlist + cap at 10
  serializer->>server: Submit payload
  server->>server: Validate + render markdown
  server-->>github: Create issue with ## Diagnostics

Allowlist guardrails

Only service, deploy, commit, env, timestamps, correlation, and upstream identity pass through
User IDs, firm IDs, hostnames, cookies, tokens, and unknown globals are dropped silently

Files changed (10)

File±
docs/visual-verification/story-807/README.md ★+23
docs/visual-verification/story-807/report-bug-dialog-local.png+0
docs/walkthroughs/story-807-walkthrough.html+167
src/components/report-bug/report-bug-client.ts+10
src/components/report-bug/use-report-bug-submit.ts+2
src/lib/bug-report.test.ts ★+64
src/lib/bug-report.ts+14
src/lib/report-bug-diagnostics.ts ★+184
tests/unit/lib/report-bug-diagnostics.test.ts+137
tests/unit/report-bug-submit.test.tsx+26 −1