Commit Graph
65 Commits
Author SHA1 Message Date
ginnoir 10a43729c5 feat(ui): right rail inventory placeholder and optional event log
- RightRail: add Inventory section (placeholder "Items coming soon") between
  Resources and Event Log, matching the existing heading style
- RightRail: gate Event Log section on prefs.showEventLog; add local-state
  collapse toggle with aria-expanded and chevron indicator
- SettingsPanel: add "Show event log" checkbox row bound to prefs.showEventLog
  via setPrefs, matching existing card styling
- PlayPanel: gate mobile EventLog behind prefs.showEventLog for consistency
  with desktop; mobile ResourceBar unchanged
2026-06-11 22:28:42 -05:00
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 91348ed42f refactor(ui): finalize review fixes for action cards and view model
- Guard ActionCard click-outside listener behind open state
- Add aria-expanded to ActionGroup collapse toggle
- Use optional chaining and drop non-null assertions in column projection
2026-06-11 22:16:40 -05:00
ginnoir e9f2514308 feat(ui): story tab with tree and prose log 2026-06-11 22:11:01 -05:00
ginnoir 75273a76de refactor(ui): improve action card accessibility, flex layout and scroll styling 2026-06-11 21:34:46 -05:00
ginnoir bbded8a266 feat(ui): action columns with collapsible groups 2026-06-11 21:32:13 -05:00
ginnoir 08d186f42e refactor: clean up unused panel overlay state and methods 2026-06-11 21:29:44 -05:00
ginnoir 232b84299c refactor(ui): resolve mobile layout and HMR findings for app shell and nav rail 2026-06-11 21:27:41 -05:00
ginnoir ee79872d4d feat(ui): app shell with nav rail 2026-06-11 21:24:42 -05:00
ginnoir ed9607e9e8 refactor(state): address HMR and defensive slicing recommendations for runtime 2026-06-11 21:23:18 -05:00
ginnoir b29b17c6cb refactor(state): fix code quality findings for runtime and story log 2026-06-11 21:20:52 -05:00
ginnoir 239b2506ec feat(state): runtime performAction and nav story signals 2026-06-11 21:16:27 -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 163f710f4c feat(engine): add performAction dispatcher by kind 2026-06-11 20:53:55 -05:00
ginnoir 0de61d3e41 feat(engine): loop idle runner with enabledLoopActionIds 2026-06-11 20:44:20 -05:00
ginnoir 8d9484171f feat(engine): execute story actions via storyChoiceId 2026-06-11 20:36:07 -05:00
ginnoir b3940774c4 feat(engine): add instant action execution
Implements executeInstant, which applies an instant action's costs and
yields immediately with no queue slot and no duration requirement.
2026-06-11 20:29:28 -05:00
ginnoir b54805637c feat(content): migrate stub actions to kind/group model 2026-06-11 20:23:49 -05:00
ginnoir c1b38e36aa fix(content): guard optional durationMs and cover loop validation 2026-06-11 20:17:50 -05:00
ginnoir c48e53cc7b feat(content): add action kind and group schema 2026-06-11 20:12:21 -05:00
ginnoir c76b2d1231 Merge pull request 'docs(m1): PR3 shell UI spec and implementation plans' (#15) from feat/docs-pr3-shell-spec into main
CI / verify (push) Successful in 1m0s
2026-06-11 20:05:13 -05:00
ginnoir 203478268c docs(m1): add PR3 shell UI spec and implementation plans
CI / verify (push) Successful in 1m31s
CI / verify (pull_request) Successful in 1m2s
Capture the PR3 UX brainstorm: three-region shell, action columns by kind, story-via-actions, Story tab tree+log, and universal automation with shareable recipes. Includes T3.0/T3.1 implementation plans and M1 vertical slice plan. Also ignore local .worktrees/.
2026-06-11 20:01:30 -05:00
ginnoir 57f037b62b Merge pull request 'feat(m1): playable loop — story graph, story panel, queue UI' (#14) from feat/m1-playable-loop into main
CI / verify (push) Successful in 1m33s
Deploy Internal Playtest / deploy (push) Successful in 1m13s
2026-06-11 19:26:53 -05:00
ginnoir 96ac4011eb chore: format story.test.ts for CI
CI / verify (push) Successful in 1m4s
CI / verify (pull_request) Successful in 48s
2026-06-11 19:23:58 -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 1461510a4b feat(content): stub story graph with A/B branch and route-gated actions 2026-06-11 18:59:17 -05:00
ginnoir fdefe83b89 feat(ui): settings drawer and story button in app shell 2026-06-11 18:58:10 -05:00
ginnoir 9d58d97373 feat(ui): full-screen story panel with VN layout and story log 2026-06-11 18:57:30 -05:00
ginnoir 4be5223ca8 feat(ui): action queue list, cancel, disabled states, and hints 2026-06-11 18:56:54 -05:00
ginnoir 9a7eb3065a feat(state): wire story triggers and choices through runtime 2026-06-11 18:55:42 -05:00
ginnoir a230a46850 feat(state): story trigger orchestration and auto-open rules 2026-06-11 18:55:08 -05:00
ginnoir a69585e89c feat(state): store story panel and prefs UI state 2026-06-11 18:54:34 -05:00
ginnoir 8d83f9899b fix(state): prefs test localStorage mock typing 2026-06-11 18:54:07 -05:00
ginnoir f29b05bd70 feat(state): view model action availability and story passage 2026-06-11 18:53:50 -05:00
ginnoir b88399ac14 feat(state): localStorage player prefs for story and action display 2026-06-11 18:52:39 -05:00
ginnoir 9196c77e25 feat(save): persist story flags and node progress in v1 2026-06-11 18:52:16 -05:00
ginnoir 51d3ec1a4b feat(engine): applyChoice and gated choice filtering 2026-06-11 18:51:49 -05:00
ginnoir 720f6166cf feat(engine): evaluateTriggers for boot, actionComplete, minResources 2026-06-11 18:51:07 -05:00
ginnoir 717af1ef51 feat(engine): story outcomes and enterStoryNode 2026-06-11 18:50:34 -05:00
ginnoir c7d1f3f51b feat(content): add action story hints and merge GameContent 2026-06-11 18:50:01 -05:00
ginnoir a66a7db066 feat(content): add Zod story graph schema and validation 2026-06-11 18:49:28 -05:00
ginnoir dc7b87eab2 feat(engine): tickGame returns completed action ids for story triggers 2026-06-11 18:48:41 -05:00
ginnoir d2692bcc3c feat(engine): add story fields to GameState 2026-06-11 18:47:18 -05:00
ginnoir 56af082590 Merge pull request 'feat(m1): foundations — queue engine, costs, stub content' (#13) from feat/m1-foundations into main
Deploy Internal Playtest / deploy (push) Successful in 47s
CI / verify (push) Successful in 52s
2026-06-11 18:28:15 -05:00
ginnoir 1c5fcc80ad chore: pass PR1 verification gate (format, lint, coverage)
CI / verify (pull_request) Successful in 50s
CI / verify (push) Successful in 48s
2026-06-11 18:23:43 -05:00
ginnoir cc4955abab docs: document action queue completion semantics 2026-06-11 18:22:08 -05:00
ginnoir fce561b8e5 feat(state): wire enqueueAction through runtime and view model 2026-06-11 18:21:12 -05:00