Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: extract shared CoSAvatarFrame wrapper with aria-label
Adam Eivyf94521036572
diff --git a/client/src/components/cos/CoSAvatarFrame.jsx b/client/src/components/cos/CoSAvatarFrame.jsxnew file mode 100644index 0000000000..ab854937f8--- /dev/null+++ b/client/src/components/cos/CoSAvatarFrame.jsx@@ -0,0 +1,12 @@+export default function CoSAvatarFrame({ children, label = 'Interactive 3D avatar. Drag to rotate.' }) {+ return (+ <div+ className="relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] cursor-grab active:cursor-grabbing touch-none"+ title="Drag to rotate"+ role="img"+ aria-label={label}+ >+ {children}+ </div>+ );+}diff --git a/client/src/components/cos/CyberCoSAvatar.jsx b/client/src/components/cos/CyberCoSAvatar.jsxindex a2aeddd0de..30efab5496 100644--- a/client/src/components/cos/CyberCoSAvatar.jsx+++ b/client/src/components/cos/CyberCoSAvatar.jsx@@ -4,6 +4,7 @@ import { Float, MeshDistortMaterial, Sparkles } from '@react-three/drei';import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';+import CoSAvatarFrame from './CoSAvatarFrame';// Holographic wireframe skull/head geometryfunction CyberHead({ color, state, speaking }) {@@ -434,7 +435,7 @@ function Scene({ state, speaking }) {export default function CyberCoSAvatar({ state, speaking }) {return (- <div className="relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] cursor-grab active:cursor-grabbing touch-none" title="Drag to rotate">+ <CoSAvatarFrame label="Cyber 3D avatar. Drag to rotate."><Canvascamera={{ position: [0, 0, 3.5], fov: 45 }}style={{ background: 'transparent' }}@@ -442,6 +443,6 @@ export default function CyberCoSAvatar({ state, speaking }) {><Scene state={state} speaking={speaking} /></Canvas>- </div>+ </CoSAvatarFrame>);}diff --git a/client/src/components/cos/EsotericCoSAvatar.jsx b/client/src/components/cos/EsotericCoSAvatar.jsxindex 121c6be44d..bf249e9c2b 100644--- a/client/src/components/cos/EsotericCoSAvatar.jsx+++ b/client/src/components/cos/EsotericCoSAvatar.jsx@@ -4,6 +4,7 @@ import { Float, MeshDistortMaterial, Sparkles, Stars } from '@react-three/drei';import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';+import CoSAvatarFrame from './CoSAvatarFrame';// Central mystical core - an artifact of unknown originfunction EsotericCore({ color, state, speaking }) {@@ -201,7 +202,7 @@ function Scene({ state, speaking }) {export default function EsotericCoSAvatar({ state, speaking }) {return (- <div className="relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] cursor-grab active:cursor-grabbing touch-none" title="Drag to rotate">+ <CoSAvatarFrame label="Esoteric 3D avatar. Drag to rotate."><Canvascamera={{ position: [0, 0, 5], fov: 45 }}style={{ background: 'transparent' }}@@ -209,6 +210,6 @@ export default function EsotericCoSAvatar({ state, speaking }) {><Scene state={state} speaking={speaking} /></Canvas>- </div>+ </CoSAvatarFrame>);}diff --git a/client/src/components/cos/MuseCoSAvatar.jsx b/client/src/components/cos/MuseCoSAvatar.jsxindex 8a161e2c4a..f96fbc6226 100644--- a/client/src/components/cos/MuseCoSAvatar.jsx+++ b/client/src/components/cos/MuseCoSAvatar.jsx@@ -4,6 +4,7 @@ import { useGLTF, Sparkles } from '@react-three/drei';import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';+import CoSAvatarFrame from './CoSAvatarFrame';const MODEL_URL = '/api/avatar/model.glb';@@ -184,7 +185,7 @@ export default function MuseCoSAvatar({ state, speaking }) {if (!modelPresent) return <MissingModelHint />;return (- <div className="relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] cursor-grab active:cursor-grabbing touch-none" title="Drag to rotate">+ <CoSAvatarFrame label="Muse 3D avatar. Drag to rotate."><Canvascamera={{ position: [0, 0, 3.3], fov: 45 }}style={{ background: 'transparent' }}@@ -194,7 +195,7 @@ export default function MuseCoSAvatar({ state, speaking }) {<Scene state={state} speaking={speaking} /></Suspense></Canvas>- </div>+ </CoSAvatarFrame>);}diff --git a/client/src/components/cos/NexusCoSAvatar.jsx b/client/src/components/cos/NexusCoSAvatar.jsxindex a6c37408e6..8ada0a4ca0 100644--- a/client/src/components/cos/NexusCoSAvatar.jsx+++ b/client/src/components/cos/NexusCoSAvatar.jsx@@ -4,6 +4,7 @@ import { Float, MeshDistortMaterial, Sparkles } from '@react-three/drei';import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';+import CoSAvatarFrame from './CoSAvatarFrame';// Central brain-like neural corefunction NeuralCore({ color, state, speaking }) {@@ -367,7 +368,7 @@ function Scene({ state, speaking }) {export default function NexusCoSAvatar({ state, speaking }) {return (- <div className="relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] cursor-grab active:cursor-grabbing touch-none" title="Drag to rotate">+ <CoSAvatarFrame label="Nexus 3D avatar. Drag to rotate."><Canvascamera={{ position: [0, 0.2, 3.5], fov: 45 }}style={{ background: 'transparent' }}@@ -375,6 +376,6 @@ export default function NexusCoSAvatar({ state, speaking }) {><Scene state={state} speaking={speaking} /></Canvas>- </div>+ </CoSAvatarFrame>);}diff --git a/client/src/components/cos/SigilCoSAvatar.jsx b/client/src/components/cos/SigilCoSAvatar.jsxindex e3c38bd124..fdc4c0eb04 100644--- a/client/src/components/cos/SigilCoSAvatar.jsx+++ b/client/src/components/cos/SigilCoSAvatar.jsx@@ -4,6 +4,7 @@ import { Float, MeshDistortMaterial, Sparkles } from '@react-three/drei';import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';+import CoSAvatarFrame from './CoSAvatarFrame';function SigilCore({ color, state, speaking }) {const coreRef = useRef();@@ -282,7 +283,7 @@ function Scene({ state, speaking }) {export default function SigilCoSAvatar({ state, speaking }) {return (- <div className="relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] cursor-grab active:cursor-grabbing touch-none" title="Drag to rotate">+ <CoSAvatarFrame label="Sigil 3D avatar. Drag to rotate."><Canvascamera={{ position: [0, 0.1, 3.7], fov: 45 }}style={{ background: 'transparent' }}@@ -290,7 +291,7 @@ export default function SigilCoSAvatar({ state, speaking }) {><Scene state={state} speaking={speaking} /></Canvas>- </div>+ </CoSAvatarFrame>);}