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
feat(layout): edge-to-edge shell for tabbed pages + AI nav folded into Settings
Adam Eivy6147ce4c6333
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 1b5f4f3901..1e396e6a06 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -26,6 +26,8 @@## Changed+- **Edge-to-edge layout for Media Gen, Writers Room, and Settings.** Pages that own a tab strip now follow the canonical full-width shell (header → edge-to-edge tab bar → padded content area) used by Calendar/Brain/etc., so the tab strip pins to the page edges instead of floating inside a centered `max-w-7xl` box. `Layout.jsx` also drops the `max-w-7xl mx-auto` cap on the remaining boxed pages, so on wide monitors content fills the available width (outer `p-4 md:p-6` is preserved, so non-tabbed pages still have breathing room). `MediaGen.jsx` and `Settings.jsx` were rewritten to the canonical shell; `WritersRoom.jsx` swapped its `h-[calc(100vh-3rem)]` viewport hack for `h-full` so the desktop layout no longer leaves a 3rem dead gap at the bottom.+- **Sidebar reorg: AI group folded into Settings.** The top-level `AI` sidebar group is gone — its two children (`Prompts`, `Providers`) now live alphabetically under `Settings`. `server/lib/navManifest.js` re-keys `nav.prompts` → `nav.settings.prompts` and `nav.providers` → `nav.settings.providers` (with `section: 'Settings'`) so ⌘K and the voice agent's `ui_navigate` resolver group them with the rest of Settings. Routes (`/prompts`, `/ai`) are unchanged — only the navigational grouping moved, so existing bookmarks keep working.- **Image Gen and Video Gen layouts tightened for above-the-fold density.** Form and preview now render side-by-side on `lg+` (`grid-cols-[3fr_2fr]`) instead of stacking; previews are capped (image `max-w-[360px]`, video `max-w-[420px]`) so they no longer dominate the viewport. Prompt + Negative Prompt sit in two columns on `md+`, parameter grids force three columns on `sm+`, the LTX mode switch and mode-specific image pickers are more compact, and section headers adopt a consistent `text-xs uppercase` style. Status text is hoisted into the Generate button row, video Download moved into the preview header for parity with image. Note: the codebase requires underscore (not comma) separators in Tailwind arbitrary grid template values (e.g. `lg:grid-cols-[3fr_2fr]`); the prior `[1fr,1.2fr]` was silently falling back to a single column.- **Worktree policy** clarified in `CLAUDE.md`: TUI sessions edit the main repo directly; worktrees are reserved for unattended CoS sub-agents.diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsxindex 81783f845d..49b9bd53e3 100644--- a/client/src/components/Layout.jsx+++ b/client/src/components/Layout.jsx@@ -97,14 +97,6 @@ const navItems = [{ to: '/review', label: 'Review Hub', icon: ClipboardList, single: true },{ to: '/city', label: 'CyberCity', icon: Building2, single: true },{ separator: true },- {- label: 'AI',- icon: Bot,- children: [- { to: '/prompts', label: 'Prompts', icon: FileText },- { to: '/ai', label: 'Providers', icon: Bot }- ]- },{ label: 'Apps', icon: Package, dynamic: 'apps', defaultTo: '/apps', children: [] },{label: 'Brain',@@ -260,6 +252,8 @@ const navItems = [{ to: '/settings/database', label: 'Database', icon: Database },{ to: '/settings/general', label: 'General', icon: Settings },{ to: '/settings/mortalloom', label: 'MortalLoom', icon: Activity },+ { to: '/prompts', label: 'Prompts', icon: FileText },+ { to: '/ai', label: 'Providers', icon: Bot },{ to: '/settings/telegram', label: 'Telegram', icon: MessageSquare },{ to: '/settings/voice', label: 'Voice', icon: Mic }]@@ -764,19 +758,20 @@ export default function Layout() {location.pathname.startsWith('/goals') ||location.pathname.startsWith('/insights') ||location.pathname.startsWith('/meatspace') ||+ location.pathname.startsWith('/media') ||location.pathname.startsWith('/messages') ||location.pathname.startsWith('/post') ||location.pathname === '/review' ||+ location.pathname.startsWith('/settings') ||location.pathname.startsWith('/wiki') ||+ location.pathname.startsWith('/writers-room') ||location.pathname.startsWith('/agents') ||location.pathname === '/shell' ||location.pathname.startsWith('/city') ||/^\/apps\/[^/]+/.test(location.pathname);- // Dashboard's grid widgets flex across the full content area; skip the max-w-7xl cap so wide monitors don't show huge side margins.- const isFluid = location.pathname === '/';return (<main id="main-content" className={`flex-1 ${isFullWidth ? 'overflow-hidden' : 'overflow-auto p-4 md:p-6'}`}>- {isFullWidth || isFluid ? <Outlet /> : <div className="max-w-7xl mx-auto"><Outlet /></div>}+ <Outlet /></main>);})()}diff --git a/client/src/pages/MediaGen.jsx b/client/src/pages/MediaGen.jsxindex 1d2a29683c..4c183fd1f3 100644--- a/client/src/pages/MediaGen.jsx+++ b/client/src/pages/MediaGen.jsx@@ -18,20 +18,20 @@ export default function MediaGen() {const activeTab = pathname.split('/')[2] || 'image';return (- <div className="space-y-4">- <div className="flex items-center gap-3">+ <div className="flex flex-col h-full">+ <div className="flex items-center gap-3 p-4 border-b border-port-border"><Layers className="w-6 h-6 text-port-accent" /><h1 className="text-2xl font-bold text-white">Media Gen</h1></div>- <div className="flex border-b border-port-border" role="tablist">+ <div className="flex border-b border-port-border overflow-x-auto" role="tablist">{TABS.map(({ id, label, icon: Icon }) => {const isActive = activeTab === id;return (<buttonkey={id}onClick={() => navigate(`/media/${id}`)}- className={`flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors ${+ className={`flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors whitespace-nowrap ${isActive? 'text-port-accent border-b-2 border-port-accent bg-port-accent/5': 'text-gray-400 hover:text-white hover:bg-port-card'@@ -46,7 +46,9 @@ export default function MediaGen() {})}</div>- <Outlet />+ <div className="flex-1 overflow-auto p-4">+ <Outlet />+ </div></div>);}diff --git a/client/src/pages/Settings.jsx b/client/src/pages/Settings.jsxindex 4001904a85..26179af2d7 100644--- a/client/src/pages/Settings.jsx+++ b/client/src/pages/Settings.jsx@@ -48,17 +48,21 @@ export default function Settings() {};return (- <div className="space-y-6">- <h1 className="text-2xl font-bold text-white">Settings</h1>+ <div className="flex flex-col h-full">+ <div className="flex items-center gap-3 p-4 border-b border-port-border">+ <h1 className="text-2xl font-bold text-white">Settings</h1>+ </div>- <div className="flex gap-1 border-b border-port-border">+ <div className="flex border-b border-port-border overflow-x-auto" role="tablist">{TABS.map(({ id, label }) => (<buttonkey={id}onClick={() => handleTabChange(id)}- className={`px-4 py-2 text-sm font-medium transition-colors border-b-2 -mb-px ${+ role="tab"+ aria-selected={activeTab === id}+ className={`px-4 py-3 text-sm font-medium transition-colors whitespace-nowrap border-b-2 -mb-px ${activeTab === id- ? 'text-port-accent border-port-accent'+ ? 'text-port-accent border-port-accent bg-port-accent/5': 'text-gray-400 border-transparent hover:text-white hover:border-port-border'}`}>@@ -67,7 +71,9 @@ export default function Settings() {))}</div>- {renderTabContent()}+ <div className="flex-1 overflow-auto p-4">+ {renderTabContent()}+ </div></div>);}diff --git a/client/src/pages/WritersRoom.jsx b/client/src/pages/WritersRoom.jsxindex 8b376344d4..9783696caf 100644--- a/client/src/pages/WritersRoom.jsx+++ b/client/src/pages/WritersRoom.jsx@@ -93,7 +93,7 @@ export default function WritersRoom() {};return (- <div className="flex flex-col h-[calc(100vh-3rem)]">+ <div className="flex flex-col h-full"><div className="flex items-center gap-3 px-4 py-3 border-b border-port-border bg-port-card"><NotebookPen className="w-5 h-5 text-port-accent" /><h1 className="text-xl font-bold text-white">Writers Room</h1>diff --git a/server/lib/navManifest.js b/server/lib/navManifest.jsindex 9455cb0f6a..5128c54877 100644--- a/server/lib/navManifest.js+++ b/server/lib/navManifest.js@@ -20,8 +20,8 @@ export const NAV_COMMANDS = [{ id: 'nav.media.models', path: '/media/models', label: 'Media Models', section: 'Create', aliases: ['media-models', 'image-models', 'video-models', 'huggingface', 'loras'], keywords: ['hf cache', 'lora', 'model storage', 'disk'] },{ id: 'nav.media.settings', path: '/media/image?settings=1', label: 'Media Gen Settings', section: 'Create', aliases: ['media-settings', 'image-gen-settings', 'sd-settings', 'video-gen-settings'] },{ id: 'nav.writers-room', path: '/writers-room', label: 'Writers Room', section: 'Create', aliases: ['writers-room', 'writersroom', 'writer', 'write', 'studio', 'novel'], keywords: ['prose', 'screenplay', 'story', 'draft', 'manuscript', 'literary', 'novel', 'short story'] },- { id: 'nav.prompts', path: '/prompts', label: 'Prompts', section: 'AI', aliases: ['prompts'] },- { id: 'nav.providers', path: '/ai', label: 'Providers', section: 'AI', aliases: ['providers', 'ai-providers'] },+ { id: 'nav.settings.prompts', path: '/prompts', label: 'Prompts', section: 'Settings', aliases: ['prompts'] },+ { id: 'nav.settings.providers', path: '/ai', label: 'Providers', section: 'Settings', aliases: ['providers', 'ai-providers'] },{ id: 'nav.brain.inbox', path: '/brain/inbox', label: 'Inbox', section: 'Brain', aliases: ['brain', 'brain-inbox', 'inbox'] },{ id: 'nav.brain.config', path: '/brain/config', label: 'Config', section: 'Brain', aliases: ['brain-config'] },