Skip to content

[web-shared] [web] Replace emoji icons with lucide icons - #5537

Merged
mitul-s merged 2 commits into
mainfrom
web-shared/replace-emojis
Nov 17, 2026
Merged

mitul-s merged 2 commits into
mainfrom
web-shared/replace-emojis

Conversation

@mitul-s

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

Copy link
Copy Markdown
Contributor

Description

This PR replaces the emoji and glyph characters used as icons in the observability UI with lucide-react icons. 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 marked aria-hidden.

Where Before After
web-shared conversation view, tool call label 🔧 Wrench
web-shared conversation view, tool result label ✓ Check
web-shared data inspector, stream reference badge 📡 Radio
web-shared data inspector, decoded-bytes disclosure ▶ / ▼ ChevronRight / ChevronDown
web flow graph, agent node 🤖 Bot
web flow graph, tool node 🔧 Wrench
web flow graph, conditional node ◇ Diamond
web flow graph execution, retry badge ↻ RotateCw
web flow graph execution, duration badge ⏱ Timer

Each icon keeps its existing colour classes, and the flow-graph node icons use the same h-3.5 w-3.5 size as the other node icons. A code comment in lib/hydration.ts that quoted an emoji label is updated to the real display name, Encrypted.

These are left as they are because they aren't emoji:

  • the ⌘ key label in the resolve-hook modal's shortcut hint
  • the CSS ▸/▾ disclosure triangles in the data inspector tree
  • arrows in code comments

How did you test your changes?

  • pnpm turbo typecheck test build --filter=@workflow/web-shared --filter=@workflow/web: 12/12 tasks passed.
  • biome check on the changed files: no errors. The 17 warnings are the same as on main.
  • A search of packages/web-shared/src and packages/web/app finds no emoji left in rendered code.
  • I haven't rendered these in a browser, so the flow-graph nodes, the execution badges and the conversation view still need a visual check.

PR Checklist - Required to merge

  • 📦 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
  • 🔒 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>

Signed-off-by: Mitul Shah <[email protected]>

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

vercel Bot commented Nov 17, 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 17, 2026 8:55pm UTC
example-nextjs-workflow-webpack Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
example-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-astro-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-express-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-fastify-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-hono-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-nestjs-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-nitro-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-nuxt-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-python-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-sveltekit-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-tanstack-start-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workbench-vite-workflow Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workflow-docs Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workflow-swc-playground Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workflow-tarballs Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC
workflow-web Ready Ready Preview, v0 Nov 17, 2026 8:55pm UTC

@changeset-bot

changeset-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e3c123c

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-shared Patch
@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/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

@mitul-s
mitul-s marked this pull request as ready for review November 17, 2026 20:50
@mitul-s
mitul-s requested a review from a team as a code owner November 17, 2026 20:50
@github-actions

github-actions Bot commented Nov 17, 2026 •

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

Signed-off-by: Mitul Shah <[email protected]>

Co-authored-by: vercel-v[bot] <353008837+vercel-v[bot]@users.noreply.github.com>
@mitul-s
mitul-s enabled auto-merge (squash) November 17, 2026 20:54
@mitul-s
mitul-s merged commit 44d4b95 into main Nov 17, 2026
73 checks passed
@mitul-s
mitul-s deleted the web-shared/replace-emojis branch November 17, 2026 21:05
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 44d4b95 (AI decision).

This is a cosmetic and accessibility polish of the observability UI: it swaps emoji and glyph icons for lucide-react icons. It doesn't fix a crash, a correctness problem or a functional defect. It's a visual enhancement rather than a stability fix, so it doesn't belong on the stable maintenance line.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

44d4b95df03bc23b9b47d03361fedda3262c434b

@github-actions github-actions Bot mentioned this pull request Nov 17, 2026
@mitul-s mitul-s mentioned this pull request Nov 17, 2026
2 of 3 tasks
mitul-s added a commit that referenced this pull request Dec 1, 2026
### 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]>

This branch was successfully deployed

1 active deployment
Preview – workflow-docs — 2b08bfdc Deployed Nov 17, 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.

2 participants