Skip to content

feat(dashboard): add provider logos with initial-avatar fallback - #250

Merged
actus7 merged 1 commit into
mainfrom
feat/provider-logos
Aug 25, 2026
Merged

feat(dashboard): add provider logos with initial-avatar fallback#250
actus7 merged 1 commit into
mainfrom
feat/provider-logos

Conversation

@actus7

@actus7 actus7 commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • ProviderAvatar renders each provider's official brand logo (public/providers/<id>.svg) when one is available, falling back to the existing hue-tinted initial otherwise — no call site changed, all 6 usages get logos automatically.
  • 27 logos sourced from @lobehub/icons-static-svg (MIT, devDependency, no runtime footprint), covering OpenAI, DeepSeek, Mistral, Groq, Cohere, GitHub Copilot, Ollama, OpenRouter, HuggingFace, Z.ai, Qwen, Cloudflare, NVIDIA, and more.
  • scripts/add-provider-logo.mjs documents/automates the process for adding a new provider's logo later.
  • Providers without a known brand asset (duckai, quillbot, puter, opengateway, commandcode, xiaomi*) keep the current initial+hue avatar unchanged.

Closes #249

Test plan

  • npx eslint on changed files — clean
  • npx tsc --noEmit — no new errors (pre-existing unrelated Prisma errors in server/lib/provider-connections.ts untouched)
  • npx vitest run components/dashboard/routing/provider-logos.test.ts — passing
  • Visually verified all 27 logos render correctly (screenshot review at avatar size)
  • Manual check in the running dashboard (not run — no local .env/DB configured in this environment)

ProviderAvatar now renders each provider's official brand logo
(public/providers/<id>.svg, sourced from @lobehub/icons-static-svg)
when one is available, falling back to the existing hue-tinted
initial for providers without one. scripts/add-provider-logo.mjs
documents the process for adding a new logo.

Closes #249
Copilot AI lite review requested due to automatic review settings August 25, 2026 13:34
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
modelhub Ready Ready Preview Aug 25, 2026 1:34pm

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added dependencies Dependency changes frontend Frontend changes tests Test changes labels Aug 25, 2026
@actus7
actus7 merged commit 00a67b3 into main Aug 25, 2026
12 checks passed
@actus7
actus7 deleted the feat/provider-logos branch August 25, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency changes frontend Frontend changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adicionar logos dos provedores (hoje mostra apenas a inicial do nome)

2 participants