Repository navigation
Use registered icons for unloaded machine providers and the composer example - #5259
Merged
ymichael merged 2 commits intoOct 9, 2026
Merged
Conversation
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
deleted the
bb/fix-machineicon-unregistered-fallback-icon-thr_25c3yc786s
branch
October 9, 2026 17:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Iconfrom@bb/shared-ui/iconrenders itsZapfallback for any name that is not in the shared-ui icon registry.MachineIconbuilt 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 registeredComputerCloudicon, checked withsatisfies BuiltinIconNameso an unregistered name fails typecheck.apps/app/src/components/machines/MachineLabel.test.tsx: covers an ephemeral machine with an unloaded provider and assertsComputerCloudrenders instead ofZap.examples/plugins/composer-customization/app.tsx: the "Append review checklist" plus-menu item uses the registeredListTodoicon.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.🤖 Generated with Claude Code