Skip to content

Commit 80e4075

Browse files
authored
Merge pull request #1074 from Wibias/fix/gui-provider-icon-fixes
fix(gui): use official brand marks for commandcode and openai icons
2 parents 0e92714 + b143984 commit 80e4075

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading

‎gui/src/provider-icons.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const PROVIDER_ICON_ALIASES: Record<string, string> = {
99
"cloudflare-workers-ai": "cloudflare-ai-gateway-color.svg",
1010
cline: "cline-color.svg",
1111
"cline-pass": "cline-color.svg",
12+
commandcode: "commandcode-color.svg",
1213
cursor: "cursor-color.svg",
1314
deepseek: "deepseek-color.svg",
1415
firepass: "firepass-color.svg",
@@ -63,6 +64,7 @@ const PROVIDER_DISPLAY_NAMES: Record<string, string> = {
6364
"cloudflare-workers-ai": "Cloudflare Workers AI",
6465
cline: "Cline",
6566
"cline-pass": "ClinePass",
67+
commandcode: "Command Code",
6668
nvidia: "NVIDIA NIM",
6769
ollama: "Ollama",
6870
"ollama-cloud": "Ollama Cloud",

‎tests/provider-workspace-data.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
import {
2626
formatProviderDisplayName,
2727
isCatalogProviderId,
28+
providerIconSrc,
2829
} from "../gui/src/provider-icons";
2930
import { en } from "../gui/src/i18n/en";
3031
import { interpolate, type TFn } from "../gui/src/i18n/shared";
@@ -456,6 +457,11 @@ describe("provider-icons", () => {
456457
expect(isCatalogProviderId("openai-multi")).toBe(false);
457458
expect(isCatalogProviderId("my-proxy")).toBe(false);
458459
});
460+
461+
test("commandcode maps to its own brand mark and display name", () => {
462+
expect(providerIconSrc("commandcode")).toBe("/provider-icons/commandcode-color.svg");
463+
expect(formatProviderDisplayName("commandcode", englishT)).toBe("Command Code");
464+
});
459465
});
460466

461467
describe("add-provider catalog presets (WP050a)", () => {

0 commit comments

Comments
 (0)