Repository navigation
feat(web): draw every AI platform's logo in one colour, centred and the same size, and show the Gemini mark for Google AI Mode - #1634
Merged
Conversation
…he same size, and show the Gemini mark for Google AI Mode AIProviderAvatar draws each logo as a CSS mask in the text colour, so logos are black on light surfaces and white in dark mode (text-foreground, overridable with className). New single-colour SVGs in public/platforms have square viewBoxes cut to each mark, so they sit centred at one size; Grok's background square and the Gemini and Copilot colours are gone, Perplexity's strokes are weighted to match, and the Google G has room so it doesn't read larger. Google AI Mode shows the Gemini mark; AI Overview keeps the G. The badge is a bordered background circle with the logo at 60%; the ChatGPT invert and the coloured letter fallbacks are gone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 of 12 tasks
gkhngyk
approved these changes
Oct 28, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, with follow-ups.
Merge state. Clean on main. #1635 is built on this PR's commit, so once this one is squashed, #1635 needs main merged in again. The conflict there is in ai-provider-avatar.tsx and its test, and #1635's side is the one to keep.
Checked
- Hosts. All seven marks are files in
web/public/platforms/, served from our own origin. The proxy's matcher skips paths with a dot, so they aren't sent through the locale redirect. Nothing loads from another host, and the comment about remote favicon URLs is gone with the<img>. - The SVGs. One path each (four for Copilot), no scripts or links, and each viewBox is a square around the mark, so the marks sit centred at the same size. Perplexity is drawn with a stroke, which masks the same way.
- Colour and dark mode. The mark is a CSS mask filled with
bg-current, ontext-foregroundby default. It is black on light and white on dark, and a caller's text colour overrides it (tested). The round badge keepsbg-backgroundand a border, so the mark stays readable in a selected chip or a row with a coloured background. - Names. The outer span keeps
titleandaria-label, and the mask span isaria-hidden. Meta AI keeps its letter badge, now in the same neutral style. - Callers. 19 call sites. Only the Positions sheet, the Improve tab and Settings › AI providers use
plain. The OpenAI special case (invert,bg-black) is gone everywhere. - Tests. With main's
ai-provider-avatar.tsx, 13 of the 14 new tests fail.
Follow-ups
- Give the badge a role.
aria-labelon a span with no role isn't read out by every screen reader.role="img"on the outer span makes the name dependable. This was already the case before this PR. - High-contrast mode. In forced-colours mode (Windows High Contrast), the browser repaints backgrounds, so a mask filled with
bg-currentcan disappear.forced-color-adjust: noneon the mask span (Tailwind'sforced-color-adjust-none), orforced-colors:bg-[CanvasText], keeps the mark visible. - Old files.
web/public/{chatgpt,claude,gemini,grok,copilot,perplexity,ai_overview,ai_mode}.svgare no longer used anywhere in the repo. They can be deleted, here or in a follow-up.
Before the API deploy. This is web only and doesn't depend on the API. Users see one-colour logos once it merges.
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.
Summary
Every AI platform's logo is now one colour (black on light, white in dark mode), centred and the same size, and Google AI Mode shows the Gemini mark. This was Ansvisor's request on 2026-10-28.
Before, the logos were mixed:
Changes (
web/src/components/ai-provider-avatar.tsx, the one component behind every platform logo):bg-current,text-foregroundby default, which a caller can change withclassName). So it's black on light surfaces and white in dark mode.web/public/platforms/: chatgpt, claude, gemini, copilot, perplexity, grok and google, all single colour.bg-backgroundcircle with the logo at 60%.plainfills its box.invert/bg-blackspecial cases and the coloured letter fallbacks. Meta AI keeps a letter badge, now neutral./public/*.svglogos are left in place but no longer referenced.Related issue
None. Ansvisor's request (2026-10-28).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd web && yarn vitest run src/components/ai-provider-avatar.test.tsxChecked in the browser at 1024 px, light and dark, against the dev DB:
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run in
web/:yarn format;yarn lint(0 errors, the 7 earlier warnings);yarn typecheck;yarn test(4,350 tests);yarn build.🤖 Generated with Claude Code