Uh oh!
There was an error while loading. Please reload this page.
fix(mcp): real brand logos on MCP market tiles — via the brand-asset architecture - #1215
Merged
Conversation
#1205 replaced the MCP market's official brand marks with generic text marks (S / LINE / 31 / F / ▲ / S) — wrong direction. Famous brands must show their real logos. This restores the six official marks using the same architecture provider-brand-marks.tsx already established: vendored .svg assets imported as URLs, rendered via <img> (color) or a currentColor mask (monochrome), never inline hand-drawn <svg> in the component TSX. - Recover Slack / LINE / Google Calendar / Figma / Vercel / Supabase SVGs byte-faithfully from the pre-#1205 inline markup (commit e48be52) into apps/desktop/src/renderer/assets/mcp-brands/*.svg. - Add McpBrandMark + hasMcpBrandMark (mcp-brand-marks.tsx). Color marks ride <img>; monochrome ▲/LINE ride a mask so they inherit the plate foreground in light + dark. Brands without a faithful asset (钉钉/飞书/ Notion/macOS/…) keep the catalog text mark — no hand-drawn approximations. - Wire McpCatalogCard (market + installed tiles) to McpBrandMark; branded tiles drop the per-brand tint for a quiet neutral plate, matching how .providerLogo treats color marks. Drop the now-unused brand tint tokens. Governance: the component imports .svg assets (not .tsx <svg> literals), so it needs no icon-governance inline-SVG allowlist entry. Tile polish from #1205 is preserved; only the logo removal is reverted.
Uh oh!
There was an error while loading. Please reload this page.
jackwener added a commit
that referenced
this pull request
Jul 18, 2026
Replace the #1215 vendored-asset approach (assets/mcp-brands/*.svg + <img>/mask rendering) with per-icon simple-icons imports. Marks now render as an inline <svg> mounting shell wrapping the library's <path>, filled with the official brand hex in light theme. A pure luminance gate flips near-black marks (Vercel/Notion/Slack) to currentColor on the dark plate so they stay legible; the threshold is documented and unit-tested. - add simple-icons@15.22.0 to apps/desktop (per-icon named ESM imports; main renderer chunk grows only ~1.3KB — tree-shaking confirmed) - Notion now renders a real library mark (was a text 'N') - 钉钉/飞书 keep text marks: simple-icons carries no mark for them in any release; macOS/filesystem/memory/… stay non-brand glyph/text by design - allowlist mcp-brand-marks.tsx for inline SVG (library-sourced path geometry, not hand-drawn) in the icon-governance contract - delete vendored SVG assets + dead mask CSS/machinery - extract luminance gate to mcp-brand-contrast.ts + add unit test
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 freeto 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.
User pushback on #1205: famous brands (Figma/Notion/Slack…) obviously have famous logos — the text-mark convergence was the wrong direction. The governance rule stands (no hand-drawn inline SVG in component TSX); real logos ride the repo's established brand-asset architecture instead (provider-brand-marks precedent).
What shipped
Gates
Tree already contains main tip. desktop 2715/2715 · ui 190/190 · typecheck · check-dead-css · knip ×2 = 0 · alignment auditor all 10 fixtures clean. CDP light+dark before/after: real logos confirmed on all six tiles; maintainer visually accepted. Implemented by an opus worktree agent.