Skip to content

Use registered icons for unloaded machine providers and the composer example - #5259

Merged
ymichael merged 2 commits into
mainfrom
bb/fix-machineicon-unregistered-fallback-icon-thr_25c3yc786s
Oct 9, 2026
Merged

ymichael merged 2 commits into
mainfrom
bb/fix-machineicon-unregistered-fallback-icon-thr_25c3yc786s

Conversation

@ymichael

@ymichael ymichael commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Icon from @bb/shared-ui/icon renders its Zap fallback for any name that is not in the shared-ui icon registry. MachineIcon built its stand-in presentation for an ephemeral machine whose provider plugin is not loaded with the icon name "Server", which is not registered, so those machines rendered a Zap. The composer-customization example plugin had the same problem with "ListChecks".

What changed

  • apps/app/src/components/machines/MachineLabel.tsx: the unloaded-provider stand-in uses the registered ComputerCloud icon, checked with satisfies BuiltinIconName so an unregistered name fails typecheck.
  • apps/app/src/components/machines/MachineLabel.test.tsx: covers an ephemeral machine with an unloaded provider and asserts ComputerCloud renders instead of Zap.
  • examples/plugins/composer-customization/app.tsx: the "Append review checklist" plus-menu item uses the registered ListTodo icon.

No wire, CLI, or public API changes.

How you verified

  • pnpm exec turbo run test --filter=@bb/app -- src/components/machines/MachineLabel.test.tsx: 2 passed (new test renders Zap without the fix).
  • pnpm exec turbo run typecheck lint --filter=@bb/app: clean (0 lint errors).
  • pnpm exec turbo run typecheck build --filter=bb-plugin-composer-customization: clean.

AGENT GENERATED

🤖 Generated with Claude Code

qa and others added 2 commits October 9, 2026 10:06
MachineIcon fell back to the icon name "Server", which is not in the
shared-ui icon registry, so Icon resolved it to its own Zap fallback.
Use the registered ComputerCloud icon, checked with satisfies
BuiltinIconName, and cover the unloaded-provider case in a test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The example's plus-menu item named the icon "ListChecks", which is not
in the shared-ui icon registry, so it rendered as the Zap fallback.
Use the registered ListTodo icon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit d474d29 into main Oct 9, 2026
37 checks passed
@ymichael
ymichael deleted the bb/fix-machineicon-unregistered-fallback-icon-thr_25c3yc786s branch October 9, 2026 17:16
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