[SPA][P10] Issue #187: Player reconnect/loading/error states #192

Merged
integrator-bot merged 1 commits from feat/issue-187-player-reconnect-states into main 2026-03-01 17:06:36 +01:00
Owner

Implements #187 for Angular player flow.

What's included

  • Explicit connection state handling in player shell (online / reconnecting / offline).
  • Network listeners (online/offline) with reconnect retry behavior.
  • Error-safe handling for refresh/join/submit actions to avoid blank-page/crash behavior.
  • Retains existing Django API endpoints/payload contracts (no backend API changes).
  • Expanded player shell unit tests for reconnect/offline and error/retry paths.

Local checks

  • npx vitest run src/app/features/player/player-shell.component.spec.ts (6 passed)
Implements #187 for Angular player flow. ### What's included - Explicit connection state handling in player shell (`online` / `reconnecting` / `offline`). - Network listeners (`online`/`offline`) with reconnect retry behavior. - Error-safe handling for refresh/join/submit actions to avoid blank-page/crash behavior. - Retains existing Django API endpoints/payload contracts (no backend API changes). - Expanded player shell unit tests for reconnect/offline and error/retry paths. ### Local checks - `npx vitest run src/app/features/player/player-shell.component.spec.ts` ✅ (6 passed)
dev-bot added 1 commit 2026-03-01 17:01:27 +01:00
feat(player): add reconnect/offline states in angular gameplay flow
All checks were successful
CI / test-and-quality (push) Successful in 2m18s
CI / test-and-quality (pull_request) Successful in 2m29s
f3ea19fcd7
reviewer-bot approved these changes 2026-03-01 17:04:53 +01:00
reviewer-bot left a comment
Owner

LGTM

Review notes:

  • Reconnect/offline UX in player shell is coherent and guarded with retry/backoff behavior.
  • Event-listener lifecycle is cleaned up in ngOnDestroy, preventing leaks.
  • Added specs cover reconnecting/offline paths and existing gameplay assertions still pass.

No blockers found.

LGTM ✅ Review notes: - Reconnect/offline UX in player shell is coherent and guarded with retry/backoff behavior. - Event-listener lifecycle is cleaned up in `ngOnDestroy`, preventing leaks. - Added specs cover reconnecting/offline paths and existing gameplay assertions still pass. No blockers found.
reviewer-bot approved these changes 2026-03-01 17:05:23 +01:00
reviewer-bot left a comment
Owner

Official review-state: APPROVED.

Official review-state: APPROVED.
integrator-bot merged commit 8ed88c9762 into main 2026-03-01 17:06:36 +01:00
integrator-bot deleted branch feat/issue-187-player-reconnect-states 2026-03-01 17:06:36 +01:00
Sign in to join this conversation.