Skip to content

Add URL-driven modal stack - #9

Merged
TuvalZit18 merged 1 commit into
mainfrom
feat/modals
Oct 17, 2026
Merged

TuvalZit18 merged 1 commit into
mainfrom
feat/modals

Conversation

@TuvalZit18

Copy link
Copy Markdown
Owner
  • Modal registry: welcome, promo, invite and signup params with value validation; typed openModal arguments
  • parseModals derives open modals from the URL in param order, ignoring invalid values and repeats
  • useModalStack: openModal / closeModal only change the URL (push a history entry, keep path and other params)
  • Four modals on the shared ModalFrame; single ModalRenderer in AppLayout; stacked modals with one backdrop
  • Tests for parsing, the hook, cold load, stacking, closing one of several, back/forward and in-app navigation

Signed-out gating follows in Stage 7. Document modal content and stacking in routing-and-modals.md.

- Modal registry: welcome, promo, invite and signup params with
  value validation; typed openModal arguments
- parseModals derives open modals from the URL in param order,
  ignoring invalid values and repeats
- useModalStack: openModal / closeModal only change the URL (push a
  history entry, keep path and other params)
- Four modals on the shared ModalFrame; single ModalRenderer in
  AppLayout; stacked modals with one backdrop
- Tests for parsing, the hook, cold load, stacking, closing one of
  several, back/forward and in-app navigation

Signed-out gating follows in Stage 7. Document modal content and
stacking in routing-and-modals.md.
@TuvalZit18
TuvalZit18 merged commit 6e65599 into main Oct 17, 2026
1 check passed
@TuvalZit18
TuvalZit18 deleted the feat/modals branch October 17, 2026 18:37
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