You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a feedback widget to gaming_app that matches the game's visual theme. Players can report bugs or request features without leaving the app, and session logs are attached automatically so developers have full context.
User story
As a gaming_app player, I want to submit a bug report or feature request from within the game so that I can give feedback without switching to a separate tool.
Context
This is the gaming_app-side UI for the feedback system. The widget POSTs to the shared Cloudflare feedback worker (#109). It must use gaming_app's design tokens and theme — it should look and feel like part of the game, not a generic form.
Part of: #46
Depends on: #109 (worker must exist before integration)
Acceptance criteria
Feedback button/entry point accessible from the main in-game menu (exact placement TBD with design)
Form fields: Title (required), Description (required), Type selector: Bug Report | Feature Request
Screenshot attachment: user can capture current screen or upload from device (optional)
Session log attachment: last N minutes of client-side logs attached automatically on submit (user-visible disclosure: "Your session logs will be included")
Submit POSTs to worker URL configured via env var VITE_FEEDBACK_WORKER_URL (or equivalent build-time env var for gaming_app's stack)
Success state: confirmation message with link to the created GitHub issue
Error states handled: rate limited (friendly message + retry timer), content rejected (generic "submission couldn't be accepted" — do not expose Claude classification reason), network error (retry option)
Widget fully keyboard-navigable (WCAG 2.1 AA — tab order, focus management on open/close)
All UI copy goes through i18next (no hardcoded strings)
Widget uses gaming_app design tokens for colors, typography, spacing — no hardcoded CSS values
Widget does not render in production builds if VITE_FEEDBACK_WORKER_URL is unset (graceful no-op)
In plain English
Add a feedback widget to gaming_app that matches the game's visual theme. Players can report bugs or request features without leaving the app, and session logs are attached automatically so developers have full context.
User story
As a gaming_app player, I want to submit a bug report or feature request from within the game so that I can give feedback without switching to a separate tool.
Context
This is the gaming_app-side UI for the feedback system. The widget POSTs to the shared Cloudflare feedback worker (#109). It must use gaming_app's design tokens and theme — it should look and feel like part of the game, not a generic form.
Part of: #46
Depends on: #109 (worker must exist before integration)
Acceptance criteria
VITE_FEEDBACK_WORKER_URL(or equivalent build-time env var for gaming_app's stack)VITE_FEEDBACK_WORKER_URLis unset (graceful no-op)Technical notes
{ appId: "gaming_app", title, description, type: "bug"|"feature", screenshotBase64?, sessionLogs? }html2canvasor the browser's Screen Capture API — evaluate what's already in gaming_app's dependency treefeedback— add keys to gaming_app's locale filessrc/components/FeedbackWidget/(follow gaming_app's existing component conventions)Test coverage
Unit tests
typevalue sent in payloadE2E tests
Performance
Regression
Documentation to update
VITE_FEEDBACK_WORKER_URLenv var requirementfeedbacki18n namespace to gaming_app's locale inventoryUnknowns / needs investigation
Out of scope
Dependencies
Definition of done