docs: second-pass character page notes

- ROADMAP: Phase 2 done-note — player card removed, plain RU headings,
  growable attunements, manual AC
- ARCHITECTURE: character tree line and route contents updated
- README: character page and sidebar lines updated (no player card, AC)
This commit is contained in:
yaroslav k 2026-08-16 13:08:03 +03:00
parent f26f3bdf50
commit 5e7cd0e709
3 changed files with 12 additions and 7 deletions

View File

@ -48,8 +48,7 @@ src/
inventory.rs One inventory section (rows + money)
item.rs One inventory row
numput.rs Numeric input components (Numput, NumputChange)
character/*.rs Character page: player_card, prepared_spells,
attunements
character/*.rs Character page: prepared_spells, attunements
mod.rs Pages (Character, Inventories, Wiki) + item search
```
@ -115,8 +114,8 @@ App
│ └─ SpellSlots 9 levels of clickable pips
├─ Nav links to the three routes
└─ Routes
├─ Character player card; prepared spells (vacant/occupied
slots with free-text entry); attunements (3 slots)
├─ Character prepared spells (vacant/occupied slots with
free-text entry); attunements (growable slots)
├─ Inventories two Inventory sections (Personal/Common)
│ └─ Inventory balance (5 × Numput), rows (ForEnumerate)
│ └─ Item name, quantity ±, weight ±, more/swap/remove

View File

@ -10,10 +10,10 @@ game. The UI is in Russian.
wipe to a blank campaign
- Undo/redo: header buttons and Ctrl+Z / Ctrl+Shift+Z / Ctrl+Y over
edit bursts; Clear and import are undoable too
- Character page: player card, prepared spells (free-text slots with
level/description) and attunements (3 slots, clearable)
- Character page: prepared spells (free-text slots with
level/description) and attunements (growable slots, clearable)
- Character sidebar: portrait, names, class, level, XP, hit points with
temp HP bar, hit dice, death saves, spell slots
temp HP bar, manual AC, hit dice, death saves, spell slots
- Inventories page (`/inv`): personal and party-common inventories,
currency per denomination, item rows with quantity and weight steppers,
move between inventories, remove

View File

@ -150,6 +150,12 @@ with clear). Notes:
- Rows are plain functions called from `For`'s `let(...)` children:
component tags are not allowed directly inside them (view macro).
**Second pass (2026-08-16):** the player card is gone (it duplicated the
sidebar); headings are plain RU (`Заготовленные заклинания`, `Атюнменты`);
attunements grew from a fixed 3-slot array to a `Vec` with a "+ слот"
button (custom campaigns); `PlayerData.ac` (manual armor class) lives in
the sidebar HP block, `#[serde(default)]` so old saves still load.
## Phase 3 — Inventory & item search end-to-end (L, ~3-5 days)
Rows are editable and move/remove works. Search exists but is orphaned; "+" and