Skip to content

Keep the built-in provider icon fallbacks - #1732

Merged
ymichael merged 2 commits into
mainfrom
bb/thr_xzz9jj5af7
Aug 17, 2026
Merged

Keep the built-in provider icon fallbacks#1732
ymichael merged 2 commits into
mainfrom
bb/thr_xzz9jj5af7

Conversation

@ymichael

@ymichael ymichael commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Closes #1723

Summary

  • keep the well-known Codex, Claude Code, Pi, and Cursor inline icon fallbacks
  • retain plugin-registered icons as live overrides when their frontends are available
  • remove the stale comment describing the fallback map as scheduled-expiry debt

Validation

  • pnpm exec turbo run test --filter=@bb/app -- --run src/lib/provider-icon.test.tsx (5 passing)

AGENT GENERATED: by GPT-5 Codex

@bb-slop-cop

bb-slop-cop Bot commented Aug 17, 2026

Copy link
Copy Markdown

🚨 SLOP COP 🚨 · review

I am the SlopCop. I am reviewing this pull request for security, code quality, performance, architecture, and user behavior.

@ymichael ymichael changed the title Remove vendored built-in provider icons Remove the built-in provider icon fallback Aug 17, 2026
Comment thread apps/app/src/lib/provider-icon.ts Outdated
const pluginOwnedLabel = PLUGIN_OWNED_PROVIDER_ICON_LABELS.get(providerId);
if (pluginOwnedLabel !== undefined) {
return {
icon: PendingPluginProviderIcon,

@bb-slop-cop bb-slop-cop Bot Aug 17, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 slopcop/review — The full app test suite now fails after this placeholder replaces the SVG fallback.

SkillsView.test.tsx:659 expects the Codex filter to contain an SVG. SidebarUpdatesBadge.test.tsx:218 expects three provider SVG marks.

Both tests fail locally and in the app CI job. Please register provider icons in these tests or update their placeholder expectations.

Comment thread apps/app/src/lib/provider-icon.ts Outdated
* document where `currentColor` resolves to black — invisible on dark
* themes — and page CSS cannot reach it.
* 3. A caller-supplied `logoUrl` (from a server-provided `ProviderInfo`) for
* 2. An empty, size-preserving placeholder for the first-party providers

@bb-slop-cop bb-slop-cop Bot Aug 17, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 slopcop/review — The public API audit guide still promises the removed vendored-map fallback.

docs/api_to_audit.md says a failed reload falls back to the vendored map. This code now returns an empty slot.

Please update the audit guide and its bundle-size note to describe the new fallback order.

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

Plain English summary

This pull request removes four provider icon copies from the main app. Each provider plugin now supplies its own icon.

The app shows an empty icon space until the plugin loads.

Findings

  • High: The full app test suite fails in two places.
  • The new fallback creates spans, but the tests still require SVG provider marks.
  • Low: docs/api_to_audit.md still promises the deleted vendored-map fallback.

Security

I found no security issue. The new paths use fixed repository assets. The SVG files contain no active content.

Performance

I found no performance problem. The production build passed the app bundle budget. The change removes 5,342 bytes of duplicate production source.

Architecture

Identical icon paths remain in Automations, Tasks, Web, and the provider plugins. A shared package could reduce duplication but add plugin dependencies.

Three comments still name the deleted app icon files as their source. These comments should point to provider-owned assets.

Validation

  • The focused provider icon tests passed: 9 of 9.
  • The app typecheck passed.
  • The production app build passed.
  • The dark-theme Ladle picker loaded Codex, Claude, and Pi icons at the correct size.
  • All checked picker images loaded without errors.
  • The two affected test files failed locally: 2 failed and 42 passed.
  • The app CI job reports the same two failures.

The production behavior looks correct. The two failing tests and the stale API guide need updates.

I posted this as a comment review only.

@ymichael ymichael changed the title Remove the built-in provider icon fallback Keep the built-in provider icon fallbacks Aug 17, 2026
@ymichael
ymichael merged commit 3e50636 into main Aug 17, 2026
11 checks passed
@ymichael
ymichael deleted the bb/thr_xzz9jj5af7 branch August 17, 2026 22:31
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.

Delete the vendored built-in provider brand-icon map after plugin-icon soak

1 participant