Repository navigation
feat(shopping): show provider logos in product tables - #401
Conversation
gkhngyk
left a comment
There was a problem hiding this comment.
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!
Summary
AIProviderAvatar,resolveAIProvider, andgetAIProviderDisplayNameimplementation for consistent UI and preserved fallback behavior for unknown providers.Closes #398.