AI-powered virtual executive team — a single coherent executive persona backed by 8 specialist agents (FastAPI + Next.js).
feat(ui): redraw the Executive's mark as the Council Ring (#461)
Rufus35808c2b3645
diff --git a/docs/assets/chat-avatar.svg b/docs/assets/chat-avatar.svgindex 600e72cf..86feb085 100644--- a/docs/assets/chat-avatar.svg+++ b/docs/assets/chat-avatar.svg@@ -1,14 +1,8 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">- <!-- Background: brand surface.900 -->- <rect width="256" height="256" rx="48" fill="#111113"/>- <!-- "OE" initials in brand indigo accent -->- <text- x="128"- y="155"- font-family="Inter, ui-sans-serif, system-ui, sans-serif"- font-size="96"- font-weight="600"- text-anchor="middle"- fill="#818cf8"- >OE</text>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="256" height="256">+ <!-- The Council mark: the Executive at the centre, its nine specialists on a+ ring around it, white on the brand indigo (indigo-600). Same drawing as+ packages/ui/src/components/BrandMark.tsx and packages/ui/src/app/icon.svg. -->+ <defs><mask id="r" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48"><rect width="48" height="48" fill="#fff"/><g fill="#000"><circle cx="24" cy="10" r="3.8"/><circle cx="33" cy="13.28" r="3.8"/><circle cx="37.79" cy="21.57" r="3.8"/><circle cx="36.12" cy="31" r="3.8"/><circle cx="28.79" cy="37.16" r="3.8"/><circle cx="19.21" cy="37.16" r="3.8"/><circle cx="11.88" cy="31" r="3.8"/><circle cx="10.21" cy="21.57" r="3.8"/><circle cx="15" cy="13.28" r="3.8"/></g></mask></defs>+ <rect width="48" height="48" rx="12" fill="#4f46e5"/>+ <circle cx="24" cy="24" r="14" fill="none" stroke="#fff" stroke-width="2.2" stroke-opacity=".85" mask="url(#r)"/><g fill="#fff"><circle cx="24" cy="10" r="2.9"/><circle cx="33" cy="13.28" r="2.9"/><circle cx="37.79" cy="21.57" r="2.9"/><circle cx="36.12" cy="31" r="2.9"/><circle cx="28.79" cy="37.16" r="2.9"/><circle cx="19.21" cy="37.16" r="2.9"/><circle cx="11.88" cy="31" r="2.9"/><circle cx="10.21" cy="21.57" r="2.9"/><circle cx="15" cy="13.28" r="2.9"/><circle cx="24" cy="24" r="6"/></g></svg>diff --git a/packages/ui/src/app/globals.css b/packages/ui/src/app/globals.cssindex 1ac7c09c..77c044fe 100644--- a/packages/ui/src/app/globals.css+++ b/packages/ui/src/app/globals.css@@ -113,10 +113,10 @@transform-origin: center;}.council-consult .council-spoke {- stroke-width: 2.5;+ stroke-width: 2;stroke-linecap: round;- stroke-dasharray: 18;- stroke-dashoffset: 18;+ stroke-dasharray: 14;+ stroke-dashoffset: 14;opacity: 0;animation: council-spoke 3.6s ease-out infinite both;}@@ -127,7 +127,7 @@animation: council-core 3.6s ease-in-out infinite both;}@keyframes council-spoke {- 0% { stroke-dashoffset: 18; opacity: 0.85; }+ 0% { stroke-dashoffset: 14; opacity: 0.85; }14%, 62% { stroke-dashoffset: 0; opacity: 0.85; }80%, 100% { stroke-dashoffset: 0; opacity: 0; }}diff --git a/packages/ui/src/app/icon.svg b/packages/ui/src/app/icon.svgindex baa9d435..959afcae 100644--- a/packages/ui/src/app/icon.svg+++ b/packages/ui/src/app/icon.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#6366f1"/><stop offset="1" stop-color="#7c3aed"/></linearGradient></defs><rect width="48" height="48" rx="11" fill="url(#g)"/><g fill="#fff" transform="translate(7.2 7.2) scale(.7)"><circle cx="24" cy="24" r="7.5"/><circle cx="24" cy="6.5" r="4"/><circle cx="40.6" cy="18.6" r="4"/><circle cx="34.3" cy="38.2" r="4"/><circle cx="13.7" cy="38.2" r="4"/><circle cx="7.4" cy="18.6" r="4"/></g></svg>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><defs><mask id="r" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48"><rect width="48" height="48" fill="#fff"/><g fill="#000"><circle cx="24" cy="10" r="3.8"/><circle cx="33" cy="13.28" r="3.8"/><circle cx="37.79" cy="21.57" r="3.8"/><circle cx="36.12" cy="31" r="3.8"/><circle cx="28.79" cy="37.16" r="3.8"/><circle cx="19.21" cy="37.16" r="3.8"/><circle cx="11.88" cy="31" r="3.8"/><circle cx="10.21" cy="21.57" r="3.8"/><circle cx="15" cy="13.28" r="3.8"/></g></mask></defs><rect width="48" height="48" rx="12" fill="#4f46e5"/><circle cx="24" cy="24" r="14" fill="none" stroke="#fff" stroke-width="2.2" stroke-opacity=".85" mask="url(#r)"/><g fill="#fff"><circle cx="24" cy="10" r="2.9"/><circle cx="33" cy="13.28" r="2.9"/><circle cx="37.79" cy="21.57" r="2.9"/><circle cx="36.12" cy="31" r="2.9"/><circle cx="28.79" cy="37.16" r="2.9"/><circle cx="19.21" cy="37.16" r="2.9"/><circle cx="11.88" cy="31" r="2.9"/><circle cx="10.21" cy="21.57" r="2.9"/><circle cx="15" cy="13.28" r="2.9"/><circle cx="24" cy="24" r="6"/></g></svg>diff --git a/packages/ui/src/components/BrandMark.tsx b/packages/ui/src/components/BrandMark.tsxindex 1f161552..9c570038 100644--- a/packages/ui/src/components/BrandMark.tsx+++ b/packages/ui/src/components/BrandMark.tsx@@ -1,28 +1,37 @@+import { useId } from "react";+type BrandMarkSize = "sm" | "md" | "lg";const BOX_CLASSES: Record<BrandMarkSize, string> = {- sm: "w-7 h-7 rounded-lg bg-gradient-to-br from-indigo-500 to-violet-600 flex items-center justify-center shadow-lg shadow-indigo-500/20",- md: "w-7 h-7 rounded-full bg-gradient-to-br from-indigo-500 to-violet-600 flex items-center justify-center shadow-lg shadow-indigo-500/20",- lg: "w-12 h-12 rounded-2xl bg-gradient-to-br from-indigo-500 to-violet-600 flex items-center justify-center shadow-xl shadow-indigo-500/25",+ sm: "w-7 h-7 rounded-lg bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/20",+ md: "w-7 h-7 rounded-full bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/20",+ lg: "w-12 h-12 rounded-2xl bg-indigo-600 flex items-center justify-center shadow-xl shadow-indigo-500/25",};const MARK_CLASSES: Record<BrandMarkSize, string> = {- sm: "w-[18px] h-[18px] text-white",- md: "w-4 h-4 text-white",- lg: "w-8 h-8 text-white",+ sm: "w-7 h-7 text-white",+ md: "w-7 h-7 text-white",+ lg: "w-12 h-12 text-white",};-// The five specialists' seats around the Executive at (24, 24).+// The nine specialists' seats, on a ring of radius 14 around the Executive at+// (24, 24), starting at twelve o'clock.const SEATS: ReadonlyArray<readonly [number, number]> = [- [24, 6.5],- [40.6, 18.6],- [34.3, 38.2],- [13.7, 38.2],- [7.4, 18.6],+ [24, 10],+ [33, 13.28],+ [37.79, 21.57],+ [36.12, 31],+ [28.79, 37.16],+ [19.21, 37.16],+ [11.88, 31],+ [10.21, 21.57],+ [15, 13.28],];/**- * The Council mark alone: the Executive in the middle, five specialists around it.+ * The Council mark alone: the Executive in the middle, its nine specialists+ * seated on a ring around it. The ring breaks around each seat (a mask, so the+ * mark needs no tile behind it and works in any `currentColor`).** `consulting` plays the Consult animation (globals.css): a line reaches from* the Executive to each specialist in turn and lights it up, then lets go.@@ -36,6 +45,7 @@ export function CouncilMark({className?: string;consulting?: boolean;}) {+ const maskId = `council-ring-${useId()}`;return (<svgviewBox="0 0 48 48"@@ -43,6 +53,22 @@ export function CouncilMark({className={`${consulting ? "council-consult overflow-visible " : ""}${className}`}aria-hidden>+ <mask id={maskId} maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">+ <rect width="48" height="48" fill="#fff" />+ {SEATS.map(([x, y], i) => (+ <circle key={`m${i}`} cx={x} cy={y} r="3.8" fill="#000" />+ ))}+ </mask>+ <circle+ cx="24"+ cy="24"+ r="14"+ fill="none"+ stroke="currentColor"+ strokeWidth="2.2"+ opacity="0.85"+ mask={`url(#${maskId})`}+ />{consulting &&SEATS.map(([x, y], i) => (<line@@ -53,7 +79,7 @@ export function CouncilMark({x2={x}y2={y}stroke="currentColor"- style={{ animationDelay: `${i * 0.18}s` }}+ style={{ animationDelay: `${i * 0.12}s` }}/>))}{SEATS.map(([x, y], i) => (@@ -62,11 +88,11 @@ export function CouncilMark({className={consulting ? "council-seat" : undefined}cx={x}cy={y}- r="4"- style={consulting ? { animationDelay: `${i * 0.18 + 0.25}s` } : undefined}+ r="2.9"+ style={consulting ? { animationDelay: `${i * 0.12 + 0.2}s` } : undefined}/>))}- <circle className={consulting ? "council-core" : undefined} cx="24" cy="24" r="7.5" />+ <circle className={consulting ? "council-core" : undefined} cx="24" cy="24" r="6" /></svg>);}diff --git a/packages/ui/src/components/TurnStatusRow.tsx b/packages/ui/src/components/TurnStatusRow.tsxindex 1933ed7c..6acfa69e 100644--- a/packages/ui/src/components/TurnStatusRow.tsx+++ b/packages/ui/src/components/TurnStatusRow.tsx@@ -53,7 +53,7 @@ export default function TurnStatusRow({}) {return (<div className="flex items-center gap-2 flex-wrap" aria-label="Thinking">- {showMark && <CouncilMark consulting className="w-4 h-4 text-accent" />}+ {showMark && <CouncilMark consulting className="w-5 h-5 text-accent" />}{committeePhase ? (<CommitteePhaseIndicator phase={committeePhase} />) : status.label ? (