Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat(brand): add the logo mark on its own as SVG and PNG
trohitg84ab921ad9fe
diff --git a/CLAUDE.md b/CLAUDE.mdindex b22f2309..b574402b 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -9,7 +9,7 @@ This is a React Flow-based workflow automation platform implementing n8n-inspire| Document | Description ||----------|-------------|-| **[Frontend Architecture](./docs-internal/frontend_architecture.md)** | Current frontend stack (React 19 + Vite + Tailwind v4 + shadcn/ui + Radix + RHF/zod + TanStack Query + Zustand). Tokens, primitives, forms, credentials exemplar, ownership boundary, `uiHints` catalogue. Brand: the Open Council mark and the outlined Newsreader wordmark are SVG paths in `client/src/components/brand/geometry.ts`, drawn in the text colour by `brand/Logo.tsx`; the favicon (`client/public/opencompany-icon.svg`) and the desktop icon (`desktop/build/icon.svg`) embed its `MARK_PATH` verbatim (`brand/__tests__/appIcons.test.ts`), so change the mark there and paste the new path into both. |+| **[Frontend Architecture](./docs-internal/frontend_architecture.md)** | Current frontend stack (React 19 + Vite + Tailwind v4 + shadcn/ui + Radix + RHF/zod + TanStack Query + Zustand). Tokens, primitives, forms, credentials exemplar, ownership boundary, `uiHints` catalogue. Brand: the Open Council mark and the outlined Newsreader wordmark are SVG paths in `client/src/components/brand/geometry.ts`, drawn in the text colour by `brand/Logo.tsx`; the favicon (`client/public/opencompany-icon.svg`), the desktop icon (`desktop/build/icon.svg`) and the icon-only logo SVGs in `media/brand/` embed its `MARK_PATH` verbatim (`brand/__tests__/appIcons.test.ts`), so change the mark there, paste the new path into each, and render the square PNGs beside those SVGs again (`media/brand/README.md` says how). || **[UI Migration Plan](./docs-internal/ARCHIVE/ui_migration_plan.md)** | *Archived.* antd → shadcn/ui migration completion log (Waves 1–10). Current state lives in [Frontend Architecture](./docs-internal/frontend_architecture.md) and [Theme System](./docs-internal/theme_system.md). || **[Temporal Cleanup & Resilience Plan (Waves 15-18)](./docs-internal/ARCHIVE/TEMPORAL_CLEANUP_AND_RESILIENCE_PLAN.md)** | *Archived — all four waves shipped.* 15 dead-code retirement (Redis-Streams branch in event_waiter, APScheduler cron stack, orphaned `connection_status` factory), 16 per-queue task routing (`TemporalWorkerPool`), 17 resilience hardening (cron `catchup_window`, SDK interceptors, `DEPLOYMENT_MODE`, periodic heartbeats; the one-shot LLM-step retry it records was later reverted to unlimited-with-backoff), 18 worker performance tuning. Current settings live in [Temporal Architecture](./docs-internal/TEMPORAL_ARCHITECTURE.md). || **[Node Allowlist](./docs-internal/node_allowlist.md)** | Single-config UI visibility — `server/config/node_allowlist.json` controls which nodes / credential categories / skill folders show in the UI. Five lists with two enforcement tiers (mode-gated allowlist + absolute blocklist). `useNodeAllowlist` hook exposes `isVisible` / `isBlocked` / `isAllowed` / `isCredentialCategoryDisabled` / `isSkillFolderDisabled`. Adding a new disabled domain = single JSON edit, no code change. |diff --git a/client/src/components/brand/__tests__/appIcons.test.ts b/client/src/components/brand/__tests__/appIcons.test.tsindex f49c83c7..dcbc469e 100644--- a/client/src/components/brand/__tests__/appIcons.test.ts+++ b/client/src/components/brand/__tests__/appIcons.test.ts@@ -1,18 +1,20 @@/*** The app icons draw the logo's mark: the favicon (black, white under a dark* colour scheme) and the desktop icon (white on a dark tile, rendered to- * build/icon.png by desktop/scripts/gen-icons.ts). Both embed MARK_PATH from- * ../geometry.ts verbatim; after changing the mark, paste the new path into- * both files.+ * build/icon.png by desktop/scripts/gen-icons.ts). So do the icon-only logo+ * files in media/brand/. All of them embed MARK_PATH from ../geometry.ts+ * verbatim; after changing the mark, paste the new path into each file and+ * render media/brand's PNGs again.*/import { readFileSync } from 'node:fs';import { join } from 'node:path';import { describe, expect, it } from 'vitest';-import { MARK_PATH } from '../geometry';+import { MARK_PATH, MARK_VIEWBOX } from '../geometry';const CLIENT_DIR = join(__dirname, '..', '..', '..', '..');const FAVICON = join(CLIENT_DIR, 'public', 'opencompany-icon.svg');const DESKTOP_ICON = join(CLIENT_DIR, '..', 'desktop', 'build', 'icon.svg');+const BRAND_DIR = join(CLIENT_DIR, '..', 'media', 'brand');describe('app icons', () => {it('the favicon draws the mark, black and white under a dark scheme', () => {@@ -25,6 +27,15 @@ describe('app icons', () => {expect(readFileSync(DESKTOP_ICON, 'utf-8')).toContain(`d="${MARK_PATH}"`);});+ it.each([+ ['opencompany-mark.svg', '#000'],+ ['opencompany-mark-white.svg', '#fff'],+ ])('the icon-only logo %s draws the mark in %s, cropped to its box', (file, fill) => {+ const svg = readFileSync(join(BRAND_DIR, file), 'utf-8');+ expect(svg).toContain(`viewBox="${MARK_VIEWBOX}"`);+ expect(svg).toContain(`<path fill="${fill}" d="${MARK_PATH}"/>`);+ });+it('the favicon is the page icon', () => {const html = readFileSync(join(CLIENT_DIR, 'index.html'), 'utf-8');expect(html).toContain('<link rel="icon" type="image/svg+xml" href="/opencompany-icon.svg" />');diff --git a/client/src/components/brand/geometry.ts b/client/src/components/brand/geometry.tsindex 944c69cd..0687b406 100644--- a/client/src/components/brand/geometry.ts+++ b/client/src/components/brand/geometry.ts@@ -12,9 +12,11 @@* (radius 62, 344 from the centre) and a crescent that sweeps clockwise* from it along the ring, 10 clear of the head.*- * The favicon (client/public/opencompany-icon.svg) and the desktop icon- * (desktop/build/icon.svg) embed MARK_PATH verbatim; brand/__tests__/appIcons- * holds them to it, so a change here means pasting the new MARK_PATH there.+ * The favicon (client/public/opencompany-icon.svg), the desktop icon+ * (desktop/build/icon.svg) and the icon-only logo files in media/brand/ embed+ * MARK_PATH verbatim; brand/__tests__/appIcons holds them to it, so a change+ * here means pasting the new MARK_PATH there and rendering media/brand's PNGs+ * again (media/brand/README.md says how).** The wordmark is "OpenCompany" set in Newsreader (SIL Open Font License 1.1,* The Newsreader Project Authors) at weight 650, optical size 18, kerned,diff --git a/docs-internal/design-system/readme.md b/docs-internal/design-system/readme.mdindex 03887580..20235840 100644--- a/docs-internal/design-system/readme.md+++ b/docs-internal/design-system/readme.md@@ -81,7 +81,7 @@ The app ships 12 visual themes (light, dark, Renaissance, Cyber, Edo, Steampunk## Caveats- **Fonts substituted:** Geist served from Google Fonts instead of the app's bundled `@fontsource-variable/geist` (same typeface, different delivery). Drop real `.woff2` files into `tokens/` + add `@font-face` if pixel-exact metrics matter.-- **Logo:** the Open Council mark and the outlined Newsreader wordmark live in the app as SVG paths (`client/src/components/brand/geometry.ts`); the wordmark card copies them and draws them in `--fg-default`, as the app does (black on light, white on dark). The favicon and the desktop icon embed the same mark path. The README hero is still a GitHub user-attachment.+- **Logo:** the Open Council mark and the outlined Newsreader wordmark live in the app as SVG paths (`client/src/components/brand/geometry.ts`); the wordmark card copies them and draws them in `--fg-default`, as the app does (black on light, white on dark). The favicon, the desktop icon and the icon-only logo files in `media/brand/` (SVGs, plus square PNG renders) use the same mark path. The README hero is still a GitHub user-attachment.- opencompany.sh marketing site isn't in the repo; no marketing UI kit was invented.- The app's 10 themed skins are analyzed in `guidelines/THEMES.md` (token contract, per-theme matrix, porting recipe) with the authoritative sources in `client/src/themes/` — but only light/dark are encoded as live token scopes here. Ask to port a skin (e.g. Cyber) into `tokens/` if you want it usable.- **Motion** is documented in `guidelines/ANIMATIONS.md` and encoded in `tokens/animations.css` (per-theme `--dur`/`--ease`/`--motion-style` scopes + signature keyframes for all 12 themes). Live demo: `guidelines/animations-all-themes.html`.diff --git a/docs-internal/frontend_architecture.md b/docs-internal/frontend_architecture.mdindex 6b7e8ff7..b6a16aa3 100644--- a/docs-internal/frontend_architecture.md+++ b/docs-internal/frontend_architecture.md@@ -142,7 +142,7 @@ client/src/│ ││ ├── icons/ # AI provider icons (SVG data URIs)│ ├── brand/Logo.tsx # OcMark / OcLogo (inline SVG in the text colour, intro + pulse)-│ ├── brand/geometry.ts # Mark + wordmark paths; the favicon and desktop icon embed MARK_PATH+│ ├── brand/geometry.ts # Mark + wordmark paths; the favicon, desktop icon and media/brand/ SVGs embed MARK_PATH│ ├── shell/ModeToggle.tsx # The Normal / Dev switch (editor toolbar + Home header)│ ├── auth/ # Login page + protected route│ ├── SquareNode.tsx, StartNode.tsx, TriggerNode.tsx, AIAgentNode.tsxdiff --git a/media/brand/README.md b/media/brand/README.mdnew file mode 100644index 00000000..097d8909--- /dev/null+++ b/media/brand/README.md@@ -0,0 +1,29 @@+# OpenCompany logo: the mark on its own++These files are the Open Council mark without the OpenCompany name. They are the same paths the app+draws, from [client/src/components/brand/geometry.ts](../../client/src/components/brand/geometry.ts).+The logo is one colour: black on light backgrounds, white on dark ones.++| File | What it is |+|---|---|+| [opencompany-mark.svg](./opencompany-mark.svg) | Black, transparent background, cropped to the mark (720 by 677) |+| [opencompany-mark-white.svg](./opencompany-mark-white.svg) | White, transparent background, cropped to the mark |+| [opencompany-mark.png](./opencompany-mark.png) | Black on transparent, 1024 by 1024 |+| [opencompany-mark-white.png](./opencompany-mark-white.png) | White on transparent, 1024 by 1024 |+| [opencompany-mark-on-white.png](./opencompany-mark-on-white.png) | Black on white, 1024 by 1024 |+| [opencompany-mark-on-black.png](./opencompany-mark-on-black.png) | White on black, 1024 by 1024 |++Use an SVG wherever it is accepted. The PNGs are squares for avatars and app listings: the mark is+720 px wide and centred on its box, so a circular crop does not touch it.++## Changing the mark++`client/src/components/brand/__tests__/appIcons.test.ts` checks that both SVGs carry `MARK_PATH`+and `MARK_VIEWBOX` from `geometry.ts`, so a new mark fails that test until its path is pasted into+them. Then render the PNGs again: put the path in an SVG with `viewBox="-512 -579.5 1024 1024"`,+`width` and `height` 1024 (that canvas is centred on the mark's box), add a `rect` filling the+canvas for the black and white backgrounds, and render it with sharp at density 384, resized to+1024, as `desktop/scripts/gen-icons.ts` renders the desktop icon.++The concept the mark was redrawn from, with the name below it, is+[output/imagegen/opencompany-selected/open-council-three.png](../../output/imagegen/opencompany-selected/open-council-three.png).diff --git a/media/brand/opencompany-mark-on-black.png b/media/brand/opencompany-mark-on-black.pngnew file mode 100644index 00000000..9bd5de13Binary files /dev/null and b/media/brand/opencompany-mark-on-black.png differdiff --git a/media/brand/opencompany-mark-on-white.png b/media/brand/opencompany-mark-on-white.pngnew file mode 100644index 00000000..677b11e7Binary files /dev/null and b/media/brand/opencompany-mark-on-white.png differdiff --git a/media/brand/opencompany-mark-white.png b/media/brand/opencompany-mark-white.pngnew file mode 100644index 00000000..0d79348dBinary files /dev/null and b/media/brand/opencompany-mark-white.png differdiff --git a/media/brand/opencompany-mark-white.svg b/media/brand/opencompany-mark-white.svgnew file mode 100644index 00000000..11bcf1e9--- /dev/null+++ b/media/brand/opencompany-mark-white.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-360 -406 720 677" width="720" height="677">+<path fill="#fff" d="M252.4 -55.9A258.5 258.5 0 1 0 252.4 55.9L172.8 38.3A177 177 0 1 1 172.8 -38.3ZM-91 0A91 91 0 1 0 91 0A91 91 0 1 0 -91 0ZM165.5 -220.5A192 192 0 0 0 67.4 -369.2A72 72 0 0 1 43.3 -286.6A141.5 141.5 0 0 1 165.5 -220.5ZM-62 -344A62 62 0 1 0 62 -344A62 62 0 1 0 -62 -344ZM108.2 253.6A192 192 0 0 0 286 243A72 72 0 0 1 226.5 180.8A141.5 141.5 0 0 1 108.2 253.6ZM235.9 172A62 62 0 1 0 359.9 172A62 62 0 1 0 235.9 172ZM-273.7 -33.1A192 192 0 0 0 -353.4 126.2A72 72 0 0 1 -269.8 105.7A141.5 141.5 0 0 1 -273.7 -33.1ZM-359.9 172A62 62 0 1 0 -235.9 172A62 62 0 1 0 -359.9 172Z"/>+</svg>diff --git a/media/brand/opencompany-mark.png b/media/brand/opencompany-mark.pngnew file mode 100644index 00000000..f65979deBinary files /dev/null and b/media/brand/opencompany-mark.png differdiff --git a/media/brand/opencompany-mark.svg b/media/brand/opencompany-mark.svgnew file mode 100644index 00000000..bbceb223--- /dev/null+++ b/media/brand/opencompany-mark.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-360 -406 720 677" width="720" height="677">+<path fill="#000" d="M252.4 -55.9A258.5 258.5 0 1 0 252.4 55.9L172.8 38.3A177 177 0 1 1 172.8 -38.3ZM-91 0A91 91 0 1 0 91 0A91 91 0 1 0 -91 0ZM165.5 -220.5A192 192 0 0 0 67.4 -369.2A72 72 0 0 1 43.3 -286.6A141.5 141.5 0 0 1 165.5 -220.5ZM-62 -344A62 62 0 1 0 62 -344A62 62 0 1 0 -62 -344ZM108.2 253.6A192 192 0 0 0 286 243A72 72 0 0 1 226.5 180.8A141.5 141.5 0 0 1 108.2 253.6ZM235.9 172A62 62 0 1 0 359.9 172A62 62 0 1 0 235.9 172ZM-273.7 -33.1A192 192 0 0 0 -353.4 126.2A72 72 0 0 1 -269.8 105.7A141.5 141.5 0 0 1 -273.7 -33.1ZM-359.9 172A62 62 0 1 0 -235.9 172A62 62 0 1 0 -359.9 172Z"/>+</svg>diff --git a/output/imagegen/opencompany-selected/README.md b/output/imagegen/opencompany-selected/README.mdindex 5ebfa550..74eeb0ff 100644--- a/output/imagegen/opencompany-selected/README.md+++ b/output/imagegen/opencompany-selected/README.md@@ -20,4 +20,5 @@ the mark measured from [open-council-three.png](./open-council-three.png) and mathree-fold symmetric, and the wordmark set in Newsreader (SIL Open Font License 1.1) andconverted to outlines. Both are one colour, the text colour: black on light themes, white ondark. The favicon and the desktop icon embed the same mark path; the Home orb is its 3D-version. This PNG stays here as the reference.+version. This PNG stays here as the reference. The mark on its own, without the name, is in+[media/brand](../../../media/brand/) as SVG and PNG.