Repository navigation
Description
What's wrong
In the Competitors tab of brand settings (/dashboard/brands/[id]/settings),
the small circular avatar shown next to each competitor uses a dark bg-muted
fill. When a competitor's favicon is a transparent PNG/SVG with a dark mark
(very common for monochrome brand logos), the logo blends into the background
and is effectively invisible.
Favicons are conventionally designed to be displayed on a white surface,
so the avatar fallback colour should reflect that.
Steps to reproduce
- Go to
/dashboard/brands/<any-brand-id>/settings→ Competitors tab - Add a competitor whose domain serves a transparent-background dark logo
(e.g.vercel.com,linear.app,github.com) - Observe the avatar: the logo is hard to see or invisible against the dark fill
Expected
The competitor avatar should render the favicon on a white background so
transparent logos remain visible in both light and dark mode.
Where to fix
Primary site:
web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/settings/page.tsx
around line 497 — the<img>that usesbg-mutedfor the competitor
favicon.
The same pattern appears in a few other places. Once you've fixed the main
site, please also check and update these for consistency:
web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.tsxweb/src/app/[locale]/(dashboard)/dashboard/brands/new/page.tsxweb/src/app/[locale]/(dashboard)/dashboard/citations/page.tsxweb/src/app/[locale]/(dashboard)/dashboard/competitors/page.tsx
(Search the repo for `getFaviconUrl` to find every call site.)
Hint
The fix is a one-class swap on each <img> — replace bg-muted with a
white background that works in both light and dark mode. Keep the rounded
shape and object-contain so the favicon stays nicely framed.
How to verify
- Add a competitor with a transparent dark logo, confirm it's visible
- Toggle between light and dark mode (top-right account menu → theme)
- Make sure the avatar still looks good when a favicon fails to load
(the existing fallback initial badge keeps its current styling)
Contribution guide
See CONTRIBUTING.md for branch naming, commit
conventions, and PR workflow.
Activity
fix(ui): change competitor avatar background from muted to white
fix(ui): change competitor avatar background from muted to white (#19)