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
@@ -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