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
fix: highlight the active Code Animation workspace (#11010)
Adam Eivy732410d5fd21
diff --git a/client/src/components/ui/RouteTabsHeader.test.jsx b/client/src/components/ui/RouteTabsHeader.test.jsxindex 7a992630bf..6367b74d69 100644--- a/client/src/components/ui/RouteTabsHeader.test.jsx+++ b/client/src/components/ui/RouteTabsHeader.test.jsx@@ -32,5 +32,9 @@ describe('RouteTabsHeader', () => {const bar = screen.getByRole('tablist', { name: 'Demo sections' });expect(within(bar).getAllByRole('tab')[0].querySelector('.max-sm\\:sr-only')).toBeNull();+ expect(screen.getByRole('tab', { selected: true }).getAttribute('aria-current')).toBe('page');+ for (const tab of screen.getAllByRole('tab', { selected: false })) {+ expect(tab.hasAttribute('aria-current')).toBe(false);+ }});});diff --git a/client/src/components/ui/TabPills.jsx b/client/src/components/ui/TabPills.jsxindex 3812cf12e9..c8c5733e17 100644--- a/client/src/components/ui/TabPills.jsx+++ b/client/src/components/ui/TabPills.jsx@@ -239,6 +239,7 @@ export default function TabPills({type="button"role={isFilter ? undefined : 'tab'}aria-selected={isFilter ? undefined : active}+ aria-current={!isFilter && active && t.to ? 'page' : undefined}aria-pressed={isFilter ? active : undefined}aria-controls={!isFilter && active && controlsIdPrefix ? `${controlsIdPrefix}-${t.id}` : undefined}id={!isFilter && controlsIdPrefix ? `tab-${t.id}` : undefined}@@ -294,6 +295,7 @@ export default function TabPills({type="button"role="tab"aria-selected={active}+ aria-current={active && t.to ? 'page' : undefined}aria-controls={active && controlsIdPrefix ? `${controlsIdPrefix}-${t.id}` : undefined}id={controlsIdPrefix ? `tab-${t.id}` : undefined}ref={(node) => { tabRefs.current[index] = node; }}diff --git a/client/src/pages/CodeAnimation.jsx b/client/src/pages/CodeAnimation.jsxindex 4d4f673895..5d2148a847 100644--- a/client/src/pages/CodeAnimation.jsx+++ b/client/src/pages/CodeAnimation.jsx@@ -2,6 +2,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';import { AlertTriangle, CheckCircle2, Clock3, Copy, FileCode2, Film, Globe, ImagePlus, LoaderCircle, Music2, PenLine, Sparkles, Wand2, X } from 'lucide-react';import { Link, useLocation, useNavigate, useParams, useSearchParams } from 'react-router';import PageHeader from '../components/PageHeader';+import RouteTabsHeader from '../components/ui/RouteTabsHeader';import ProviderModelSelector from '../components/ProviderModelSelector';import AlbumTrackPicker from '../components/music/AlbumTrackPicker';import CodeAnimationPreview from '../components/codeAnimation/CodeAnimationPreview';@@ -908,10 +909,14 @@ export default function CodeAnimation() {subtitle="Prompt an LLM to code an animated film, with no assets, in a universe's style, then preview it and record it to video."/>- <nav aria-label="Animation mode" className="flex shrink-0 flex-wrap gap-2 border-b border-port-border px-4 py-2">- <Link to="/code-animation" className={buttonSecondary} aria-current={!production ? 'page' : undefined}>Fast HTML</Link>- <Link to="/code-animation/production" className={buttonSecondary} aria-current={production ? 'page' : undefined}>Production</Link>- </nav>+ <RouteTabsHeader+ ariaLabel="Animation mode"+ activeTab={production ? 'production' : 'fast'}+ tabs={[+ { id: 'fast', label: 'Fast HTML', to: '/code-animation', icon: FileCode2 },+ { id: 'production', label: 'Production', to: '/code-animation/production', icon: Film },+ ]}+ /><div className="flex-1 min-h-0 overflow-auto p-4 md:p-6"><div className="mx-auto max-w-7xl">{production ? <ProductionProjects /> : <FastCodeAnimation />}