Feedback page: results, responses, who hasn't answered, reminders (2.1.0)

- Supervisor -> Feedback (supervisors and admins, campus-scoped): every
  event's form with answered of asked, response rate, average rating and
  last reminder; per event the results per question (with the AI summary),
  each response, and on named forms who was asked and who has answered.
- Remind those who haven't answered (or one person on a named form): a
  fresh link, plus the form to anyone eligible who hasn't had it; nobody gets
  the form or a reminder twice within 24 hours. The 3-day job is unchanged.
- Anonymous forms show no names and no list of who has answered.
- FeedbackInvite.reminderCount (migration 20261103120000_feedback_reminders);
  access log action feedback_responses; help page; dashboard and Ctrl+K links.
- Roadmap: the AI helpers on the privacy pages are dropped; 2.1.0 is the
  feedback page.
- Tests: tests/feedbackPage.test.ts, e2e/feedback.spec.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-03 13:03:05 +02:00
co-authored by Claude Opus 5.5
parent c018772ded
commit 9dda0d1851
31 changed files with 2184 additions and 52 deletions
+34
View File
@@ -7,6 +7,40 @@ and this project follows [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [2.1.0] - 2026-11-03
### Added
- **Feedback page** (Supervisor → Feedback, `/dashboard/supervisor/feedback`; supervisors and
admins, campus-scoped supervisors see their campuses). Every event with a feedback form, newest
first: sent / scheduled / no send time, answered of asked with the response rate, the average
star rating and the last reminder. One event's page has the per-question **Results** (with the
AI "Summarise feedback" button), each **Response**, and on a named form **People** — who was
asked, who has answered and the reminders each has had. "Send now" before it goes out; "Edit
form" opens the event editor.
- **Remind those who haven't answered** (`POST /api/v2/events/{id}/feedback/remind`): a fresh link
to each, and the form to anyone eligible who hasn't had it yet (e.g. checked in after it went
out). On a named form one person can be reminded (`userIds`). Nobody gets the form or a reminder
twice within 24 hours (`REMIND_GAP_MS`). The automatic 3-day reminder is unchanged.
- `GET /api/v2/feedback` (every form) and `GET /api/v2/events/{id}/feedback/results` (one
event's results, responses and people) — `src/services/feedback.ts`, `src/v2/resources/feedback.ts`.
- `FeedbackInvite.reminderCount`, counting automatic and manual reminders (migration
`20261103120000_feedback_reminders`; existing reminded invites start at 1).
- Access log action **`feedback_responses`**: opening a named form's answers.
- Help page for the Feedback page; Feedback on the supervisor and admin dashboards and in Ctrl+K.
### Changed
- **Anonymous forms stay anonymous on the page:** no names on answers, and no list of who has or
hasn't answered (it would give answers away on a small event) — counts only, and no reminding
one person.
- A reminder now only goes to someone who still hasn't answered at the moment it's sent.
### Removed
- The planned 2.1.0 AI helpers on the privacy pages (Consent log, Access log) are dropped from
the roadmap.
## [2.0.2] - 2026-11-03
### Changed