Skip to content

feat: gated dialog no longer depends on sanity/router — navigation is now delegated#1

Merged
SamHemingway merged 2 commits into
mainfrom
fix/decouple-gated-dialog-from-sanity-router
Apr 17, 2026
Merged

feat: gated dialog no longer depends on sanity/router — navigation is now delegated#1
SamHemingway merged 2 commits into
mainfrom
fix/decouple-gated-dialog-from-sanity-router

Conversation

@SamHemingway
Copy link
Copy Markdown
Contributor

Issue: was causing a throw when using the gated dialog outside of a sanity studio (e.g. inside of an SDK app).

Root cause: we were including Sanity Router in this package directly; but that should live in @sanity-labs/sanity-plugin-workflows.

Fix: new prop for <WorkflowTransitionGatedDialog /> called onViewTask that allows the user to specify what should happen when a task opens in terms of routing to a task elsewhere.

@SamHemingway SamHemingway merged commit a2d3649 into main Apr 17, 2026
1 check passed
@SamHemingway SamHemingway deleted the fix/decouple-gated-dialog-from-sanity-router branch April 17, 2026 12:49
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