step 9.5: done

This commit is contained in:
bepis
2026-10-21 11:45:36 +11:00
parent 2718f3944f
commit 1564615322
3 changed files with 141 additions and 35 deletions
+9 -5
View File
@@ -4,8 +4,8 @@
> If this file disagrees with the code, trust the code and fix this file.
## 1. Where we are
- **Last completed step:** 9.5 (Final full run of "Definition of playable") — TICKED in STATUS.md
- **Next step:** Phase 9 — 9.6 (Update README with real run instructions)
- **Last completed step:** 9.6 (Update README with real run instructions) — TICKED in STATUS.md
- **Next step:** Phase 9 is complete. Ready to start Stretch Goals (S1–S7) or address Known Issues from STATUS.md.
- **Updated:** 2026-10-21
- **Was the last session cut off mid-task?** No
@@ -16,6 +16,7 @@
| `npm run migrate` | applies 001–006 / "nothing to do" |
| `npm test` | **176 passing, 0 failing** (85 unit + 91 integration incl. 1 e2e) |
| `npm run seed:dev` | creates demo user "demo"/"demo123", hero "Aldric" (warrior), starter gear |
| `npm start` + `curl localhost:3000/api/health` | `{"ok":true}` |
## 3. What exists now (files that matter)
- `public/game.html` — Dashboard with 3-col grid (stats | action | combat), mobile bottom nav (⚔️ Hunt / 🏕️ Trip / 🎒 Items), tabbed action area.
@@ -35,6 +36,7 @@
- `src/game/*` — Pure game logic.
- `tests/integration/*.test.js` — 91 integration tests (incl. e2e-playable.test.js).
- `tests/unit/*.test.js` — 85 unit tests.
- `README.md` — Updated with real run instructions, play-through steps, project structure, known issues.
## 4. Half-finished / fragile things
- No leaderboard UI yet (Phase 8 API done but no UI).
@@ -85,6 +87,8 @@
- Inventory sell endpoint (`POST /api/shop/sell`) only accepts `material`-type items.
- `handleListInventory` in `src/routes/inventory.js` — parameter name must be `res`, not `_res`.
## 7. Next-step briefing (9.6)
- **Goal:** Update README with real run instructions.
- Include: how to install, configure (.env), run migrations, seed dev data, start server, run tests, and basic play-through steps.
## 7. Next-step briefing
- **Phase 9 is complete.** All hardening and polish done.
- **Stretch Goals available:** S1 (PvP duels), S2 (Skills/talents), S3 (Guilds), S4 (Player market), S5 (Daily rewards/quests), S6 (In-game chat), S7 (Achievements).
- **Or address Known Issues:** Issue #2 (`GET /api/zones` missing — major), Issue #5 (equipment not in combat — minor), Issue #3 (`npm run seed` dead script — cosmetic).
- **Recommended next step:** Fix Known Issue #2 (`GET /api/zones`) since it's a documented API gap and would improve the hunt UI. Then consider S7 (Achievements) as it's a self-contained, low-risk stretch goal that adds meaningful gameplay.