Move Composio, logo.dev and Antigravity keys into Settings
The three third-party keys were hardcoded or read from the environment. Operators now enter them in Settings > Integrations; they are stored encrypted in the app-wide integration_keys table (migration 058). An agent holding connector grants fails loudly when no Composio key is saved. The goal-review test no longer depends on absolute dates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1ea040c0f0
commit
56b0594f91
36 files changed
+430
-100
No files matched your search
@@ -2,17 +2,21 @@ import { describe, expect, test } from "vitest";
|
||||
import { connectorDisplayName, connectorLogoUrl } from "../../src/main/services/composio/connector-brands";
|
||||
|
||||
describe("connector brands", () => {
|
||||
test("known toolkits resolve a display name and a logo.dev URL", () => {
|
||||
test("known toolkits resolve a display name and a logo.dev URL with the saved token", () => {
|
||||
expect(connectorDisplayName("google_analytics")).toBe("Google Analytics");
|
||||
expect(connectorLogoUrl("google_analytics")).toBe(
|
||||
"https://img.logo.dev/analytics.google.com?token=***REMOVED***",
|
||||
expect(connectorLogoUrl("google_analytics", "pk_test")).toBe(
|
||||
"https://img.logo.dev/analytics.google.com?token=pk_test",
|
||||
);
|
||||
expect(connectorDisplayName("share_point")).toBe("SharePoint");
|
||||
expect(connectorLogoUrl("stripe")).toContain("img.logo.dev/stripe.com");
|
||||
expect(connectorLogoUrl("stripe", "pk_a&b")).toBe("https://img.logo.dev/stripe.com?token=pk_a%26b");
|
||||
});
|
||||
|
||||
test("no saved token means no logo URL", () => {
|
||||
expect(connectorLogoUrl("stripe", null)).toBeNull();
|
||||
});
|
||||
|
||||
test("unknown toolkits prettify the slug and carry no logo", () => {
|
||||
expect(connectorDisplayName("acme_billing")).toBe("Acme Billing");
|
||||
expect(connectorLogoUrl("acme_billing")).toBeNull();
|
||||
expect(connectorLogoUrl("acme_billing", "pk_test")).toBeNull();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user