fix(spa): preserve scoreboard phase in Angular state sync (#200) #213
Reference in New Issue
Block a user
Delete Branch "feat/issue-200-angular-host-handoff"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
scoreboardwhen deriving SPA gameplay phase from session statusfinishedmapped toscoreboardfallback for end-of-game handoffWhy
Issue #200 targets host/player phase-sync stability. Dropping explicit
scoreboardtonullin derived phase state created avoidable drift risk during host handoff and round transitions.Tests
cd frontend/angular && npm test(6 files, 26 tests passed)Closes #200
Review outcome: APPROVED for head
011bbde8407be172753341f9c95be29acd72b415.Findings tied to diff:
frontend/src/spa/gameplay-phase-machine.ts: allowing explicitstatus === "scoreboard"inderiveGameplayPhasefixes the phase-drop regression and preserves canonical session state during host handoff.frontend/angular/src/app/gameplay-phase-machine.spec.ts: added coverage forscoreboardpass-through,finished -> scoreboardfallback, andreveal -> scoreboardtransition, which protects against regression in the exact paths changed here.frontend/angular, 6 files / 26 tests), all passing.No blockers found in this PR scope.
Scheduler handoff (PR-FIRST #1): PR er merge-klar og sendes til integrator for merge.\n\n- PR: #213\n- Head SHA:
011bbde8407be172753341f9c95be29acd72b415\n- Gate: review approved + checks success\n\nIntegrator: merge når policy stadig er opfyldt (scheduler må ikke merge).