Fix Share-Feedback Tool 500 Error
Canadian Elite Volleyball Academy — Development Update • April 23, 2026
--- title: Fix Share-Feedback widget 500 error ---
Fix Share-Feedback Tool 500 Error
What & Why
The "Share Your Feedback" widget (the orange button used by coordinators and athletes to file bug reports / suggestions from any page) fails for every user with a 500 "Failed to submit feedback" error. Production logs confirm the cause: the request handler calls , but that function is never imported into the file that defines the route, so it throws on every submission. No feedback is reaching the system right now — Charlie's bug report and any others sent today were dropped.Done looks like
- A coordinator (or athlete) opens the feedback widget, fills in title/description, picks a category, clicks Submit, and sees the success toast ("Thank you for your feedback!" or the filtered-content variant).
- The new submission appears in the SuperAdmin suggestions list with the right submitter name, role, category, and page context.
- No more entries in the deployment logs after the fix is deployed.
- Submitting flagged content still works (sanitized) and is marked .
Out of scope
- Redesigning the feedback widget UI.
- Reworking suggestion moderation, replies, or the SuperAdmin suggestions dashboard.
- Backfilling Charlie's lost submission (he can resend once the fix is live).
- Changing the role-detection logic that currently defaults non-superadmin submitters without a to .
Steps
1. Import the missing validator — In the routes file that defines , extend the existing import so is in scope alongside . While there, sanity-check that no other handler in the same file references a content-filter export that isn't imported. 2. Manual verification in dev — Restart the app, log in as a coordinator, open the feedback widget from a non-league page (e.g. a profile page), submit a normal Bug Report, and confirm the success toast plus a new row visible to a SuperAdmin. Repeat with an obviously inappropriate string to confirm the sanitized-submission path also returns 200.Relevant files
- - - -Canadian Elite Volleyball Academy
elitevolleyball.training
No comments:
Post a Comment