You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(shopping): show provider logos instead of raw platform slugs in product tables #398
On /dashboard/shopping, the Competitors tab (and the Own Products tab — they share the same table component) renders the platform column as raw scraper slugs in plain badges, e.g. copilot-web:
Meanwhile the Card-eligible Prompts tab on the same page already does this right (~line 589): it renders provider logos via AIProviderAvatar + resolveAIProvider(p), and its detail view (~line 654) pairs the avatar with getAIProviderDisplayName(...).
Same page, two different presentations of the same concept.
Proposal
Apply the card-eligible prompts tab's system to the product tables:
In ProductTable's platforms cell, replace the slug badges with AIProviderAvatar icons (resolveAIProvider(plat)), matching the ~line 589 pattern (h-5 w-5 border, wrapped in a small flex row).
In ProductAppearancesDrawer, replace the slug badge with the avatar + getAIProviderDisplayName(...) pair, matching the ~line 654 pattern.
The helpers are already imported in this file (lines 85–86), so no new imports beyond getAIProviderDisplayName if missing in scope.
Acceptance criteria
Competitors and Own Products tables show provider logos instead of raw slugs like copilot-web
The appearances drawer shows logo + human-readable provider name
Rendering matches the card-eligible prompts tab (same avatar component and sizing)
Unknown/unmapped platforms still render something sensible (whatever resolveAIProvider falls back to)
Activity