Phase 10: anonymous volunteer feedback — rating + comment to org admins - #24
Closed
ArneeMe wants to merge 1 commit into
Closed
Phase 10: anonymous volunteer feedback — rating + comment to org admins#24ArneeMe wants to merge 1 commit into
ArneeMe wants to merge 1 commit into
Conversation
After submitting the form, the confirmation screen offers a 1-5 star rating with an optional comment (localized NO/EN, with an explicit 'don't include personal data — this is anonymous' hint). Stored per org with NO identity: no user id, no submission reference, no IP. - New feedback table (migration + baseline): org, rating 1-5 CHECK, comment, timestamp. - API at /api/org/[slug]/feedback: anonymous POST behind a tight per-IP rate limit (5/10min), admin GET and org-scoped DELETE behind the usual membership guard. - New 'Tilbakemeldinger' admin tab: average rating, newest-first list, per-item delete. - E2E test walks form -> confirmation -> rate 4 stars -> comment -> send, asserting the exact API payload. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BFHkXUuHJME4cF9AJWbavB
Deploying inf319-certificate with
|
| Latest commit: |
933474b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1ff104ab.inf319-certificate.pages.dev |
| Branch Preview URL: | https://claude-phase-10-feedback.inf319-certificate.pages.dev |
Owner
Author
|
Superseded by the review-ordered stack #25 → #29 (feedback landed in #28, the org-features tier). Closing. Generated by Claude Code |
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.
Stacked on #23 (chain: #16 → #17 → #20 → #21 → #22 → #23 → this). Retarget bases downward as parents merge.
What it does
Privacy by construction
The feedback row carries no identity: no user id, no submission reference, no IP — only org, rating, comment, timestamp. It cannot be joined back to a person from server state, consistent with the platform's model.
Plumbing
feedback), added both asscripts/migrations/2026-07-feedback.sql(run in Hasura console + track the table) and to the fresh-install baseline. This is the first DB change since the baseline — deliberately small.POSTbehind a tight per-IP rate limit (5/10 min, stricter than the form's), adminGET/org-scopedDELETEbehind the usualrequireOrgMemberBySlugguard.Deploy note
Run the migration SQL and track
feedbackin the Hasura console before merging to production — the POST fails harmlessly (feedback error text on the confirmation screen, submission unaffected) if the table is missing.Verification
🤖 Generated with Claude Code
https://claude.ai/code/session_01BFHkXUuHJME4cF9AJWbavB
Generated by Claude Code