Repository navigation
[web-shared] Delete dead code - #5542
Conversation
Signed-off-by: mitul-s <[email protected]>
🦋 Changeset detectedLatest commit: 0d42e1c The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
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 |
🧪 E2E Test Results✅ All tests passed
|
| Passed | Failed | Skipped | Total | |
|---|---|---|---|---|
| ✅ ▲ Vercel Production | 4649 | 0 | 940 | 5589 |
| ✅ 💻 Local Development | 5272 | 0 | 731 | 6003 |
| ✅ 📦 Local Production | 5272 | 0 | 731 | 6003 |
| ✅ 🐘 Local Postgres | 5417 | 0 | 586 | 6003 |
| ✅ 🪟 Windows | 401 | 0 | 13 | 414 |
| ✅ 🌐 Cross-language Conformance | 68 | 0 | 114 | 182 |
| ✅ dynamic-runs | 0 | 0 | 0 | 0 |
| ✅ local-postgres-spec9 | 0 | 0 | 364 | 364 |
| ✅ local-spec9 | 409 | 0 | 5 | 414 |
| ✅ vercel-http-transport | 1054 | 0 | 188 | 1242 |
| ✅ vercel-multi-region | 27 | 0 | 0 | 27 |
| ✅ vercel-queue-hold | 4 | 0 | 0 | 4 |
| ✅ vercel-spec9 | 395 | 0 | 19 | 414 |
| ✅ vercel-ws-transport | 712 | 0 | 116 | 828 |
| Total | 23680 | 0 | 3807 | 27487 |
Details by Category
✅ ▲ Vercel Production
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ astro-node | 171 | 0 | 36 |
| ✅ astro-quickjs | 170 | 0 | 37 |
| ✅ example-node | 171 | 0 | 36 |
| ✅ example-quickjs | 170 | 0 | 37 |
| ✅ express-node | 171 | 0 | 36 |
| ✅ express-quickjs | 170 | 0 | 37 |
| ✅ fastify-node | 171 | 0 | 36 |
| ✅ fastify-quickjs | 170 | 0 | 37 |
| ✅ hono-node | 171 | 0 | 36 |
| ✅ hono-quickjs | 170 | 0 | 37 |
| ✅ nest-node | 171 | 0 | 36 |
| ✅ nest-quickjs | 170 | 0 | 37 |
| ✅ nextjs-turbopack-node | 199 | 0 | 8 |
| ✅ nextjs-turbopack-quickjs | 198 | 0 | 9 |
| ✅ nextjs-webpack-node | 199 | 0 | 8 |
| ✅ nextjs-webpack-quickjs | 198 | 0 | 9 |
| ✅ nitro-node | 171 | 0 | 36 |
| ✅ nitro-quickjs | 170 | 0 | 37 |
| ✅ nuxt-node | 171 | 0 | 36 |
| ✅ nuxt-quickjs | 170 | 0 | 37 |
| ✅ python-node | 66 | 0 | 141 |
| ✅ sveltekit-node | 190 | 0 | 17 |
| ✅ sveltekit-quickjs | 189 | 0 | 18 |
| ✅ tanstack-start-node | 171 | 0 | 36 |
| ✅ tanstack-start-quickjs | 170 | 0 | 37 |
| ✅ vite-node | 171 | 0 | 36 |
| ✅ vite-quickjs | 170 | 0 | 37 |
✅ 💻 Local Development
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ astro-stable-node | 172 | 0 | 35 |
| ✅ astro-stable-quickjs | 171 | 0 | 36 |
| ✅ express-stable-node | 172 | 0 | 35 |
| ✅ express-stable-quickjs | 171 | 0 | 36 |
| ✅ fastify-stable-node | 172 | 0 | 35 |
| ✅ fastify-stable-quickjs | 171 | 0 | 36 |
| ✅ hono-stable-node | 172 | 0 | 35 |
| ✅ hono-stable-quickjs | 171 | 0 | 36 |
| ✅ nest-stable-node | 172 | 0 | 35 |
| ✅ nest-stable-quickjs | 171 | 0 | 36 |
| ✅ nextjs-turbopack-canary-node | 201 | 0 | 6 |
| ✅ nextjs-turbopack-canary-quickjs | 200 | 0 | 7 |
| ✅ nextjs-turbopack-quickjs-snapshot | 200 | 0 | 7 |
| ✅ nextjs-turbopack-stable-node | 201 | 0 | 6 |
| ✅ nextjs-turbopack-stable-quickjs | 200 | 0 | 7 |
| ✅ nextjs-webpack-canary-node | 201 | 0 | 6 |
| ✅ nextjs-webpack-canary-quickjs | 200 | 0 | 7 |
| ✅ nextjs-webpack-stable-node | 201 | 0 | 6 |
| ✅ nextjs-webpack-stable-quickjs | 200 | 0 | 7 |
| ✅ nitro-stable-node | 172 | 0 | 35 |
| ✅ nitro-stable-quickjs | 171 | 0 | 36 |
| ✅ nuxt-stable-node | 172 | 0 | 35 |
| ✅ nuxt-stable-quickjs | 171 | 0 | 36 |
| ✅ sveltekit-stable-node | 191 | 0 | 16 |
| ✅ sveltekit-stable-quickjs | 190 | 0 | 17 |
| ✅ tanstack-start-node | 172 | 0 | 35 |
| ✅ tanstack-start-quickjs | 171 | 0 | 36 |
| ✅ vite-stable-node | 172 | 0 | 35 |
| ✅ vite-stable-quickjs | 171 | 0 | 36 |
✅ 📦 Local Production
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ astro-stable-node | 172 | 0 | 35 |
| ✅ astro-stable-quickjs | 171 | 0 | 36 |
| ✅ express-stable-node | 172 | 0 | 35 |
| ✅ express-stable-quickjs | 171 | 0 | 36 |
| ✅ fastify-stable-node | 172 | 0 | 35 |
| ✅ fastify-stable-quickjs | 171 | 0 | 36 |
| ✅ hono-stable-node | 172 | 0 | 35 |
| ✅ hono-stable-quickjs | 171 | 0 | 36 |
| ✅ nest-stable-node | 172 | 0 | 35 |
| ✅ nest-stable-quickjs | 171 | 0 | 36 |
| ✅ nextjs-turbopack-canary-node | 201 | 0 | 6 |
| ✅ nextjs-turbopack-canary-quickjs | 200 | 0 | 7 |
| ✅ nextjs-turbopack-quickjs-snapshot | 200 | 0 | 7 |
| ✅ nextjs-turbopack-stable-node | 201 | 0 | 6 |
| ✅ nextjs-turbopack-stable-quickjs | 200 | 0 | 7 |
| ✅ nextjs-webpack-canary-node | 201 | 0 | 6 |
| ✅ nextjs-webpack-canary-quickjs | 200 | 0 | 7 |
| ✅ nextjs-webpack-stable-node | 201 | 0 | 6 |
| ✅ nextjs-webpack-stable-quickjs | 200 | 0 | 7 |
| ✅ nitro-stable-node | 172 | 0 | 35 |
| ✅ nitro-stable-quickjs | 171 | 0 | 36 |
| ✅ nuxt-stable-node | 172 | 0 | 35 |
| ✅ nuxt-stable-quickjs | 171 | 0 | 36 |
| ✅ sveltekit-stable-node | 191 | 0 | 16 |
| ✅ sveltekit-stable-quickjs | 190 | 0 | 17 |
| ✅ tanstack-start-node | 172 | 0 | 35 |
| ✅ tanstack-start-quickjs | 171 | 0 | 36 |
| ✅ vite-stable-node | 172 | 0 | 35 |
| ✅ vite-stable-quickjs | 171 | 0 | 36 |
✅ 🐘 Local Postgres
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ astro-stable-node | 177 | 0 | 30 |
| ✅ astro-stable-quickjs | 176 | 0 | 31 |
| ✅ express-stable-node | 177 | 0 | 30 |
| ✅ express-stable-quickjs | 176 | 0 | 31 |
| ✅ fastify-stable-node | 177 | 0 | 30 |
| ✅ fastify-stable-quickjs | 176 | 0 | 31 |
| ✅ hono-stable-node | 177 | 0 | 30 |
| ✅ hono-stable-quickjs | 176 | 0 | 31 |
| ✅ nest-stable-node | 177 | 0 | 30 |
| ✅ nest-stable-quickjs | 176 | 0 | 31 |
| ✅ nextjs-turbopack-canary-node | 206 | 0 | 1 |
| ✅ nextjs-turbopack-canary-quickjs | 205 | 0 | 2 |
| ✅ nextjs-turbopack-quickjs-snapshot | 205 | 0 | 2 |
| ✅ nextjs-turbopack-stable-node | 206 | 0 | 1 |
| ✅ nextjs-turbopack-stable-quickjs | 205 | 0 | 2 |
| ✅ nextjs-webpack-canary-node | 206 | 0 | 1 |
| ✅ nextjs-webpack-canary-quickjs | 205 | 0 | 2 |
| ✅ nextjs-webpack-stable-node | 206 | 0 | 1 |
| ✅ nextjs-webpack-stable-quickjs | 205 | 0 | 2 |
| ✅ nitro-stable-node | 177 | 0 | 30 |
| ✅ nitro-stable-quickjs | 176 | 0 | 31 |
| ✅ nuxt-stable-node | 177 | 0 | 30 |
| ✅ nuxt-stable-quickjs | 176 | 0 | 31 |
| ✅ sveltekit-stable-node | 196 | 0 | 11 |
| ✅ sveltekit-stable-quickjs | 195 | 0 | 12 |
| ✅ tanstack-start-node | 177 | 0 | 30 |
| ✅ tanstack-start-quickjs | 176 | 0 | 31 |
| ✅ vite-stable-node | 177 | 0 | 30 |
| ✅ vite-stable-quickjs | 176 | 0 | 31 |
✅ 🪟 Windows
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ nextjs-turbopack-node | 201 | 0 | 6 |
| ✅ nextjs-turbopack-quickjs | 200 | 0 | 7 |
✅ 🌐 Cross-language Conformance
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ python | 68 | 0 | 114 |
✅ dynamic-runs
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ astro-vercel | 0 | 0 | 0 |
| ✅ example-vercel | 0 | 0 | 0 |
| ✅ express-vercel | 0 | 0 | 0 |
| ✅ fastify-vercel | 0 | 0 | 0 |
| ✅ hono-vercel | 0 | 0 | 0 |
| ✅ nest-vercel | 0 | 0 | 0 |
| ✅ nextjs-turbopack-vercel | 0 | 0 | 0 |
| ✅ nextjs-webpack-vercel | 0 | 0 | 0 |
| ✅ nitro-vercel | 0 | 0 | 0 |
| ✅ nuxt-vercel | 0 | 0 | 0 |
| ✅ sveltekit-vercel | 0 | 0 | 0 |
| ✅ tanstack-start-vercel | 0 | 0 | 0 |
| ✅ vite-vercel | 0 | 0 | 0 |
✅ local-postgres-spec9
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ nextjs-turbopack-stable-node | 0 | 0 | 182 |
| ✅ nextjs-turbopack-stable-quickjs | 0 | 0 | 182 |
✅ local-spec9
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ nextjs-turbopack-node | 205 | 0 | 2 |
| ✅ nextjs-turbopack-quickjs | 204 | 0 | 3 |
✅ vercel-http-transport
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ example | 171 | 0 | 36 |
| ✅ express | 171 | 0 | 36 |
| ✅ hono | 171 | 0 | 36 |
| ✅ nextjs-turbopack | 199 | 0 | 8 |
| ✅ nitro | 171 | 0 | 36 |
| ✅ vite | 171 | 0 | 36 |
✅ vercel-multi-region
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ nextjs-turbopack | 27 | 0 | 0 |
✅ vercel-queue-hold
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ nextjs-turbopack | 4 | 0 | 0 |
✅ vercel-spec9
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ nextjs-turbopack-node | 198 | 0 | 9 |
| ✅ nextjs-turbopack-quickjs | 197 | 0 | 10 |
✅ vercel-ws-transport
| App | Passed | Failed | Skipped |
|---|---|---|---|
| ✅ example | 171 | 0 | 36 |
| ✅ express | 171 | 0 | 36 |
| ✅ nextjs-turbopack | 199 | 0 | 8 |
| ✅ vite | 171 | 0 | 36 |
📊 Workflow Benchmarkscommit Backend:
📈 STSO distribution vs main (inline / queue-hop histograms)1020 steps (inline) Cumulative STSO time: main 128901ms → this run 128445ms (Δ -456ms, 0%) 📜 Previous results (2)f07b2b5Tue, 17 Nov 2026 22:20:02 GMT · run logs
fb1c93dTue, 17 Nov 2026 21:35:10 GMT · run logs
ℹ️ Metric definitions & methodologyThe collapsed STSO distribution section above buckets every step gap, split inline (same warm process — pure framework overhead) vs queue-hop (fresh process — dispatch, reinit, replay). Best/P75/P90/P99 deltas compare against the most recent benchmark run on Metrics — TTFS: time to first step body (in-deployment start() → first step body) · Fan-out TTFS: fan-out time to first step (in-deployment start() → first of the parallel step bodies to complete) · Fan-out TTLS: fan-out time to last step (in-deployment start() → last of the parallel step bodies to complete, i.e. when the Promise.all resolves) · STSO: step-to-step overhead (gap between consecutive step bodies) · WO: workflow overhead (whole-run time outside step bodies, in-deployment anchored) Scenarios — step: one trivial no-op step, no stream; no hooks, so the run stays in turbo mode (in-process fast path) · stream: one streaming step; no hooks, so the run stays in turbo mode (in-process fast path) · hook + stream: registers a hook before one step, which exits turbo mode (dispatch path) · 1020 steps: 1020 trivial sequential steps; STSO is measured between consecutive steps in the given step ranges, and WO is the whole-run overhead outside step bodies · Promise.all(100 steps): 100 trivial no-op steps started together in a single Promise.all; Fan-out TTFS is the first of them to complete and Fan-out TTLS the last, both from the in-deployment clientStart, so their gap is the spread the runtime adds across the fan-out 🔴 marks a percentile over its target (within target is left unmarked). Targets (p75/p90/p99, ms) — TTFS 200/300/600 All timestamps are deployment-side; runs are triggered in-deployment, so the CI runner and api.vercel.com sit outside every measured window. TTFS = Cold starts stay in the numbers (real bursty-workload latency, inflates P75+); Best is the warm floor. |
Sim WorldSimulated world deterministic testing for races. Traces 🟢 world-sim scenario book — 0 fail of 45 total
Full trace: |
About these numbersSizes are gzip; parentheses show the change against
|
Signed-off-by: mitul-s <[email protected]>
|
No backport to This is a dead-code cleanup and refactor of To override, re-run the Backport to stable workflow manually via |
…s on Button (#5522) ### What The observability UI's loading buttons and spinners now render through a single `Button` and a single `Spinner`. Their sizes, slots, focus ring and loading state match the design system's button pixel for pixel. `LoadMoreButton` and the `tiny` size are gone. ### Why `LoadMoreButton` and `DecryptButton` each built their own secondary button out of injected `<style>` tags, and spinners were drawn three different ways. As a result, heights, hover fills, disabled styles and focus rings all varied. With one `Button`, those details live in one place. ### Preview [Observability UI preview](https://workflow-web-git-web-shared-button-variants.labs.vercel.dev) 1. Tab to **Health Check**. A 2px focus ring replaces the border, with a 2px gap. 2. Click **Health Check**. The spinner takes the icon's slot and the label stays put. 3. Select runs. **Re-enqueue** and **Cancel** show the same spinner while working. 4. On a run with more than one page of events, open **Events**. **Load more** shows the spinner while loading. ### Changes - **`Button`** - The label has its own span with 6px of padding, which truncates when the button is squeezed. It sits between a 20px prefix slot and a suffix slot, and `asChild` gets the same structure. - `loading` disables the button, sets `aria-busy`, and swaps the prefix for a spinner sized to the button: 12px at small, 16px at medium, 20px at large. - Slot icons are 14px, and labels use a 1.5× line height. - Keyboard focus draws `--ds-focus-ring` in place of the border. - Disabled `tertiary` keeps its text colour, at 50% opacity. - `tiny` is removed. - **`Spinner`** takes named sizes from `sm` to `4xl`, defaulting to `lg` (20px). It's sized with classes and drawn from one table of line sizes, angles, delays and durations. It paints with `currentColor`, and its keyframes live in `styles.css`. - **`LoadMoreButton`** is removed. The Events list renders a secondary `Button` with `loading` instead. - **`DecryptButton`** is a small secondary `Button` with a `Lock`/`LockOpen` prefix. - **Call sites** - Icons go in `prefix`/`suffix`: Replay, Cancel, Newest, Previous/Next, Docs, Health Check, and the bulk actions. - The Refresh buttons use `loading`. - Icon-only buttons use `shape="square"`. - Buttons that used `tiny` are now `small`. - **`IconButton`** drops `muted`, which was the same as the default. - **Comments** in `styles.css` and `runs-table.tsx` describe this code on its own terms. **Public API:** - `Button`'s `size="tiny"` is removed. - `Spinner` drops pixel sizes and the `color` prop, and defaults to 20px. `LoadMoreButton` and `IconButton` were already removed from the package's exports on `main` (#5542). ### How did you test your changes? - **Rendered comparison** against the reference implementation, in light and dark, at rest, on hover and with keyboard focus. It covered 132 button cases (every variant, size and content, including a long label that truncates), all 7 spinner sizes, and the load-more button. - Computed styles, element positions and screenshots all match. This revision ran in Chromium; WebKit matched on the previous one. - The only differences aren't visual: - loading buttons set `aria-busy`; - buttons default to `type="button"`; - the spinner is a `<span>`, because a `<div>` isn't valid inside a button. - Under the standalone app's stylesheet, the extra differences come from app tokens, not `Button`: the page doesn't set the `ss11`/`calt` font features, and `--ds-focus-color` is a shade off. - **In the app:** Health Check, Newest, Refresh and Docs measure the same as the reference. - `pnpm turbo typecheck test build --filter=@workflow/web-shared --filter=@workflow/web`: 12 of 12 tasks passed. web-shared passed 281 tests and web passed 160. - `test/button.test.ts` covers loading, idle and `asChild` rendering, and the spinner size for each button size. - `pnpm biome check`: no errors on the changed files. ### PR Checklist - Required to merge - [x] 📦 `pnpm changeset` was run to create a changelog for this PR - [x] 🔒 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 _Written by Claude Opus 5.5_ --------- Signed-off-by: mitul-s <[email protected]> Co-authored-by: vercel-v[bot] <353008837+vercel-v[bot]@users.noreply.github.com>
### What Deletes dead code in `@workflow/web`: unused components, hooks, server actions, styles and dependencies. This is the web half of #5529. The `@workflow/web-shared` half is in #5542, and the two PRs don't depend on each other. ### Why Nothing runs this code, but it still has to be maintained and reviewed. #5529 is split into one PR per package so each one can be reviewed and land on its own. ### Preview [workflow-web preview](https://workflow-web-git-web-delete-dead-code.labs.vercel.dev/?tab=workflows) 1. On the Workflows tab, open a workflow's graph and check that loop, conditional (diamond) and self-loop nodes still render. 2. Open a run, go to `?tab=graph`, and check the execution graph the same way. 3. On the run page, check that the run actions (replay, wake up, cancel) still work. #### Deleted files - `display-utils/side-panel.tsx`, `display-utils/page-size-dropdown.tsx`, `display-utils/rerun-button.tsx` - `ui/input.tsx`, `ui/label.tsx`, `ui/switch.tsx` - `lib/config-world.server.ts`, `lib/known-worlds.ts` #### Other removals - `useLazyEvents` in `run-actions.tsx`. - Eight URL-state hooks (`useSidebarState`, `useThemeState`, `useTabState`, `useHookIdState`, `useStepIdState`, `useEventIdState`, `useStreamIdState`, `useWorkflowIdState`) and the `useUrlParam` helper they shared. - `readStreamServerAction`, which the `/api/stream/:streamId` route replaced. - Unused re-exports in the `workflow-api-client.ts` barrel. - Dropped `export` from flow-graph helpers that only `workflow-graph-viewer.tsx` uses. - The unused `@keyframes gradient` in `app/globals.css`. - Dependencies nothing imports: `shiki`, `@radix-ui/react-label`, `@radix-ui/react-switch` and `cross-env`. The lockfile diff only deletes lines. The changeset is a `patch` because nothing here is part of a public API. #### Differences from #5529 #5529's sync with `main` took `main`'s copies of conflicting files. That brought back `ui/input.tsx`, `ui/label.tsx` and `ui/switch.tsx`, the flow-graph `export`s, `@keyframes gradient` and the four dependencies. All of them are still unused on `main`, so this PR removes them again. The `workflow-graph-viewer.tsx` conflict keeps `main`'s lucide icons from #5537. ### How did you test your changes? - `pnpm turbo test build --filter=@workflow/web`: 10/10 tasks passed. `web` has no `typecheck` script. - `pnpm vitest run` in `packages/web`: 24 files, 160 tests passed. - `react-router typegen && tsc --noEmit` in `packages/web` (CI doesn't run it): 19 errors. Every one is also on `main`, and none is in a file this PR touches. - `pnpm biome check packages/web`: no errors. - Merged with #5542 locally: no conflicts, and `pnpm install --lockfile-only` leaves the combined lockfile unchanged. - Visuals were not rendered. Nothing deleted here was imported or referenced by code that runs. ### PR Checklist - Required to merge - [x] 📦 `pnpm changeset` was run to create a changelog for this PR - Use the correct semver bump type: `patch` for bug fixes, `minor` for new features, `major` for breaking changes. - Use `pnpm changeset --empty` if you are changing documentation or workbench apps - [x] 🔒 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 _Written by fx_ Signed-off-by: mitul-s <[email protected]> Co-authored-by: mitul-s <[email protected]>
What
Deletes dead code in
@workflow/web-shared, and removes every public export that neither@workflow/webnor the Vercel dashboard (vercel/front) imports, including the unused@workflow/web-shared/componentsentry point. This is the web-shared half of #5529. The@workflow/webhalf is in #5543, and the two PRs don't depend on each other.Why
Code that nothing runs still has to be maintained and reviewed, and every export is API we have to keep working. Consumers are expected to update with this change rather than hold the cleanup back. The dashboard only needs one change, listed below.
Preview
workflow-web preview
?tab=trace.Encryptedwith a Decrypt button that decrypts them.Change needed in
vercel/fronthydrateResourceIOWithKeyis removed. Swap it forhydrateResourceIOAsync, which takes the same arguments:observability/(tabs)/workflows/lib/use-events-list-data.ts(lines 8, 73, 107, 141)observability/(tabs)/workflows/components/run-details-view.tsx(lines 9, 192)Nothing else the dashboard imports changes (checked against front's
mainon 2026-11-17), and front never imports the/componentssubpath.Removed exports
hydrateResourceIOWithKeyhydrateResourceIOAsync.MenuDropdown,MenuDropdownOptiongh search code --owner vercel).materializeSteps,materializeHooks,materializeWaits,materializeAlland theMaterialized*typeslib/event-materialization.tsand its tests. Onlyindex.tsand tests imported it.shouldShowReenqueueButton,hasPendingStepsFromEvents,hasPendingHooksFromEvents,isTerminalStatusanalyzeEventsstays.identifyStreamSteps,StreamSteplooksLikeWorkflowIdSearchInputCLASS_INSTANCE_REF_TYPE,ClassInstanceRef,extractStreamIds,isClassInstanceRef,isStreamId,isStreamRef,STREAM_REF_TYPE,truncateId,StreamRef@workflow/core/serialization-format. Import them from there.hookEventsToHookEntity,isEncryptedMarker,DUPLICATE_EVENT_MESSAGE,findDuplicateEventIds,isSealedNoopEvent,SEALED_EVENT_MESSAGE,parseExactWorkflowSearchId,ExactWorkflowSearchId,isQuickJSSnapshotRun,extractConversation,isDoStreamStep,formatDurationPrecise,DecodedStreamChunkSource,useToastResolveHookModal,ConversationView,SidebarDataProvider,SelectedSpanInfo,DecryptClickContext,DecryptClickContextValue,IconButton,Kbd,LoadMoreButtonKept on purpose
ButtonProps,DataInspectorProps, theuseHookActions/HookResolveModalWrapper/ResolveHookDropdownItemprop and option types,EventAnalysis,RunLimitGuidance/RunLimitGuidanceKind,RunStateHydratorOptions/StateHistoryPage(the docs describecreateRunStateHydratorfor custom inspectors), andSpanSelectionInfo/DetailResource(the arguments and result ofFetchSpanDetail).SpanEvent, which is part ofSpan, and which the v5 What's New page says is still exported.collapseRefsandisDeepEqualstay exported from their modules for their tests.Other cleanup
ui/card.tsxandui/alert.tsx(unused copies of web's shadcn components),hooks/use-dark-mode.ts,DuplicateEventTooltip, and the unusedgetPaginationDisplayinlib/utils.ts.src/index.d.tsandsrc/components/index.d.ts: tsc ignores a.d.tsnext to a.tsof the same name, and the published types come fromdist/.ui/data-inspector.tsxdrops its private copies of the ref type guards and imports them fromlib/hydration.ts.exportfrom symbols that only their own file uses (AttributeBlock,DetailKeyValueRow,sortAttributeKeys,TimelineBar,kbdVariants,MIN_START/MIN_END/MeasureFn/TruncateResult,EXPIRED_DISPLAY_NAME,summarizeArrayBufferView,isRunLevelEvent,convertEventsToSpanEvents).ObjectInspectornow sayDataInspector.shikidependency. The lockfile diff is three deleted lines.Overlap with other open PRs
MenuDropdownon Radix, but this PR deletes it because nothing uses it. Only one of the two should land.lib/event-materialization.tsandstart-hook.test.ts, which this PR deletes and trims. Whichever lands second resolves the conflict by keeping the deletion.src/index.ts,src/components/index.ts), so expect small conflicts there.Differences from #5529
mainrestoredui/alert.tsxandshikiby takingmain's copies of conflicting files. This PR deletes them again because they are still unused onmain.hydrateResourceIOWithKeyas a deprecated alias for the dashboard. This PR removes it.How did you test your changes?
pnpm turbo typecheck test build --filter=@workflow/web-sharedon the first commit: 10/10 tasks passed.pnpm typecheckinpackages/web-shared: no errors.pnpm vitest runinpackages/web-shared: 34 files, 276 tests passed. Ten fewer thanmain: the sevenevent-materializationtests, the start Hook materialization test, and the twolooksLikeWorkflowIdSearchInputtests, all of which covered deleted code.pnpm turbo build test --filter=@workflow/webagainst this branch: 10/10 passed, sowebbuilds on the smaller API.react-router typegen && tsc --noEmitinpackages/webreports the same 19 errors asmain.pnpm biome check packages/web-shared: no errors.src/index.tsis imported bypackages/webor front, apart from the types kept on purpose above.DataInspector's ref detection, which now uses the@workflow/coreguards. They check__typewithin, so they also match the non-enumerable opaque refs thatcollapseRefsbuilds, and the existingDataInspector/collapseRefstests pass.PR Checklist - Required to merge
pnpm changesetwas run to create a changelog for this PRpatchfor bug fixes,minorfor new features,majorfor breaking changes.pnpm changeset --emptyif you are changing documentation or workbench appsgit commit --signoffon your commits)@vercel/workflowin a comment once the PR is ready, and the above checklist is completeWritten by fx