Add phase-aware frontend shell, polling client, and global exception handler

This commit is contained in:
2026-01-28 15:05:54 +01:00
parent 44514f8ecc
commit 74dcad74aa
5 changed files with 455 additions and 20 deletions

View File

@@ -12,7 +12,7 @@
## Identity & Middleware
- [x] Middleware to issue/read HttpOnly `player` cookie with Guid; SameSite=Strict; secure in production.
- [x] Minimal API helpers to resolve current player and ensure existence in DB.
- [ ] Global exception/validation handling and basic logging.
- [x] Global exception handling and basic logging.
## Phase Enforcement
- [x] Store current phase in `AppState`; default to Suggest.
@@ -27,9 +27,9 @@
- [x] Admin endpoints: switch phase, reset data; protect via env password.
## Frontend (wwwroot)
- [ ] `index.html` shell with phase-driven sections.
- [ ] `app.js` API client, polling, and render functions per phase; enforce blindness in UI.
- [ ] `styles.css` basic responsive layout (desktop + mobile).
- [x] `index.html` shell with phase-driven sections.
- [x] `app.js` API client, polling, and render functions per phase; enforce blindness in UI.
- [x] `styles.css` basic responsive layout (desktop + mobile).
## Persistence & Migrations
- [x] Create initial EF Core migration for SQLite schema.