Commit Graph
164 Commits
Author SHA1 Message Date
davideandClaude Opus 5 af563603f9 Add a test suite for the domain logic and the server routes.
The project had no automated verification at all, so the "Test" step in
the AGENTS.md workflow rested entirely on clicking through the app.

The suite runs on bun with node:assert and adds no dependency: every file
is a script that exits non-zero when a check fails, and test/run.ts runs
each one in its own process. Unit tests cover the rules that decide what
players see (badges, streaks, ball duty rotation, ratings, MVP ties,
scouting totals, goals, notifications, CSI parsing); integration and
end-to-end tests drive the real dev server. Nothing writes to the
database, so both can be pointed at a live environment.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-30 13:07:41 +02:00
davideandClaude Opus 5 fee3d0b55a Read the official standings and results from the CSI portal.
The Campionato page showed hardcoded demo data. It now reads the real
2025/26 season (Campionato Open Misto Eccellenza, project 767, team
3359, Girone B) from the Livescore CSI Bologna portal.

The portal has no documented API: we call the same endpoints its own
pages call over ajax, so parsing must degrade gracefully. A single
server route fetches them, caches for 6 hours and serves the last good
payload on failure; the page falls back to the previous data when
nothing is available. No browser ever contacts the portal, keeping the
request count independent of how many players open the app.

Also fixes the header, which claimed "Girone C - CSI Milano".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-30 12:23:12 +02:00
davide baaffc66db Add CLAUDE.md guide for Claude Code sessions. 2026-08-30 12:23:12 +02:00
Ivan Cacciari 7d16bdba75 Update project state and Supabase configuration 2026-08-30 12:16:20 +02:00
Ivan CacciariandCursor 7b4bfe8b27 Add M1 migration for giocatori_squadra roster table.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 17:27:58 +02:00
Ivan CacciariandCursor 32782227f4 Record approved F0 player profile data schema as DD-016.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 17:00:28 +02:00
Ivan CacciariandCursor 57b36b5a09 Reference DESIGN_DECISIONS.md in AGENTS.md for AI and contributors.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 16:33:32 +02:00
Ivan Cacciari 19e1bb0790 Add AI documentation and project governance 2026-08-07 19:42:21 +02:00
Ivan Cacciari 7a2b26ec89 Add project documentation and AI development guidelines 2026-08-07 15:36:02 +02:00
Ivan Cacciari 6dc63d9250 Test branch develop 2026-08-07 12:23:27 +02:00
Ivan Cacciari c99f444652 correzione schermata benvenuto 2026-08-07 11:41:04 +02:00
Ivan Cacciari 647e13d0e5 Test deploy automatico 2026-08-07 11:18:51 +02:00
Ivan Cacciari 6ed7546e7a Test deploy automatico 2026-08-06 19:53:15 +02:00
Ivan Cacciari 330669176d Initial independent version of CrAPP 2026-08-06 08:36:47 +02:00