Commit Graph
11 Commits
Author SHA1 Message Date
ginnoir 880abe5888 fix(ui): restore boot-intro continue and fix story tree a11y
Finding 1 (critical): atBootIntro was derived from tree.length === 0 in
StoryView.tsx, but buildStoryTree always returns all topology-root nodes,
so tree.length is always > 0 and the Continue button never rendered.
Fix: add atBootIntro: boolean to StoryView (viewModel), computed by
finding the boot-trigger node id without hardcoding the literal string,
then comparing to the current node. StoryView.tsx reads it from the store.
Also add a viewModel test covering both true and false cases.

Finding 2: onSelect in StoryView.tsx called useGameStore.getState()
directly, bypassing the runtime command layer. Fix: add
GameRuntime.selectStoryNode(id) and wire onSelect through gameRuntime.

Finding 3: aria-pressed on story tree nodes wrongly signals toggle-button
semantics. Fix: replace with aria-current={isSelected ? 'true' : undefined}.

Optional: hoist h-[calc(100dvh-6rem)] to SHELL_HEIGHT const in StoryView.tsx.
2026-06-11 22:25:51 -05:00
ginnoir 08d186f42e refactor: clean up unused panel overlay state and methods 2026-06-11 21:29:44 -05:00
ginnoir adf730702d refactor(state): address review recommendations for store and prefs 2026-06-11 21:14:04 -05:00
ginnoir 09e2d06b87 refactor(state): fix code quality findings for nav panel store and prefs 2026-06-11 21:12:20 -05:00
ginnoir 9b2793b264 feat(state): nav panel store and expanded prefs 2026-06-11 21:10:07 -05:00
ginnoir 73d836fe96 feat(state): project actions into columns and story tree 2026-06-11 21:01:42 -05:00
ginnoir c76265d648 docs: document story engine and PR2 playable loop
CI / verify (push) Failing after 58s
CI / verify (pull_request) Failing after 41s
2026-06-11 19:00:49 -05:00
ginnoir a69585e89c feat(state): store story panel and prefs UI state 2026-06-11 18:54:34 -05:00
ginnoir f29b05bd70 feat(state): view model action availability and story passage 2026-06-11 18:53:50 -05:00
ginnoir fce561b8e5 feat(state): wire enqueueAction through runtime and view model 2026-06-11 18:21:12 -05:00
ginnoir ec8f857845 feat: bootstrap walking skeleton 2026-06-11 17:06:52 -05:00