step 8.3: done
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
## Phase 8 — Leaderboards & Social-lite (docs: GAME_DESIGN §Leaderboards)
|
||||
- [x] **8.1** `GET /api/leaderboard?type=level|gold|kills` top 50, with pagination param.
|
||||
- [x] **8.2** Public profile `GET /api/heroes/:name` (no private data).
|
||||
- [ ] **8.3** UI page.
|
||||
- [x] **8.3** Public profile UI page (`public/profile.html` + `public/js/profile.js`).
|
||||
|
||||
## Phase 9 — Hardening & Polish (docs: SECURITY, UI_GUIDE, TESTING)
|
||||
- [ ] **9.1** Walk the SECURITY.md checklist; fix gaps.
|
||||
@@ -150,11 +150,12 @@ Severity: `blocker` / `major` / `minor` / `cosmetic`. Status: `open` / `fixing`
|
||||
## Test Summary
|
||||
| Suite | Passing | Failing | Last run |
|
||||
|---|---|---|---|
|
||||
| unit | 85 | 0 | 2026-10-21 step 7.3 |
|
||||
| integration | 68 | 0 | 2026-10-21 step 7.3 |
|
||||
| unit | 85 | 0 | 2026-10-21 step 8.3 |
|
||||
| integration | 87 | 0 | 2026-10-21 step 8.3 |
|
||||
|
||||
## Session Log
|
||||
_Format:_ `YYYY-MM-DD | step | what changed | result`
|
||||
- 2026-10-21 | 8.3 | Created public profile UI: `public/profile.html` + `public/js/profile.js` (fetches GET /api/heroes/:name via ?name=, displays hero name/class/level/gold/stats/equipment; 404 handling, URL-safe names); 5 integration tests | 172/172 tests pass
|
||||
- 2026-10-21 | 7.3 | Added expedition UI: GET /api/expeditions/defs endpoint (expeditionService.listDefinitions + expeditions route), CSS styles for expedition elements, game.html expedition tab, game.js expedition UI (renderExpeditionDefs, renderActiveExpedition, handleStartExpedition, handleClaimExpedition, startExpeditionSync), 2 integration tests for defs endpoint | 153/153 tests pass
|
||||
- 2026-10-21 | 7.2 | Created `src/services/expeditionService.js` (start, getActive, claim), `src/routes/expeditions.js` (3 endpoints), integrated into app.js; 11 integration tests covering start, active, claim, error paths, double-claim, cross-user rejection, time-based finish | 151/151 tests pass
|
||||
- 2026-10-21 | 7.1 | Created migration `005_expeditions.sql` (expedition_defs + expeditions tables, unique active-expedition index, 3 seed definitions); migration applies clean, all tests pass | 139/139 tests pass
|
||||
|
||||
Reference in New Issue
Block a user