teecup/frontend
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
..
app Update Todos 2026-07-28 22:34:16 +02:00
components 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
lib Update Todos 2026-07-28 22:34:16 +02:00
public Update Todos 2026-07-28 22:34:16 +02:00
.dockerignore Alt rent, ingen byggeartefakter liggende igjen, dokumentasjonen oppdatert. Oppsummering: 2026-07-17 22:28:43 +02:00
.gitignore Før grafikk 2026-07-17 21:57:44 +02:00
components.json Før kommunikasjon med V0 2026-07-17 21:40:42 +02:00
Dockerfile ADR-018 er nå helt ferdig — backend, begge frontend-skjermer, og nå Open Graph-metadata, alt live samme dag. Oppsummert: 2026-07-18 10:58:36 +02:00
next.config.mjs Update Todos 2026-07-28 22:34:16 +02:00
package.json Alt rent, ingen byggeartefakter liggende igjen, dokumentasjonen oppdatert. Oppsummering: 2026-07-17 22:28:43 +02:00
pnpm-lock.yaml Før grafikk 2026-07-17 21:57:44 +02:00
postcss.config.mjs Før kommunikasjon med V0 2026-07-17 21:40:42 +02:00
tsconfig.json Før kommunikasjon med V0 2026-07-17 21:40:42 +02:00
tsconfig.tsbuildinfo Update Todos 2026-07-28 22:34:16 +02:00