diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2026-11-19 08:53:51 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2026-11-19 08:53:51 +0100 |
| commit | b884441ba0d10bdd3559748507a0991888f66194 (patch) | |
| tree | 074321d353c1153e8d95191eecf5a61b2eec1096 /PLAN.md | |
| parent | d64cf3514e5ff1ddb1c7f3ddac9a769db3e7dde0 (diff) | |
Phase 6: settings, saves, localization parity (M6)
Diffstat (limited to 'PLAN.md')
| -rw-r--r-- | PLAN.md | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -284,15 +284,15 @@ changes, room sections, spectator view. *First end-to-end moment.* ### Phase 6 — Settings, saves, localization parity -- [ ] Settings split: **server-side, game-relevant** (noInit, noStandees, randomStandees, +- [x] Settings split: **server-side, game-relevant** (noInit, noStandees, randomStandees, expireConditions, autoAddStandees/autoAddSpawns, hideLootDeck, style) vs **client-side** (UI scaling, full-screen, wake/Power-mode equivalents → browser `localStorage`) -- [ ] Multi-save save/load + character saves (load character save command) -- [ ] Undo/redo UI (player sessions) -- [ ] All 10 locales: port the gen-l10n `.arb` files to client i18n; server-localized +- [x] Multi-save save/load + character saves (load character save command) +- [x] Undo/redo UI (player sessions) +- [x] All 10 locales: port the gen-l10n `.arb` files to client i18n; server-localized command descriptions (ported `command_l10n`); locale selector in settings -- [ ] Settings menu (faithful) +- [x] Settings menu (faithful) **Milestone M6** — feature parity with the reference app. @@ -332,6 +332,7 @@ changes, room sections, spectator view. *First end-to-end moment.* | 2026-11-15 | **Phase 3 complete / M3 reached** — the web UI core loop: theme tokens + the three style themes, TopBar/MainList/BottomBar layout, character/monster/note rows, the secret-initiative widget (server-masked `null` → `??`), all figure menus (scenario, characters, level, stats, conditions, elements, turn done), room sections, player/spectator input gating, connection banner, English i18n, client tests (connection, protocol, state, level values). | | 2026-11-16 | **Phase 4 complete / M4 reached** — full card play in the browser. Client: the line renderer + in-game translations (`$lib/game/line/`, `gameI18n.ts`), card components (stat / monster-ability / modifier / loot, `ModifierCard` gfx resolver incl. `P<n>` perk graphics), monster ability decks (row card slot, deck menu — reveal top cards, draw extra, extra shuffle, activate/inactivate, drag-reorder, remove — and card zoom), the full AMD suite (`ModifierDeckWidget` + `ModifierDeckHeader` + `ModifierDeckMenu` with the six submenus — send-to-bottom, remove AMD, removed pile, faction cards, perks, plus zoom; imbue 1/2, ±1/−2/+0, reveal with the Cassandra 8-button cap, bad omen, corrosive spew, Hail/Cassandra specials, faction unlock, CS sanctuary/party cards), the loot deck (widget, cards menu — set owner, per-character loot totals, add card, enhance with the reference material/herb/coin splits, special cards 1418/1419, return top/bottom), and the bottom `DeckArea` (loot deck left; character-deck toggle with the reference open-state cycling; ally deck behind `shouldShowAlliesDeck`; global deck). Pure helper modules (`rules.ts`, `modifierDeck.ts`, `perks.ts`, `cards/lootCard.ts`) ported from the reference with unit tests. Server: all deck/loot/modifier/ability commands were already registered and tested in Phases 1–2 (592 tests green). `svelte-check` 0 errors; web build OK; 177 client tests green. | | 2026-11-17 | **Phase 5 complete / M5 reached** — full game feature set. Web: note rows end-to-end (create/edit menu — text, 12-swatch colour palette, link to player/monster with per-standee selection, delete — with the reference's create-vs-edit commit semantics; row rendering with the target's class colour / red-blue monster bases, lighten-toward-white gradient, link indent + connector, standee "N:"/"All:" prefixes, luminance-based text colour, tap-to-edit; whole-list drag-to-reorder → `reorderList`; quick per-figure note via `setFigureNote` from the status menu), special monster handling (Ice Wraith "Switch Form" behind the `deck == "Ice Wraith"` gate; summon mark toggle with the round-green / summon-gfx standee artwork + standee-nr badges and per-owner grayscale; character summon boxes above the row + AddSummonMenu — class summons gated by level and standee cap, item summons from `summons.json`, colour swatches + standee numbers → `addStandee … addAsSummon`), ally deck show/hide in the main menu (gated by `shouldShowAlliesDeck`), settings "clear unlocked" + Special Unlocks menu (4 unlockables, "???" while locked), and AddSectionMenu parity (case-insensitive search, the `findNrFromScenarioName` numeric ordering with string-compare fallback, added sections greyed + no-op, "Add Random Dungeon Card" label). Data layer: `SummonModel` + `ClassData.summons` + `summons()` fetch in `gameData.ts`. Server: added `unlock_special_command_test` (the only command missing a test — ally-deck-hide and remove-sanctuary were already covered in their consolidated files). Cross-check against the reference confirmed scenario rules are complete server-side (Timer round-1 spawns merged into the start room via `_applyRound1Spawns`, Timer notes, battle-goal reminder, `initialMessage` → `toastMessage` → web toast, Objective/Escort/AllyDeck/ResetRound/Unlock/RandomSections all handled). Verification: web 177/177 tests, `svelte-check` 0 errors; server suite green; full CI (dart analyze + test, web check + test + build) passing. | +| 2026-11-19 | **Phase 6 complete / M6 reached** — settings, saves, localization parity. Server: `Settings.forClient()` payload (11 game fields + `style` enum index + `locale` + `saves`/`characterSaves` name lists — save content never crosses the wire), player-gated settings/save commands behind new wire messages (`setSetting` / `save` / `loadSave` / `deleteSave` / `saveCharacter` / `loadCharacterSave` / `deleteCharacterSave` + a `settings` broadcast), `historyLength` + `undoDescription`/`redoDescription` on `welcome`/`update`, and the ported 10-locale command descriptions. Web: `settings.ts` split (`serverSettings` from the wire vs `clientSettings` → `localStorage` with a corrupt/partial-tolerant, field-by-field typed merge), the settings menu rebuilt faithfully (locale selector with native names — locale change also syncs the server; style radios; scaling sliders; power-mode radios + ⓘ info; ally-deck toggle via `setAllyDeckInOgGloom`; clear-unlocked + special unlocks; the Load/Save State entry), multi-save menus (`SaveMenu` + `SaveModalMenu` — suggested name `campaign+nr`, rename = delete-then-save, load is the undoable `LoadSaveCommand`) and character saves (`SaveCharacterMenu` + `SaveCharacterModalMenu`, entered from the add/remove-character menus via class icons, restore = identity only with fresh battle state), undo/redo buttons labeled from the server history metadata (`undoWithDescription`), all 10 locale tables ported (new `i18n.test.ts` parity suite), the idle dimmer (15 s → 0.65 scrim, 1.2 s fade, any input/tap/visibility wakes it), scaling via CSS variables (`--list-scale`/`--bar-scale`), reduce-power mode (`[data-power='reduce']` kills box-shadows), and the visibility gates (`hideLootDeck`, `showAmdDeck` ↔ client `showCharacterAMD`, `showScenarioNames`, `showCustomContent` in the campaign picker and the custom conditions). Documented web adaptations: bar scaling via CSS `zoom` instead of a constrained content width, a 400px list baseline (reference: 740px on full-screen mobile), bar-scaling default 1.0, three style radios (reference offers two, the shared `Style` enum has three), locale synced through the settings dropdown. Omitted reference entries (no web analogue): dark-mode toggle, soft numpad, health wheel, network section. Verification: **web 195/195 tests** (14 files, incl. new `settings.test.ts` and `i18n.test.ts`), `svelte-check` 0 errors (94 pre-existing idiomatic warnings), `vite build` OK; server **604 tests green** (13 new in `test/net/settings_test.dart`). | ## 7. Risks and open items |
