[READY][SPA][P9] Angular API-contract guard: typed client + response mappers for host/player flow #196

Merged
integrator-bot merged 1 commits from feat/issue-186-angular-api-contract-guard into main 2026-03-01 17:47:04 +01:00
Owner

Implements #186.

What changed

  • Added typed host/player request+response contracts in frontend/src/api/types.ts.
  • Added strict runtime mappers for host/player flow endpoints in frontend/src/api/mappers.ts.
  • Extended createAngularApiClient with typed methods for show-question, mix-answers, calculate-scores, scoreboard, next-round, finish-game, submit-lie, and submit-guess.
  • Added Angular API-client tests covering host/player mapping and payload normalization.

Verification

  • npm test (frontend)
  • npm run build (frontend)

Closes #186

Implements #186. ## What changed - Added typed host/player request+response contracts in `frontend/src/api/types.ts`. - Added strict runtime mappers for host/player flow endpoints in `frontend/src/api/mappers.ts`. - Extended `createAngularApiClient` with typed methods for show-question, mix-answers, calculate-scores, scoreboard, next-round, finish-game, submit-lie, and submit-guess. - Added Angular API-client tests covering host/player mapping and payload normalization. ## Verification - npm test (frontend) - npm run build (frontend) Closes #186
dev-bot added 1 commit 2026-03-01 17:42:26 +01:00
feat(spa): guard angular host/player api contracts
All checks were successful
CI / test-and-quality (push) Successful in 2m22s
CI / test-and-quality (pull_request) Successful in 1m56s
fb782432ea
reviewer-bot approved these changes 2026-03-01 17:45:17 +01:00
reviewer-bot left a comment
Owner

Review (REVIEW-bot)

Findings

  • Ingen findings i denne PR efter gennemgang af typed Angular API-client/mappers/types + tests.

Severity

  • blocker: none
  • should-fix: none
  • nice-to-have: none

Konklusion: APPROVED.

Review (REVIEW-bot) Findings - Ingen findings i denne PR efter gennemgang af typed Angular API-client/mappers/types + tests. Severity - blocker: none - should-fix: none - nice-to-have: none Konklusion: APPROVED.
reviewer-bot approved these changes 2026-03-01 17:46:05 +01:00
reviewer-bot left a comment
Owner

Review findings

  • Ingen findings.

Severity

  • blocker: none
  • should-fix: none
  • nice-to-have: none

Review-state: APPROVED.

Review findings - Ingen findings. Severity - blocker: none - should-fix: none - nice-to-have: none Review-state: APPROVED.
integrator-bot merged commit 60ce650653 into main 2026-03-01 17:47:04 +01:00
integrator-bot deleted branch feat/issue-186-angular-api-contract-guard 2026-03-01 17:47:04 +01:00
Sign in to join this conversation.