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: keep models navigation beside page content
[._.]/ Adam Eivy94095f6e7968
diff --git a/client/src/components/models/ModelsTabsHeader.jsx b/client/src/components/models/ModelsTabsHeader.jsxindex abc4f44a1c..100fdad0ea 100644--- a/client/src/components/models/ModelsTabsHeader.jsx+++ b/client/src/components/models/ModelsTabsHeader.jsx@@ -87,6 +87,21 @@ export function ModelsDesktopNavigator({ activeTab }) {);}+// Keep the collapsed-sidebar destination list beside the route's content.+// Legacy Models destinations render their own page shells, so this layout is+// shared with `/models` to keep the desktop navigation from becoming a tall+// block above the page body.+export function ModelsSectionLayout({ activeTab, children }) {+ return (+ <div className="flex h-full min-h-0 min-w-0 overflow-hidden">+ <ModelsDesktopNavigator activeTab={activeTab} />+ <div className="flex h-full min-h-0 min-w-0 flex-1 flex-col">+ {children}+ </div>+ </div>+ );+}+export default function ModelsTabsHeader({ activeTab, desktop = true }) {const { pathname } = useLocation();const resolvedActiveTab = activeTabForPath(pathname, activeTab);diff --git a/client/src/pages/AIProviders.jsx b/client/src/pages/AIProviders.jsxindex 7fed617fb7..b353e6a699 100644--- a/client/src/pages/AIProviders.jsx+++ b/client/src/pages/AIProviders.jsx@@ -15,7 +15,7 @@ import useLocalModels from '../hooks/useLocalModels';import { useAutoRefetch } from '../hooks/useAutoRefetch';import EmptyState from '../components/EmptyState';import Banner from '../components/ui/Banner';-import ModelsTabsHeader from '../components/models/ModelsTabsHeader';+import ModelsTabsHeader, { ModelsSectionLayout } from '../components/models/ModelsTabsHeader';import PageHeader from '../components/PageHeader';import PageSkeleton from '../components/ui/PageSkeleton';import OverflowMenu from '../components/ui/OverflowMenu';@@ -761,13 +761,13 @@ export default function AIProviders() {if (loading) {return (- <div className="flex flex-col h-full">+ <ModelsSectionLayout activeTab="providers"><PageHeader icon={Bot} title="AI Providers" />- <ModelsTabsHeader activeTab="providers" />- <div className="flex-1 overflow-auto p-4">+ <ModelsTabsHeader activeTab="providers" desktop={false} />+ <div className="min-h-0 min-w-0 flex-1 overflow-auto p-4"><PageSkeleton header="none" label="Loading providers" layout="grid" cards={4} /></div>- </div>+ </ModelsSectionLayout>);}@@ -820,15 +820,15 @@ export default function AIProviders() {) : null;return (- <div className="flex flex-col h-full">+ <ModelsSectionLayout activeTab="providers"><PageHeader icon={Bot} title="AI Providers" actions={headerActions} />- <ModelsTabsHeader activeTab="providers" />+ <ModelsTabsHeader activeTab="providers" desktop={false} /><div className="px-4 pt-3"><ProviderPageTabs activeTab={activeTab} /></div>- <div className={`flex-1 overflow-auto p-4 ${activeTab === 'presets' ? 'space-y-6' : ''}`}>+ <div className={`min-h-0 min-w-0 flex-1 overflow-auto p-4 ${activeTab === 'presets' ? 'space-y-6' : ''}`}>{activeTab === 'harnesses' && (<ProviderHarnessesTabselectedHarnessId={harnessId || null}@@ -1301,6 +1301,6 @@ export default function AIProviders() {? `${settingUpRuntime.actionLabel} — model weights are a multi-gigabyte download, so this can run for a long time.`: `${settingUpRuntime?.actionLabel || 'Setting up'} — this can take several minutes on a first install.`}/>- </div>+ </ModelsSectionLayout>);}diff --git a/client/src/pages/AIProviders.test.jsx b/client/src/pages/AIProviders.test.jsxindex 5a3c2281ac..ccd5300a5e 100644--- a/client/src/pages/AIProviders.test.jsx+++ b/client/src/pages/AIProviders.test.jsx@@ -73,6 +73,7 @@ vi.mock('../hooks/useLocalModels', () => ({}));vi.mock('../components/models/ModelsTabsHeader', () => ({default: ({ activeTab }) => <div data-testid="models-tabs-header" data-active-tab={activeTab} />,+ ModelsSectionLayout: ({ children }) => <>{children}</>,}));vi.mock('../components/install/RuntimeInstallModal', () => ({// `params` becomes the setup request's query string, so the test can assertdiff --git a/client/src/pages/LocalLlmPlayground.jsx b/client/src/pages/LocalLlmPlayground.jsxindex 9ce129bc9b..30a92807cc 100644--- a/client/src/pages/LocalLlmPlayground.jsx+++ b/client/src/pages/LocalLlmPlayground.jsx@@ -5,7 +5,7 @@ import { Link, useSearchParams } from 'react-router';import { ArrowLeft, ArrowRightLeft, Brain, Check, ChevronDown, Clock, Copy, Cpu, Gauge, MessageSquare, Play, RefreshCw, Send, TriangleAlert, X } from 'lucide-react';import BrailleSpinner from '../components/BrailleSpinner';import PlaygroundOutput from '../components/localLlm/PlaygroundOutput';-import ModelsTabsHeader from '../components/models/ModelsTabsHeader';+import ModelsTabsHeader, { ModelsSectionLayout } from '../components/models/ModelsTabsHeader';import CollapsibleSection from '../components/ui/CollapsibleSection';import toast from '../components/ui/Toast';import { copyToClipboard } from '../lib/clipboard';@@ -509,7 +509,7 @@ export default function LocalLlmPlayground() {};return (- <div className="flex flex-col h-full">+ <ModelsSectionLayout activeTab="playground"><div className="flex items-center justify-between gap-3 p-4 border-b border-port-border"><div className="flex items-center gap-3 min-w-0"><Link to="/models/llms" className="p-2 rounded-lg bg-port-card border border-port-border text-gray-400 hover:text-white" title={`Back to ${getNavPageForPath('/models/llms')?.breadcrumb || 'its management page'}`}>@@ -533,9 +533,9 @@ export default function LocalLlmPlayground() {{/* This page keeps its own `/local-llm/playground` path (it predates theModels section and lives in ⌘K history), so without the section's tabbar arriving here would strand the user outside it. */}- <ModelsTabsHeader activeTab="playground" />+ <ModelsTabsHeader activeTab="playground" desktop={false} />- <div className="flex-1 overflow-auto p-4 space-y-4">+ <div className="min-h-0 min-w-0 flex-1 overflow-auto p-4 space-y-4"><div className="grid grid-cols-1 xl:grid-cols-[320px_1fr] gap-4"><aside className="bg-port-card border border-port-border rounded-lg p-4 space-y-4">{/* One header slot holding both breakpoints' variants, so the@@ -802,6 +802,6 @@ export default function LocalLlmPlayground() {</main></div></div>- </div>+ </ModelsSectionLayout>);}diff --git a/client/src/pages/Models.jsx b/client/src/pages/Models.jsxindex 25d527a4f4..d30184fb10 100644--- a/client/src/pages/Models.jsx+++ b/client/src/pages/Models.jsx@@ -4,7 +4,7 @@ import { Cpu } from 'lucide-react';import { getSectionNavTabForPath } from '../../../server/lib/navManifest.js';import PageHeader from '../components/PageHeader';import PageSkeleton from '../components/ui/PageSkeleton';-import ModelsTabsHeader, { ModelsDesktopNavigator, TABS } from '../components/models/ModelsTabsHeader';+import ModelsTabsHeader, { ModelsSectionLayout, TABS } from '../components/models/ModelsTabsHeader';import { NAV_PRESENTATION } from '../lib/navPresentation.js';import Image3dRuntimes from '../components/models/Image3dRuntimes';import ModelStatusTab from '../components/models/ModelStatusTab';@@ -116,23 +116,20 @@ export default function Models({ fixedTab, fixedRecordId } = {}) {const DestinationIcon = NAV_PRESENTATION[destination?.to]?.icon || Cpu;return (- <div className="flex h-full min-w-0 overflow-hidden">- <ModelsDesktopNavigator activeTab={activeTab} />- <div className="flex flex-col h-full min-w-0 flex-1">- <PageHeader icon={DestinationIcon} title={destination?.label || 'Models'} />+ <ModelsSectionLayout activeTab={activeTab}>+ <PageHeader icon={DestinationIcon} title={destination?.label || 'Models'} />- <ModelsTabsHeader activeTab={activeTab} desktop={false} />+ <ModelsTabsHeader activeTab={activeTab} desktop={false} />- <div className="flex-1 min-w-0 overflow-auto p-4">- {/* Local boundary rather than the App-level one: a lazy tab must not blank- the section header and tab bar while its chunk loads. */}- <Suspense fallback={<PageSkeleton header="none" label="Loading models section" cards={3} sidebar={false} />}>- {DetailContent- ? <DetailContent recordId={recordId} />- : <TabContent view={recordId} taskView={taskView} assessmentKey={params.assessmentKey} />}- </Suspense>- </div>+ <div className="flex-1 min-w-0 overflow-auto p-4">+ {/* Local boundary rather than the App-level one: a lazy tab must not blank+ the section header and tab bar while its chunk loads. */}+ <Suspense fallback={<PageSkeleton header="none" label="Loading models section" cards={3} sidebar={false} />}>+ {DetailContent+ ? <DetailContent recordId={recordId} />+ : <TabContent view={recordId} taskView={taskView} assessmentKey={params.assessmentKey} />}+ </Suspense></div>- </div>+ </ModelsSectionLayout>);}diff --git a/client/src/pages/UsagePage.jsx b/client/src/pages/UsagePage.jsxindex bb16afefbc..f0f8c2b8ab 100644--- a/client/src/pages/UsagePage.jsx+++ b/client/src/pages/UsagePage.jsx@@ -12,7 +12,7 @@ import SubscriptionSavingsCard from '../components/usage/SubscriptionSavingsCardimport FleetUsageCard from '../components/usage/FleetUsageCard';import FreeTierUsageCard from '../components/usage/FreeTierUsageCard';import ProviderQuotaBody from '../components/usage/ProviderQuotaBody';-import ModelsTabsHeader from '../components/models/ModelsTabsHeader';+import ModelsTabsHeader, { ModelsSectionLayout } from '../components/models/ModelsTabsHeader';import { USAGE_PERIOD_OPTIONS, DEFAULT_USAGE_PERIOD } from '../lib/usagePeriods';@@ -899,11 +899,13 @@ function InternalUsageMetrics() {export function UsagePage() {return (- <div className="space-y-6">- <ModelsTabsHeader activeTab="usage" />- <ProviderQuotaSection />- <InternalUsageMetrics />- </div>+ <ModelsSectionLayout activeTab="usage">+ <ModelsTabsHeader activeTab="usage" desktop={false} />+ <div className="min-h-0 min-w-0 flex-1 space-y-6 overflow-auto">+ <ProviderQuotaSection />+ <InternalUsageMetrics />+ </div>+ </ModelsSectionLayout>);}