teecup/app/routers
Erol Haagenrud 4b9d93941e Stableford is now a real spilleform for frittstående runder, alongside Slagspill/Match: selectable at round creation, editable afterward, shown as a badge everywhere the round appears.
"Plukket opp" — a new button in the scoring wizard's Slag step (only for Slagspill/Stableford, when handicap is known). Tapping it auto-hops forward just like picking a stroke count, and the server writes the exact Net Double Bogey score (par+2+mottatte slag) — so it flows through the existing HCP/AGS pipeline unchanged, always nets to exactly 0 Stableford points. Shown everywhere as a "PU" badge instead of a raw number: scorekortet, leaderboardet, "Så langt i runden".

Along the way, browser testing caught two real bugs (not just theoretical): the new-round form briefly showed a nonsensical "set up sides" notice under Stableford, and — more seriously — the match/skins territory-bar panel was rendering empty "Side A/Side B" bars on a Stableford round. Both traced to the same root cause (=== "stroke" checks that needed to also exclude the new format), and a full grep caught three more of the same pattern in watch-round.tsx before they could reach production.

Everything verified in scratch (hand-calculated math matched exactly) and in the browser (all four display surfaces, plus a regression check on an existing match round). Migration 038 applied to the real database, both containers redeployed, teeoff.no unaffected.
2026-07-29 19:46:17 +02:00
..
__init__.py Alle "oppsett"-endepunktene fra planen er bygget og verifisert for ekte mot scratch-databasen (fersk teecup_scratch, 001→002→003, container med pip install + uvicorn, curl gjennom hele flyten, deretter fullstendig opprydding). 2026-07-16 09:16:22 +02:00
auth.py Alt er ferdig, verifisert og live. Oppsummert: 2026-07-28 11:04:51 +02:00
courses.py All three changes are implemented and scratch-verified (22/22 checks passed, test_isolation.sql still 12/12, frontend typechecks cleanly). Summary of what's ready to ship: 2026-07-25 06:29:09 +02:00
friends.py Etter første inngripen av Gemini 2026-07-29 12:44:51 +02:00
matches.py Etter første inngripen av Gemini 2026-07-29 12:44:51 +02:00
messaging.py Update Todos 2026-07-22 05:46:47 +02:00
notifications.py Update Todos 2026-07-28 22:34:16 +02:00
organizations.py Update Todos 2026-07-19 10:36:50 +02:00
players.py Update Todos 2026-07-20 10:01:44 +02:00
registration.py Update Todos 2026-07-22 05:46:47 +02:00
rounds.py Stableford is now a real spilleform for frittstående runder, alongside Slagspill/Match: selectable at round creation, editable afterward, shown as a badge everywhere the round appears. 2026-07-29 19:46:17 +02:00
scoring.py Update Todos 2026-07-28 20:56:08 +02:00
tournaments.py Update Todos 2026-07-28 20:56:08 +02:00