Skip to content

feat: Extend version toggle to support runs routes#2478

Open
morgan-wowk wants to merge 1 commit into
masterfrom
add-editor-toggle-to-runs-view
Open

feat: Extend version toggle to support runs routes#2478
morgan-wowk wants to merge 1 commit into
masterfrom
add-editor-toggle-to-runs-view

Conversation

@morgan-wowk

@morgan-wowk morgan-wowk commented Jun 29, 2026

Copy link
Copy Markdown

Description

Show the editor/legacy switcher on the run view pages of both versions. Previously the switcher only appeared on the editor routes (/editor and /editor-v2).

image.png

The EditorVersionToggle is already mounted in both run views' headers — legacy via DefaultAppMenu, and V2 via AppMenuActions inside RunViewMenuBar — but it only recognized /editor and /editor-v2 paths, so it rendered nothing on /runs and /runs-v2, leaving no way to move between the new and legacy run views.

This generalizes the toggle to swap between any v1/v2 route-base pair (/editor/editor-v2, /runs/runs-v2), preserving the rest of the path — the run id and optional subgraph execution id. No new UI and no changes to the run-view pages were needed; the existing shared component now lights up on run routes too.

Related Issue and Pull requests

Type of Change

  • Improvement

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

  1. With the v2_editor flag enabled, open a run in the legacy run view (/runs/:id) — the switcher (sparkles icon, "Switch to new editor") now appears in the top bar and navigates to /runs-v2/:id.
  2. From the V2 run view (/runs-v2/:id), the switcher ("Switch to legacy editor") navigates back to /runs/:id.
  3. Confirm the run id (and subgraph execution id, if present) is preserved across the switch.
  4. Editor routes (/editor, /editor-v2) behave exactly as before.

Additional Comments

Added EditorVersionToggle.test.tsx (8 cases: flag-disabled, route with no counterpart, and both switch directions for editor / run / run-with-subgraph). tsc --noEmit and eslint are clean.

@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: add-editor-toggle-to-runs-view/7de5507

Copy link
Copy Markdown
Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@morgan-wowk morgan-wowk force-pushed the add-editor-toggle-to-runs-view branch 2 times, most recently from 2259173 to a84efb5 Compare June 29, 2026 23:02
@morgan-wowk morgan-wowk marked this pull request as ready for review June 29, 2026 23:04
@morgan-wowk morgan-wowk requested a review from a team as a code owner June 29, 2026 23:04
The EditorVersionToggle is already mounted in both run views' headers
(legacy via DefaultAppMenu, v2 via AppMenuActions in RunViewMenuBar), but
it only recognized /editor and /editor-v2 paths, so it never rendered on
/runs and /runs-v2.

Generalize the toggle to swap between any v1/v2 route-base pair, preserving
the rest of the path (run id and subgraph execution id), so users can move
between the new and legacy run views the same way they do for the editor.
@morgan-wowk morgan-wowk force-pushed the add-editor-toggle-to-runs-view branch from a84efb5 to 7de5507 Compare June 29, 2026 23:16
@morgan-wowk morgan-wowk changed the title Show editor/legacy switcher on run view pages feat: Extend EditorVersionToggle to support runs routes and add tests Jun 29, 2026
@morgan-wowk morgan-wowk changed the title feat: Extend EditorVersionToggle to support runs routes and add tests feat: Extend version toggle to support runs routes Jun 29, 2026
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