Skip to content

feat(web): show engine icons in the fan-out queries table - #542

Merged
gkhngyk merged 1 commit into
mainfrom
feature/fanout-engine-icons
Jul 28, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
feature/fanout-engine-icons

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

On Prompts → Fan-out, the Engine column rendered engines as plain text badges while the Citations page (and the prompt-detail Top Sources card) show provider icons. This swaps the fan-out table (both the frequency view and the by-prompt expanded rows) to the shared PlatformsCell from web/src/components/citations/source-cells.tsx — AIProviderAvatar icons, deduplicated by provider — so engines render identically everywhere.

The engine values are source_platform slugs (chatgpt-web, perplexity-web, google-aio, …), all already handled by resolveAIProvider. The now-unused local platformLabel helper and its PLATFORM_LABELS import are removed.

Related issue

—

Type of change

  • feat — New feature

How to test

  1. Open Dashboard → Prompts → Fan-out tab (a brand with observed fan-out data).
  2. The Engine column shows provider icons (same avatars as the Citations page) instead of text badges, in both the frequency table and the expanded per-prompt rows.
  3. Rows with multiple engines from the same provider show a single deduplicated icon.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/)
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

The Engine column rendered text badges while the citations tables show
provider icons. Reuse the shared PlatformsCell (AIProviderAvatar dots,
deduped by provider) so engines render identically everywhere; drop the
now-unused local platformLabel helper.
@gkhngyk
gkhngyk merged commit b1e6342 into main Jul 28, 2026
4 checks passed
@gkhngyk
gkhngyk deleted the feature/fanout-engine-icons branch July 28, 2026 12:45
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.

1 participant