Repository navigation
[web-shared] [web] Replace emoji icons with lucide icons - #5537
Conversation
Signed-off-by: Mitul Shah <[email protected]> Co-authored-by: vercel-v[bot] <353008837+vercel-v[bot]@users.noreply.github.com>
🦋 Changeset detectedLatest commit: e3c123c 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 |
Sim WorldSimulated world deterministic testing for races. Traces 🟢 world-sim scenario book — 0 fail of 45 total
Full trace: |
Signed-off-by: Mitul Shah <[email protected]> Co-authored-by: vercel-v[bot] <353008837+vercel-v[bot]@users.noreply.github.com>
|
No backport to This is a cosmetic and accessibility polish of the observability UI: it swaps emoji and glyph icons for To override, re-run the Backport to stable workflow manually via |
### 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]>
Description
This PR replaces the emoji and glyph characters used as icons in the observability UI with
lucide-reacticons. Both packages already use lucide everywhere else.Emoji look different on every OS and font. They ignore the surrounding text colour and size, and screen readers announce them by name, for example "satellite antenna". Lucide icons inherit
currentColor, scale with the layout and are markedaria-hidden.web-sharedconversation view, tool call labelWrenchweb-sharedconversation view, tool result labelCheckweb-shareddata inspector, stream reference badgeRadioweb-shareddata inspector, decoded-bytes disclosureChevronRight/ChevronDownwebflow graph, agent nodeBotwebflow graph, tool nodeWrenchwebflow graph, conditional nodeDiamondwebflow graph execution, retry badgeRotateCwwebflow graph execution, duration badgeTimerEach icon keeps its existing colour classes, and the flow-graph node icons use the same
h-3.5 w-3.5size as the other node icons. A code comment inlib/hydration.tsthat quoted an emoji label is updated to the real display name,Encrypted.These are left as they are because they aren't emoji:
⌘key label in the resolve-hook modal's shortcut hint▸/▾disclosure triangles in the data inspector treeHow did you test your changes?
pnpm turbo typecheck test build --filter=@workflow/web-shared --filter=@workflow/web: 12/12 tasks passed.biome checkon the changed files: no errors. The 17 warnings are the same as onmain.packages/web-shared/srcandpackages/web/appfinds no emoji left in rendered code.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 completeCo-authored-by: vercel-v[bot] <353008837+vercel-v[bot]@users.noreply.github.com>