fix(frontend): prefer canonical phase for client action gating (#301 follow-up) #306
Reference in New Issue
Block a user
Delete Branch "dev/issue-301-phase-action-gating-followup"
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?
Refs #287 and #301.
Summary
phase_view_model.current_phasewhen syncing host/player hash-routessession.statuscurrent_phase+readinessin the shared API mapperdocs/ISSUE-301-CLIENT-ACTION-GATING-ARTIFACT.mdGated actions
startRound, playerjoinshowQuestion, playersubmitLiemixAnswers+calculateScores, playersubmitGuessloadScoreboardonlystartNextRound+finishGame; player stays display-onlyTests
cd frontend/angular && npx vitest run src/app/features/host/host-shell.component.spec.ts src/app/features/player/player-shell.component.spec.tscd frontend && npm test -- --run tests/gameplay-phase-machine.test.ts tests/angular-api-client.test.tsGod opfølgning på #301. Klienten bruger nu canonical current_phase til action-gating, reveal-panel og route-sync, og de målrettede frontend-tests dækker regressionscasen hvor session.status halter efter.