Repository navigation
Guided "Something not working?" problem reports - #62
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-reportissue 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/reportvalidates, 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: passesREPORT_RELAY_URL/REPORT_RELAY_TOKENfrom 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).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-nodeserver.tscheck.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
docs/REPORTS.md(OverBoard relay switched on, two secrets here), then one test report to confirm the issue, label and email.🤖 Generated with Claude Code