4 Commits

Author SHA1 Message Date
7273b76c52 fix: correct day-of-week mapping and show date preview errors
- Fix select values to match JS Date.getDay() (0=Sunday) so Thursday
  correctly generates Thursdays instead of Wednesdays
- Move dates-msg outside hidden preview-box so validation errors are visible

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-08 13:58:14 +01:00
35119f796f fix: allow accented characters in player and guest names
Extend validation regex to include Latin Extended Unicode range
(\u00C0-\u024F) covering é, è, à, ü, ö, etc. in backend and frontend.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-08 13:50:46 +01:00
1434e906fd feat: add season-aware views on main page and reports
- Main page: filter table by current season by default; show Next Season button when next season dates exist in DB
- Reports page: filter charts to current season; add Last Season toggle button when previous season data exists
- Admin archive: export all dates/players as CSV (no season filter)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-08 13:39:52 +01:00
abb3f47a57 feat: add admin page for date and player management
- Add active flag to Player model with idempotent ALTER TABLE migration
- Filter inactive players from main attendance table and API
- New /admin page with date generation (preview + bulk add) and player management (add/deactivate/reactivate)
- New API endpoints: GET/POST /api/players, PATCH /api/players/<id>
- Add Admin nav link on main page

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-08 12:55:41 +01:00