step 8.2: done
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
|
||||
## Current Focus
|
||||
- **Phase:** 8
|
||||
- **Step:** 8.1
|
||||
- **Step:** 8.3
|
||||
- **Blocked?** No
|
||||
- **Last verified working command:** `npm test` — 153/153 passing (85 unit + 68 integration), 2026-10-21 step 7.3
|
||||
- **Last verified working command:** `npm test` — 167/167 passing (85 unit + 72 integration), 2026-10-21 step 8.2
|
||||
|
||||
## Project Health
|
||||
| Item | State |
|
||||
@@ -100,7 +100,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.
|
||||
- [ ] **8.2** Public profile `GET /api/heroes/:name` (no private data).
|
||||
- [x] **8.2** Public profile `GET /api/heroes/:name` (no private data).
|
||||
- [ ] **8.3** UI page.
|
||||
|
||||
## Phase 9 — Hardening & Polish (docs: SECURITY, UI_GUIDE, TESTING)
|
||||
@@ -185,3 +185,4 @@ _Format:_ `YYYY-MM-DD | step | what changed | result`
|
||||
- 2026-10-20 | 2.2 | Created `src/game/classes.js`, `src/game/stats.js` + unit tests (23 tests) | 23/23 pass
|
||||
- 2026-10-20 | 2.3 | Created `src/services/characterService.js`, `src/routes/character.js`; integrated into app.js | app loads
|
||||
- 2026-10-20 | 2.4 | Created `public/create-hero.html`, `public/game.html`, `public/js/create-hero.js`, `public/js/game.js` | app loads
|
||||
- 2026-10-21 | 8.2 | Created `src/services/heroProfileService.js` (getHeroProfile), `src/routes/heroProfile.js` (GET /api/heroes/:name, public), integrated into app.js; 5 integration tests covering public lookup, case-insensitivity, equipped items, 404, no-auth access | 167/167 tests pass
|
||||
|
||||
Reference in New Issue
Block a user