fix(webui): use LongCat's official cat logo
This commit is contained in:
1 parent
a15656e6ac
commit
f7902d3e53
3 files changed
+13
-5
No files matched your search
@@ -171,8 +171,8 @@ const PROVIDER_BRANDS: Record<string, ProviderBrand> = {
|
||||
kagi: brand("kagi.com", "#FFB319", "K"),
|
||||
keenable: brand("keenable.ai", "#0EA5E9", "K"),
|
||||
lm_studio: brand("lmstudio.ai", "#111827", "LM"),
|
||||
longcat: brand("longcatai.org", "#4F8CFF", "LC", [
|
||||
"https://www.longcatai.org/favicon.svg",
|
||||
longcat: brand("longcat.ai", "#4F8CFF", "LC", [
|
||||
"https://s3plus.meituan.net/aigc-media-resources/longcat/yeqian-logo.svg",
|
||||
]),
|
||||
minimax: brand("minimax.io", "#111827", "MM"),
|
||||
mistral: brand("mistral.ai", "#FA520F", "M"),
|
||||
|
||||
@@ -61,8 +61,16 @@ describe("provider brand logos", () => {
|
||||
expect(providerBrand("zhipu")?.initials).toBe("Z");
|
||||
});
|
||||
|
||||
it("uses official first-party assets for LongCat, Step Fun, and Xiaomi MIMO", () => {
|
||||
expect(providerBrand("longcat")?.logoUrls[0]).toBe("https://www.longcatai.org/favicon.svg");
|
||||
it("uses LongCat's official cat logo and official domain for every fallback", () => {
|
||||
const logoUrl = "https://s3plus.meituan.net/aigc-media-resources/longcat/yeqian-logo.svg";
|
||||
expect(providerBrand("longcat")?.logoUrl).toBe(logoUrl);
|
||||
expect(providerBrand("longcat")?.logoUrls).toEqual([
|
||||
logoUrl,
|
||||
...browserSafeFaviconUrls("longcat.ai"),
|
||||
]);
|
||||
});
|
||||
|
||||
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");
|
||||
|
||||
@@ -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"])(
|
||||
it.each(["openai_codex", "anthropic", "deepseek", "gemini", "xai_grok", "longcat"])(
|
||||
"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