feat: persist workflow studio block selection in URL by AronPerez · Pull Request #6969 · Skyvern-AI/skyvern · GitHub
Skip to content

feat: persist workflow studio block selection in URL - #6969

Merged
AronPerez merged 1 commit into
mainfrom
repo-sync/ao/skyvern-cloud-115/feat/SKY-11625/persist-selected-block-url
Jul 1, 2026
Merged

AronPerez merged 1 commit into
mainfrom
repo-sync/ao/skyvern-cloud-115/feat/SKY-11625/persist-selected-block-url

Conversation

@AronPerez

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 1, 2026 19:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds URL-based persistence for the selected workflow block in the embedded Workflow Studio editor, enabling deep links and selection restoration across reloads/navigation while keeping legacy (non-embedded) editor behavior unchanged.

Changes:

  • Initialize Studio selection from a selected-block URL search param (falling back to the start node).
  • Add useSelectedBlockUrlSync hook to keep selected block state and URL search params in sync (without clobbering unrelated params).
  • Add Vitest coverage for initial selection parsing and bidirectional URL/store synchronization behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
skyvern-frontend/src/routes/workflows/editor/Workspace.tsx Uses URL-aware initial selection logic and enables selected-block URL syncing only in embedded Studio.
skyvern-frontend/src/routes/workflows/editor/hooks/useSelectedBlockUrlSync.ts Implements selected block ↔ URL synchronization and initial selected block resolution helper.
skyvern-frontend/src/routes/workflows/editor/hooks/useSelectedBlockUrlSync.test.tsx Adds tests covering selection restoration, mirroring to URL, stale param clearing, and embedded-only behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AronPerez
AronPerez merged commit ebb6f8f into main Jul 1, 2026
15 checks passed
@AronPerez
AronPerez deleted the repo-sync/ao/skyvern-cloud-115/feat/SKY-11625/persist-selected-block-url branch July 1, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants