Skip to content

feat(shopping): show provider logos in product tables - #401

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
Sam-syntax35:feat/provider-logos-shopping
Jul 10, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
Sam-syntax35:feat/provider-logos-shopping

Conversation

@Sam-syntax35

Copy link
Copy Markdown
Contributor

Summary

  • Replaced raw platform slug badges with provider avatars in the Competitors and Own Products tables.
  • Updated the Product Appearances drawer to display the provider avatar alongside the human-readable provider name.
  • Reused the existing AIProviderAvatar, resolveAIProvider, and getAIProviderDisplayName implementation for consistent UI and preserved fallback behavior for unknown providers.

Closes #398.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice upgrade — this reuses the existing AIProviderAvatar / resolveAIProvider / getAIProviderDisplayName infrastructure instead of inventing a new mapping, and it matches the pattern (and even the h-4.5 sizing) already used in the prompt appearances sheet on the same page. The avatar's title/aria-label keep the provider name available on hover, so no information is lost for known platforms. All shopping platform slugs (perplexity-web, copilot-web, google-aio, …) are covered by the resolver.

One non-blocking observation for the future: resolveAIProvider silently falls back to openai for unknown keys, so if a new scraper platform is ever added without updating the resolver, its products would show a ChatGPT logo instead of a visibly-raw slug like the old badges did. That's pre-existing resolver behavior, not something this PR introduces — just worth keeping in mind when adding platforms.

CI is green. LGTM!

@gkhngyk
gkhngyk merged commit e27c19d into ansvisor:main Jul 10, 2026
4 checks passed
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.

feat(shopping): show provider logos instead of raw platform slugs in product tables

2 participants