Summarise this report on every report (2.0.1)

The eight reports that list people get the AI summary too, sent as
anonymised totals built on the screen (aiReportData.ts): no names,
contact details, notes or comments; consent and medical only as counts.
The server refuses personal columns on those reports and logs each
summary in the access log (ai_report; sensitive for consent and medical).

Roadmap §18: 2.0.1, then crosscode.co.za, then 2.1.0 (AI helpers on the
Consent log and Access log).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 18:42:27 +02:00
co-authored by Claude Opus 5.5
parent 8d7269a1e2
commit 40fa8b2dba
20 changed files with 359 additions and 48 deletions
+17
View File
@@ -7,6 +7,23 @@ and this project follows [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [2.0.1] - 2026-11-02
### Changed
- **Summarise this report on every report.** The eight reports that list people (Payments between
dates, Attendees per event, Revenue detailed, Master orders, Cashup audit trail, Parental consent
status, Feedback summary, Medical & emergency list) now have the button too. They're sent as
**anonymised totals**, worked out on the screen (`components/reports/aiReportData.ts`): per event
and method, status or option, with names, emails, who recorded or did what, notes and comments
left out; consent and medical details only as counts (given / pending / declined, with
allergies, on medication, …); feedback as the per-question results without the comments.
`POST /api/v2/ai/summarise-report` accepts every report key; for a people report it refuses
(403 `AI_REPORT_HAS_PEOPLE`) any column that would carry a person (name, email, attendee,
parent, emergency contact, notes, …), so a new column fails safe. Each people-report summary is
recorded in the access log (`ai_report`; sensitive for consent and medical). The prompt tells
the AI the totals are anonymised on purpose.
## [2.0.0] - 2026-11-02
### Added