fix(webui): use compact MiMo and Copilot brand marks
This commit is contained in:
1 parent
e45bedc560
commit
cd2410a55b
3 files changed
+12
-6
No files matched your search
@@ -166,7 +166,9 @@ const PROVIDER_BRANDS: Record<string, ProviderBrand> = {
|
||||
duckduckgo: brand("duckduckgo.com", "#DE5833", "DDG"),
|
||||
exa: { ...brand("exa.ai", "#5B5BF6", "E"), logoLayout: "tile" },
|
||||
gemini: brand("gemini.google.com", "#4285F4", "G"),
|
||||
github_copilot: brand("github.com", "#24292F", "GH"),
|
||||
github_copilot: brand("github.com", "#24292F", "GH", [
|
||||
"https://raw.githubusercontent.com/primer/octicons/main/icons/copilot-24.svg",
|
||||
]),
|
||||
groq: {
|
||||
...brand("groq.com", "#F55036", "GQ", ["https://groq.com/favicon.svg"]),
|
||||
logoLayout: "tile",
|
||||
@@ -209,7 +211,7 @@ const PROVIDER_BRANDS: Record<string, ProviderBrand> = {
|
||||
volcengine: brand("volcengine.com", "#1664FF", "VE"),
|
||||
vllm: brand("vllm.ai", "#2563EB", "VL"),
|
||||
xiaomi_mimo: brand("mimo.xiaomi.com", "#FF6900", "MI", [
|
||||
"https://mimo.xiaomi.com/mimo-v2-pro/assets/logo.svg",
|
||||
"https://cdn.cnbj1.fds.api.mi-img.com/aife/mimo-blog-fe/doc_build/mimo.ico",
|
||||
]),
|
||||
xai: brand("x.ai", "#111827", "xAI"),
|
||||
zhipu: {
|
||||
|
||||
@@ -73,9 +73,13 @@ describe("provider brand logos", () => {
|
||||
|
||||
it("uses official first-party assets for Step Fun and Xiaomi MIMO", () => {
|
||||
expect(providerBrand("stepfun")?.logoUrls[0]).toBe("https://www.stepfun.com/step_favicon.svg");
|
||||
expect(providerBrand("xiaomi_mimo")?.logoUrls[0]).toBe("https://mimo.xiaomi.com/mimo-v2-pro/assets/logo.svg");
|
||||
expect(providerBrand("mimo")?.logoUrls[0]).toBe("https://mimo.xiaomi.com/mimo-v2-pro/assets/logo.svg");
|
||||
expect(providerBrand("xiaomi")?.logoUrls[0]).toBe("https://mimo.xiaomi.com/mimo-v2-pro/assets/logo.svg");
|
||||
expect(providerBrand("xiaomi_mimo")?.logoUrls[0]).toBe("https://cdn.cnbj1.fds.api.mi-img.com/aife/mimo-blog-fe/doc_build/mimo.ico");
|
||||
expect(providerBrand("mimo")).toBe(providerBrand("xiaomi_mimo"));
|
||||
expect(providerBrand("xiaomi")).toBe(providerBrand("xiaomi_mimo"));
|
||||
});
|
||||
|
||||
it("uses the Copilot mark rather than the generic GitHub favicon", () => {
|
||||
expect(providerBrand("github_copilot")?.logoUrl).toBe("https://raw.githubusercontent.com/primer/octicons/main/icons/copilot-24.svg");
|
||||
});
|
||||
|
||||
it("keeps OpenRouter voice settings on the first-party brand domain", () => {
|
||||
|
||||
@@ -14,7 +14,7 @@ describe("settings provider icons", () => {
|
||||
expect(icon.className.split(/\s+/).some((value) => value.startsWith("border"))).toBe(false);
|
||||
}
|
||||
|
||||
it.each(["openai_codex", "anthropic", "deepseek", "gemini", "xai_grok", "longcat", "openrouter"])(
|
||||
it.each(["openai_codex", "anthropic", "deepseek", "gemini", "xai_grok", "longcat", "openrouter", "github_copilot", "xiaomi_mimo"])(
|
||||
"shows %s on a single white tile with a small inset after loading",
|
||||
(provider) => {
|
||||
const { container } = render(<ProviderIcon provider={provider} showBrandLogos />);
|
||||
|
||||
Reference in new issue
Block a user