Skip to content

[web] Link the run's Usage page from the header instead of a tab - #5714

Draft
mitul-s wants to merge 1 commit into
web/remove-run-tab-iconsfrom
web/run-usage-header-link
Draft

mitul-s wants to merge 1 commit into
web/remove-run-tab-iconsfrom
web/run-usage-header-link

Conversation

@mitul-s

@mitul-s mitul-s commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

What

The run's Usage page now opens from a View Usage link in the run header, next to Replay and Cancel, instead of from a fourth item in the tab row. The Trace / Events / Streams row is now only tabs, and the Usage page no longer shows a tab row; its breadcrumb (Runs › <runId> › Usage) leads back to the run.

Stacked on #5711 (removes the tab icons). Review that one first.

Why

Usage is its own route (/run/:runId/usage), not a view of the same page. Putting it in the tab row, styled like a tab, made a navigation look like a tab switch, and needed extra code to keep a mixed tabs-and-links row consistent across two pages.

The new placement follows the dashboard patterns in vercel/front's vercel-site:

  • Tabs switch between sibling views on one page. A link to another page doesn't belong in them (product-design surfaces-navigation.md).
  • Detail surfaces put their link to usage as a small secondary ButtonLink labeled View Usage, next to the other actions (for example the spend-management budget details sheet).
  • Sub-pages go back through breadcrumbs (dashboard-guidelines navigation/GUIDE.md).

The header's Events and Storage figures still link to the page as before.

How did you test your changes?

  • pnpm vitest run in packages/web: 32 files, 281 tests passed. I updated routes/run-usage.test.tsx for the new entry point:
    • View Usage is in the header, not in the tablist, and is hidden on its own page and on Worlds that don't count usage.
    • The Usage page has no tab row.
    • Back/forward still works.
  • Focus: the followed link disappears after navigation, so focus would otherwise drop to the document.
    • After View Usage, focus moves to the Usage content (a tabIndex={-1} region).
    • After the breadcrumb back to the run, focus moves to the selected tab.
    • run-view-nav.test.tsx covers the helper, and the route tests cover both paths.
  • biome check app: no errors. tsc --noEmit: no new errors (the same 26 errors in server/ and routes exist on main).
  • Manual check against a seeded Local World run with react-router dev, at desktop width and at 390px. On narrow screens the header actions now wrap instead of overflowing.

Not covered: nothing on the Usage page links straight to the Events or Streams tab anymore. Back, or the breadcrumb and then the tab, gets you there.

PR Checklist - Required to merge

  • 📦 pnpm changeset was run to create a changelog for this PR (@workflow/web patch)
  • 🔒 DCO sign-off passes (run git commit --signoff on your commits)
  • 📝 Ping @vercel/workflow in a comment once the PR is ready, and the above checklist is complete

Co-authored-by: vercel-v[bot] <353008837+vercel-v[bot]@users.noreply.github.com>

Co-authored-by: vercel-v[bot] <353008837+vercel-v[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
example-nextjs-workflow-turbopack Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
example-nextjs-workflow-webpack Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
example-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-astro-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-express-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-fastify-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-hono-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-nestjs-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-nitro-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-nuxt-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-python-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-sveltekit-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-tanstack-start-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workbench-vite-workflow Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workflow-docs Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workflow-swc-playground Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workflow-tarballs Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC
workflow-web Ready Ready Preview, v0 Nov 25, 2026 5:40am UTC

@changeset-bot

changeset-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 60a5233

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
@workflow/web Patch
@workflow/cli Patch
@workflow/nitro Patch
workflow Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/world-cloudflare Patch
@workflow/core Patch
@workflow/world-vercel Patch
@workflow/web-shared Patch
@workflow/builders Patch
@workflow/next Patch
@workflow/vitest Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

Sim World

Simulated world deterministic testing for races. Traces

🟢 world-sim scenario book — 0 fail of 45 total
scenario outcome events virt replay violations
✅ smoke-no-steps completed 3 0ms ok 0
✅ smoke-one-step completed 5 0ms ok 0
✅ hook-at-step-started completed 9 0ms ok 0
✅ hook-at-step-completed completed 9 0ms ok 0
✅ hook-at-hook-created completed 9 0ms ok 0
✅ claim-hook-at-registration completed 9 0ms ok 0
✅ claim-hook-at-step-started completed 9 0ms ok 0
✅ deadline-hook-wins completed 6 1.0h ok 0
✅ deadline-expires completed 6 1.0h ok 0
✅ step-vs-timer-early-settlement completed 6 1.0h ok 0
✅ long-sleep completed 9 30.0d ok 0
✅ hook-never-arrives stalled 3 0ms skipped 0
✅ step-retries-twice completed 9 2.0s ok 0
✅ parallel-steps completed 7 0ms ok 0
✅ hook-on-execution-state completed 9 0ms ok 0
✅ peek-hook-before-branch completed 9 0ms ok 0
✅ peek-hook-after-branch completed 9 0ms ok 0
✅ peek-hook-at-registration completed 9 0ms ok 0
✅ race-hook-before-probe completed 9 0ms ok 0
✅ race-hook-after-probe completed 9 0ms ok 0
✅ race-duplicate-delivery completed 10 0ms ok 0
✅ attr-hook-before-step completed 9 0ms ok 0
✅ attr-hook-after-step completed 9 0ms ok 0
✅ attr-from-step-body completed 10 0ms ok 0
✅ fork-hook-after-timeout completed 11 1.0m ok 0
✅ fork-hook-before-timeout completed 11 1.0m ok 0
✅ count-hook-after-timeout completed 13 1.0m ok 0
✅ count-hook-before-timeout completed 15 1.0m ok 0
✅ stale-read-step-count-fork completed 15 1.0m ok 0
✅ stale-read-equal-step-counts completed 11 1.0m ok 0
✅ step-vs-step-fork completed 9 0ms ok 0
✅ step-vs-step-fork-fenced completed 9 1.0s ok 0
✅ fence-catches-benign-direction completed 9 1.0s ok 0
✅ run-ahead-fenced-overlap completed 10 1.0s ok 0
✅ in-flight-before-decision completed 15 1.0m ok 0
✅ in-flight-before-decision-counted completed 13 1.0m ok 0
✅ in-flight-after-decision completed 15 2.0m ok 0
✅ stale-read-step-count-fork-fenced completed 15 1.0m ok 0
✅ fork-hook-wins completed 10 1.0m ok 0
✅ fork-timeout-wins completed 10 1.0m ok 0
✅ unclaimed-payload-under-fork completed 14 1.0m ok 0
✅ claimed-payload-under-fork completed 14 1.0m ok 0
✅ writers-independent-step-bodies completed 9 0ms ok 0
✅ writers-scripted-tempo completed 9 0ms ok 0
✅ cancel-mid-step cancelled 6 0ms skipped 0

Full trace: world-sim.txt

This branch was successfully deployed

1 active deployment
Preview – workflow-docs — 60a52335 Deployed Nov 25, 2026 by vercel[bot]
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