Skip to content

Guided "Something not working?" problem reports - #62

Merged
BPMData merged 2 commits into
mainfrom
claude/project-thread-9fpn0y
Nov 24, 2026
Merged

BPMData merged 2 commits into
mainfrom
claude/project-thread-9fpn0y

Conversation

@BPMData

@BPMData BPMData commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Before: Reporting a bug meant having a GitHub account or emailing out of band, with nothing to say which browser, device or feature was involved.

After: A "Something not working?" button (bottom right of the lobby, in the chat sidebar's room bar, and beside the room chip when chat is hidden) opens a 4-step dialog: what went wrong, what happened and how to repeat it (both skippable), optional private contact and comments, then a review showing the exact public issue and the private email. Pressing Send files a user-report issue here and emails the private part to overboard.reporting@gmail.com, subject [AllAboard] Problem report: …, through the report relay OverBoard already runs. If sending isn't set up, fails, or the browser is offline, the dialog offers Copy report, Download report (.txt) and Open an email to that inbox.

Closes #57

Depends on BPMData/OverBoard#56 for automatic filing (it teaches OverBoard's relay to accept AllAboard reports). Merging this first is safe: reports just use the fallback until the relay and secrets are set up.

How

  • src/lib/problemReport.ts (shared, pure): categories, whitelisted diagnostics, scrubbing, issue/email/fallback text.
  • problemReportRoute.ts + server.ts: POST /api/report validates, rebuilds the issue and email from whitelisted fields (a modified client can't add any), rate-limits (10 per client per 10 min, 60 per hour) and posts { app: 'AllAboard', kind: 'problem-report', token, issue, email } to OverBoard's relay. Reads the relay's { issue, url, emailed } answer and only passes on a github.com issue link. No relay configured gives a 503, and the browser shows the fallback.
  • .github/workflows/deploy.yml: passes REPORT_RELAY_URL / REPORT_RELAY_TOKEN from GitHub secrets only if both exist. Without them the gcloud command is identical to today (checked by running the step's shell with a stubbed gcloud).
  • Privacy: no names, room codes, PINs, chat, ink or worksheets. The browser scrubs the room code, saved PIN and every roster name out of the description before the preview, and those values never leave it. Emails, links, phone numbers and 4+ digit numbers are removed too. Contact and comments go by email only. The description is public by default (scrubbed); a "keep this description private" box moves it to the email.
  • The dialog sends nothing on the socket and changes no room state, so class keeps going. Escape closes it, focus stays inside it, each step's heading takes focus, and status changes are announced.
  • Docs: docs/REPORTS.md (flow, privacy table, setup steps for the shared relay), ARCHITECTURE/TODO/.env.example updated.

Tested

  • npm run lint, npm test (265 pass: privacy, scrubbing, validation, fallback text, route against a fake relay in OverBoard's reply shape for success/503/502/400/413/429), npm run build, the plain-node server.ts check.
  • e2e/problemReport.spec.ts (guided flow, nothing sent before Send, success link, failure fallback with download, Escape) runs in CI's Playwright job.

Still needs a manual check

  • One-time setup in docs/REPORTS.md (OverBoard relay switched on, two secrets here), then one test report to confirm the issue, label and email.
  • A quick look at the dialog on a Chromebook-sized screen.
  • No acknowledgement or fix-follow-up emails to AllAboard reporters. The dialog doesn't promise them.

🤖 Generated with Claude Code

Lobby and in-room entry opens a 4-step dialog: category, optional description
and steps, optional private contact/comments, then a review that shows the
exact public issue and the private email. Nothing is sent before Send.

POST /api/report validates, rebuilds the issue and email from whitelisted
fields, rate-limits, and forwards to an Apps Script relay (tools/report-relay.gs)
that holds the GitHub token, files a labeled issue and emails the private part
to overboard.reporting@gmail.com. Without a relay, or on failure/offline, the
dialog offers copy, download and a mailto to the same inbox.

Names, room codes, PINs, chat, ink and worksheets are never included; the room
code, PIN and roster names are scrubbed from the description in the browser.
deploy.yml passes REPORT_RELAY_URL/TOKEN only when those secrets exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop AllAboard's own Apps Script. The server now posts reports to the relay
OverBoard already runs (BPMData/OverBoard PR 56 teaches it to accept them),
tagged kind 'problem-report', and reads that relay's { issue, url } answer.
Setup docs rewritten for the shared relay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BPMData
BPMData merged commit 5447706 into main Nov 24, 2026
2 checks passed
@BPMData
BPMData deleted the claude/project-thread-9fpn0y branch November 24, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a simple guided problem-reporting flow

2 participants