Skip to content

feat(narrative): session store single source of truth and bidirectional route sync - #103

Merged
lark-x merged 2 commits into
mainfrom
feat/narrative-session-store-route-sync
Aug 23, 2026
Merged

feat(narrative): session store single source of truth and bidirectional route sync#103
lark-x merged 2 commits into
mainfrom
feat/narrative-session-store-route-sync

Conversation

@lark-x

@lark-x lark-x commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Consolidated all Narrative Workbench UI state (\mode, \�ctiveSceneId, \�ctiveQuestId, \�ctiveBlockId, panel visibility) into \useNarrativeSessionStore.
  • Created \useNarrativeRouteSync\ for bidirectional, non-cyclic synchronization between URL Query params (?mode=..., ?scene=..., ?quest=..., ?panel=...) and Session Store.
  • Supports browser Back/Forward navigation, page refresh preservation, and deep linking directly into specific scenes/modes.
  • Added comprehensive unit tests in \useNarrativeSessionStore.test.ts.

@lark-x
lark-x merged commit 6eb10d4 into main Aug 23, 2026
7 checks passed
@lark-x
lark-x deleted the feat/narrative-session-store-route-sync branch August 23, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant