Commit Graph

7 Commits

Author SHA1 Message Date
yaroslav k
1f3184baf6 undo: header buttons, shortcuts, wiring
- App provides HistoryHandle as context (both build modes; stacks stay
  empty on the server) and passes it to persist::init_hydrated
- persist: init_hydrated starts undo tracking after the localStorage
  load (first captured state = saved state, not mock); clear_all and
  apply_import call undo::before_replace so they are undoable
- header: Отменить/Вернуть buttons with disabled states driven by the
  reactive stack depths; Ctrl+Z / Ctrl+Shift+Z / Ctrl+Y via a window
  keydown listener that skips editable targets (browser owns those)
- SCSS: disabled control buttons dim out
2026-08-16 12:31:22 +03:00
yaroslav k
b9a399be64 header: Save/Load/Clear buttons wired to persistence
Save downloads dashboard.json, Load opens a file picker and imports
through apply_import with errors reported in the modal, Clear asks for
confirmation then wipes to Dashboard::blank(). App provides the store
and ModalState and mounts the modal; init_hydrated starts autosave.
2026-08-16 11:28:19 +03:00
yaroslav k
257f254b13 document every function, trait and struct in src/
Doc comments on all modules, components, entities, helpers and type
aliases; larger comments on the important entities (Dashboard, PlayerData,
Context, App, Numput, item data). No behavior changes.
2026-08-04 09:21:25 +03:00
YK
17fba36476 chore: add entities generated fields to prelude, fix imports / # 2025-09-13 16:53:48 +03:00
YK
9c211d46de remove debug code, fix <input> tag 2025-09-12 10:21:25 +03:00
YK
b8e9ddcdaf feat: header with campaign image, name, session #, current date and (not yet functional nor properly styled) buttons 2025-09-12 07:23:09 +03:00
YK
b09dcb5fc1 csr version imported 2025-09-11 10:27:57 +03:00