Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat(gateway): the Gateway card carries the OpenCompany mark
trohitgff06c0c32043
diff --git a/client/src/assets/icons/index.test.ts b/client/src/assets/icons/index.test.tsindex d75ba1e8..a850bc12 100644--- a/client/src/assets/icons/index.test.ts+++ b/client/src/assets/icons/index.test.ts@@ -7,13 +7,17 @@* - unknown lucide names return null instead of an unrenderable value* - lobehub regression: `lobehub:Claude` still wires to the branded* library export+ * - `opencompany:mark` draws the app's own mark* - asset:* / data: / http: / emoji passthrough still behaves*/import { readFileSync, readdirSync, statSync } from 'node:fs';import { join } from 'node:path';+import * as React from 'react';+import { render } from '@testing-library/react';import { describe, it, expect } from 'vitest';+import { MARK_PATH } from '../../components/brand/geometry';import { resolveLibraryIcon, resolveIcon } from './index';/** Every `meta.json` under server/nodes, found without a glob dependency. */@@ -53,6 +57,16 @@ describe('resolveLibraryIcon', () => {expect(Icon).not.toBeNull();});+ it('draws the OpenCompany mark in the text colour for opencompany:mark only', () => {+ const Icon = resolveLibraryIcon('opencompany:mark');+ expect(Icon).not.toBeNull();+ const { container } = render(React.createElement(Icon!, { className: 'h-full w-full' }));+ const svg = container.querySelector('svg');+ expect(svg?.getAttribute('fill')).toBe('currentColor');+ expect(svg?.querySelector('path')?.getAttribute('d')).toBe(MARK_PATH);+ expect(resolveLibraryIcon('opencompany:logo')).toBeNull();+ });+/*** Cross-language contract. The backend lets a plugin point at a library* glyph from its own meta.json instead of vendoring an SVG, and nothingdiff --git a/client/src/assets/icons/index.ts b/client/src/assets/icons/index.tsindex 4b46ab17..0d6d5d87 100644--- a/client/src/assets/icons/index.ts+++ b/client/src/assets/icons/index.ts@@ -16,6 +16,8 @@* `ICON_LIBRARIES` below). `<brand>` is a* case-insensitive lookup. `.Color` variant* preferred, `.Avatar` fallback.+ * `opencompany:mark` → the app's own mark (components/brand), for+ * the connectors OpenCompany provides itself.* `data:...` → data-URI passthrough (inline SVG / base64).* `http(s)://...` → remote URL passthrough.* `/...` → absolute local URL passthrough.@@ -30,6 +32,7 @@ import * as React from 'react';import * as Lucide from 'lucide-react';import { API_CONFIG } from '../../config/api';+import { MARK_PATH, MARK_VIEWBOX } from '../../components/brand/geometry';// Deep imports of just the brand icons we expose via `lobehub:<brand>`.// A namespace import (`import * as Lobehub`) would re-evaluate the package// index, which re-exports antd-using feature modules (Editor / Dashboard /@@ -170,6 +173,15 @@ const LOBEHUB_BRANDS: Readonly<Record<string, any>> = {deepl: DeepL,};+// The app's own mark (components/brand/geometry.ts) as `opencompany:mark`:+// one path in the text colour, like the lucide glyphs.+const OpenCompanyMark: LibraryIcon = ({ className }) =>+ React.createElement(+ 'svg',+ { viewBox: MARK_VIEWBOX, fill: 'currentColor', className, 'aria-hidden': true, focusable: 'false' },+ React.createElement('path', { d: MARK_PATH }),+ );+const ICON_LIBRARIES: Readonly<Record<string, LibraryResolver>> = {lobehub: (brand) => {const entry = LOBEHUB_BRANDS[brand.toLowerCase()];@@ -199,6 +211,9 @@ const ICON_LIBRARIES: Readonly<Record<string, LibraryResolver>> = {if (entry && typeof entry === 'object' && '$$typeof' in entry) return entry;return null;},+ // Not a package: the app's own brand, for the connectors OpenCompany+ // provides itself (the Gateway card).+ opencompany: (name) => (name.toLowerCase() === 'mark' ? OpenCompanyMark : null),// Add `simpleicons` / other NPM icon packages here as needed:// simpleicons: (brand) => import('simple-icons').si[brand]?.svg ...};diff --git a/server/config/credential_providers.json b/server/config/credential_providers.jsonindex 4c86cc80..27314209 100644--- a/server/config/credential_providers.json+++ b/server/config/credential_providers.json@@ -124,7 +124,7 @@"category_label": "AI Providers","color": "dracula.purple","kind": "apiKey",- "icon_ref": "lucide:Sparkles",+ "icon_ref": "opencompany:mark","requires_setting": "gateway_enabled","ws": {"status": "gateway_status"