Skip to content

bug(ui): competitor avatar background hides transparent logos #18

Closed

Description

@gkhngyk

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

  1. Go to /dashboard/brands/<any-brand-id>/settings → Competitors tab
  2. Add a competitor whose domain serves a transparent-background dark logo
    (e.g. vercel.com, linear.app, github.com)
  3. 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 uses bg-muted for 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.tsx
  • web/src/app/[locale]/(dashboard)/dashboard/brands/new/page.tsx
  • web/src/app/[locale]/(dashboard)/dashboard/citations/page.tsx
  • web/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

  1. added
    bug
    good first issue
    help wanted
    on May 15, 2026
  2. added a commit that references this issue on May 15, 2026
    91546bc
  3. added a commit that references this issue on May 15, 2026
    e0e2bb4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions