Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

fix: restore connector brand icons

wytfa194fe830bc
diff --git a/src/renderer/index.html b/src/renderer/index.html
index bec6effe..0bd4e1fe 100644
--- a/src/renderer/index.html
+++ b/src/renderer/index.html
@@ -1562,6 +1562,8 @@
<script src="./modules/user-workspace.js"></script>
<script src="./modules/local-agents.js"></script>
<script src="./vendor/pinyin-firstletter/data.js"></script>
+ <!-- DOMPurify must load before utils.js so inline connector SVGs are sanitized, not disabled. -->
+ <script src="./vendor/dompurify/purify.min.js"></script>
<script src="./modules/pinyin-firstletter.js"></script>
<script src="./modules/agents.js"></script>
<script src="./modules/auto-title.js"></script>
diff --git a/test/renderer/connector-icons.test.ts b/test/renderer/connector-icons.test.ts
new file mode 100644
index 00000000..7c979431
--- /dev/null
+++ b/test/renderer/connector-icons.test.ts
@@ -0,0 +1,26 @@
+import { describe, expect, it } from 'vitest';
+import * as fs from 'node:fs';
+import * as path from 'node:path';
+import { CONNECTOR_CATALOG } from '../../src/main/features/connectors/catalog';
+
+const root = path.join(__dirname, '../..');
+
+describe('connector brand icons', () => {
+ it('loads the vendored SVG sanitizer before renderer utilities', () => {
+ const indexHtml = fs.readFileSync(path.join(root, 'src/renderer/index.html'), 'utf8');
+ const purifier = '<script src="./vendor/dompurify/purify.min.js"></script>';
+ const utilities = '<script src="./modules/utils.js"></script>';
+
+ expect(fs.existsSync(path.join(root, 'src/renderer/vendor/dompurify/purify.min.js'))).toBe(true);
+ expect(indexHtml.indexOf(purifier)).toBeGreaterThanOrEqual(0);
+ expect(indexHtml.indexOf(purifier)).toBeLessThan(indexHtml.indexOf(utilities));
+ });
+
+ it('ships an inline SVG for every public connector card', () => {
+ const missing = CONNECTOR_CATALOG
+ .filter((entry) => !String(entry.icon_svg || '').trim().startsWith('<svg'))
+ .map((entry) => entry.id);
+
+ expect(missing).toEqual([]);
+ });
+});