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: stop seven pages nesting a second main landmark in the app shell (#9163)
[._.]/ Adam Eivybf5212bfe1ec
diff --git a/client/src/a11yConventions.test.js b/client/src/a11yConventions.test.jsindex 6566502fa1..7dc63692f5 100644--- a/client/src/a11yConventions.test.js+++ b/client/src/a11yConventions.test.js@@ -4364,4 +4364,18 @@ function B() { const sensors = useSensors(useSensor(PointerSensor)); return <Dnd}expect(offenders, `Interactive element inside a CollapsibleSection label — pass it as headerActions so it sits beside the toggle button, not inside it:\n${offenders.join('\n')}`).toEqual([]);});++ it('renders exactly one <main> landmark — the app shell owns it (#9163)', () => {+ // Layout.jsx renders the skip-link target <main id="main-content">; a page+ // rendering its own <main> nests a second landmark inside it (WCAG 1.3.1).+ // Layout-free entry pages own their <main>.+ const OWN_MAIN = new Set(['src/components/Layout.jsx', 'src/pages/EidoverseGuest.jsx', 'src/pages/FableLoomHostedJoin.jsx']);+ const offenders = [];+ for (const file of trackedJsxFiles()) {+ if (OWN_MAIN.has(file.replace(/^.*?(src\/)/, '$1'))) continue;+ const src = maskedSourceOf(file);+ for (const node of forEachOpeningTag(src, 'main')) offenders.push(`${file}:${lineOf(src, node.index)}`);+ }+ expect(offenders, `Nested <main> — use <section> (the app shell's <main id="main-content"> is the only landmark):\n${offenders.join('\n')}`).toEqual([]);+ });});diff --git a/client/src/pages/Ask.jsx b/client/src/pages/Ask.jsxindex 40f0124dd6..f1a3660312 100644--- a/client/src/pages/Ask.jsx+++ b/client/src/pages/Ask.jsx@@ -643,7 +643,7 @@ export default function Ask() {streaming={streaming}/>- <main className="flex-1 flex flex-col min-w-0">+ <section className="flex-1 flex flex-col min-w-0"><div className="px-4 md:px-6 py-3 border-b border-port-border flex items-center gap-3 flex-wrap"><h1 className="text-lg font-semibold flex items-center gap-2"><MessageCircle size={18} /> Ask Yourself</h1><div className="flex items-center gap-1 ml-auto">@@ -729,7 +729,7 @@ export default function Ask() {</div><div className="mt-1.5 text-xs text-gray-500">{modKey}+Enter to send</div></form>- </main>+ </section></div>);}diff --git a/client/src/pages/Eidoverse.jsx b/client/src/pages/Eidoverse.jsxindex ac811389a1..0fceafaa25 100644--- a/client/src/pages/Eidoverse.jsx+++ b/client/src/pages/Eidoverse.jsx@@ -558,7 +558,7 @@ export default function Eidoverse() {const frameStage = (<>{phase === 'ready' && (- <main className="relative min-h-0 flex-1 overflow-hidden bg-port-bg">+ <section className="relative min-h-0 flex-1 overflow-hidden bg-port-bg"><iframeref={frame.frameRef}src={hostUrl}@@ -584,7 +584,7 @@ export default function Eidoverse() {</div></div>)}- </main>+ </section>)}{['loading', 'starting', 'connecting'].includes(phase) && (diff --git a/client/src/pages/LocalLlmPlayground.jsx b/client/src/pages/LocalLlmPlayground.jsxindex 40c17ab68e..4673d01d31 100644--- a/client/src/pages/LocalLlmPlayground.jsx+++ b/client/src/pages/LocalLlmPlayground.jsx@@ -650,7 +650,7 @@ export default function LocalLlmPlayground() {</div></aside>- <main className="space-y-4">+ <section className="space-y-4"><section className="bg-port-card border border-port-border rounded-lg p-4 space-y-4"><div className="flex items-center gap-2 flex-wrap">{[@@ -799,7 +799,7 @@ export default function LocalLlmPlayground() {)}</section>)}- </main>+ </section></div></div></ModelsSectionLayout>diff --git a/client/src/pages/StackerNews.jsx b/client/src/pages/StackerNews.jsxindex ece1934fe1..767734ea71 100644--- a/client/src/pages/StackerNews.jsx+++ b/client/src/pages/StackerNews.jsx@@ -542,7 +542,7 @@ export default function StackerNews() {if (loading) return <PageSkeleton header="bar" label="Loading Stacker News" tabs={TABS.length} cards={3} />;const notFound = accountId && !selected;- return <div className="flex h-full min-h-0 flex-col"><PageHeader icon={Newspaper} title="Stacker News" subtitle="Review-gated multi-account community stewardship" actions={accountSwitcher} /><TabPills tabs={TABS} activeTab={activeTab} onChange={(nextTab) => selected ? navigate(accountPath(selected.id, nextTab)) : navigate('/stacker-news')} ariaLabel="Stacker News sections" /><main className="flex-1 overflow-auto p-4">{error && <div role="status" className="mb-3 rounded border border-port-error p-3 text-sm text-port-error">{error}</div>}{notice && <div className="mb-3 rounded border border-port-border p-3 text-sm text-gray-200">{notice}</div>}{notFound && <div className="mb-3 rounded border border-port-error p-4 text-sm text-port-error">This Stacker News account was not found. <button className="underline" onClick={() => navigate('/stacker-news')}>Return to accounts.</button></div>}{activeTab === 'review' && selected && renderReview()}{activeTab === 'territory' && selected && renderTerritory()}{activeTab === 'drafts' && selected && renderDrafts()}{activeTab === 'activity' && selected && <section className="rounded border border-port-border bg-port-card p-4"><h2 className="font-semibold text-white">Action ledger for {scope}</h2><div className="mt-3 space-y-2">{visibleActions.map((action) => <div key={action.id} className="rounded border border-port-border p-3 text-sm text-gray-300"><div>{action.kind.replaceAll('_', ' ')} · {action.state}</div>{action.error && <div role="status" className="mt-1 text-port-error">{action.error}</div>}{action.result?.handoffOpened && <div className="mt-1 text-gray-400">Fixed browser handoff opened.</div>}</div>)}{!visibleActions.length && <p className="text-sm text-gray-500">No actions recorded for {scope}.</p>}</div></section>}{activeTab === 'accounts' && renderAccounts()}</main>{accountDrawer}</div>;+ return <div className="flex h-full min-h-0 flex-col"><PageHeader icon={Newspaper} title="Stacker News" subtitle="Review-gated multi-account community stewardship" actions={accountSwitcher} /><TabPills tabs={TABS} activeTab={activeTab} onChange={(nextTab) => selected ? navigate(accountPath(selected.id, nextTab)) : navigate('/stacker-news')} ariaLabel="Stacker News sections" /><section className="flex-1 overflow-auto p-4">{error && <div role="status" className="mb-3 rounded border border-port-error p-3 text-sm text-port-error">{error}</div>}{notice && <div className="mb-3 rounded border border-port-border p-3 text-sm text-gray-200">{notice}</div>}{notFound && <div className="mb-3 rounded border border-port-error p-4 text-sm text-port-error">This Stacker News account was not found. <button className="underline" onClick={() => navigate('/stacker-news')}>Return to accounts.</button></div>}{activeTab === 'review' && selected && renderReview()}{activeTab === 'territory' && selected && renderTerritory()}{activeTab === 'drafts' && selected && renderDrafts()}{activeTab === 'activity' && selected && <section className="rounded border border-port-border bg-port-card p-4"><h2 className="font-semibold text-white">Action ledger for {scope}</h2><div className="mt-3 space-y-2">{visibleActions.map((action) => <div key={action.id} className="rounded border border-port-border p-3 text-sm text-gray-300"><div>{action.kind.replaceAll('_', ' ')} · {action.state}</div>{action.error && <div role="status" className="mt-1 text-port-error">{action.error}</div>}{action.result?.handoffOpened && <div className="mt-1 text-gray-400">Fixed browser handoff opened.</div>}</div>)}{!visibleActions.length && <p className="text-sm text-gray-500">No actions recorded for {scope}.</p>}</div></section>}{activeTab === 'accounts' && renderAccounts()}</section>{accountDrawer}</div>;}function Field({ id, label, children }) {diff --git a/client/src/pages/Tribe.jsx b/client/src/pages/Tribe.jsxindex bb7289676f..39e278e8c1 100644--- a/client/src/pages/Tribe.jsx+++ b/client/src/pages/Tribe.jsx@@ -1299,7 +1299,7 @@ export default function Tribe() {<TabPills tabs={TABS} activeTab={activeTab} onChange={setActiveTab} ariaLabel="Tribe sections" />- <main className="flex-1 overflow-auto p-4">+ <section className="flex-1 overflow-auto p-4"><div className="mx-auto grid max-w-7xl gap-4">{loading && (<div className="flex min-h-[220px] items-center justify-center">@@ -1513,7 +1513,7 @@ export default function Tribe() {</>)}</div>- </main>+ </section></div>);}diff --git a/client/src/pages/WritersRoom.jsx b/client/src/pages/WritersRoom.jsxindex b9a9d8826a..386bd8b58a 100644--- a/client/src/pages/WritersRoom.jsx+++ b/client/src/pages/WritersRoom.jsx@@ -201,7 +201,7 @@ export default function WritersRoom() {</aside>)}- <main className="min-h-0 flex flex-col flex-1">+ <section className="min-h-0 flex flex-col flex-1">{loadingWork && <div className="p-6 text-sm text-gray-500">Loading work…</div>}{!loadingWork && !activeWork && (<div className="flex-1 flex items-center justify-center p-8">@@ -236,7 +236,7 @@ export default function WritersRoom() {/></>)}- </main>+ </section>{showExercise && (<aside className="border-t lg:border-t-0 lg:border-l border-port-border bg-port-card/30 p-3 min-h-0 lg:overflow-y-auto">diff --git a/client/src/pages/X.jsx b/client/src/pages/X.jsxindex 3405f56fc2..52f36a4523 100644--- a/client/src/pages/X.jsx+++ b/client/src/pages/X.jsx@@ -265,5 +265,5 @@ export default function XPage() {const notFound = Boolean(accountId && !selected);if (loading) return <PageSkeleton header="bar" label="Loading X" tabs={TABS.length} cards={3} />;- return <div className="flex h-full min-h-0 flex-col"><PageHeader icon={AtSign} title="X" subtitle="Account health, reach diagnostics, and review-gated drafts" actions={accountSwitcher} /><TabPills tabs={TABS} activeTab={activeTab} onChange={(nextTab) => selected ? navigate(accountPath(selected.id, nextTab)) : navigate('/x')} ariaLabel="X sections" /><main className="flex-1 overflow-auto p-4">{error && <div role="status" className="mb-3 rounded border border-port-error p-3 text-sm text-port-error">{error}</div>}{notice && <div className="mb-3 rounded border border-port-border p-3 text-sm text-gray-200">{notice}</div>}{notFound && <div className="mb-3 rounded border border-port-error p-4 text-sm text-port-error">This X account was not found. <button type="button" className="underline" onClick={() => navigate('/x')}>Return to accounts.</button></div>}{activeTab === 'health' && selected && renderHealth()}{activeTab === 'posts' && selected && renderPosts()}{activeTab === 'drafts' && selected && renderDrafts()}{activeTab === 'accounts' && renderAccounts()}{accountDrawer}</main></div>;+ return <div className="flex h-full min-h-0 flex-col"><PageHeader icon={AtSign} title="X" subtitle="Account health, reach diagnostics, and review-gated drafts" actions={accountSwitcher} /><TabPills tabs={TABS} activeTab={activeTab} onChange={(nextTab) => selected ? navigate(accountPath(selected.id, nextTab)) : navigate('/x')} ariaLabel="X sections" /><section className="flex-1 overflow-auto p-4">{error && <div role="status" className="mb-3 rounded border border-port-error p-3 text-sm text-port-error">{error}</div>}{notice && <div className="mb-3 rounded border border-port-border p-3 text-sm text-gray-200">{notice}</div>}{notFound && <div className="mb-3 rounded border border-port-error p-4 text-sm text-port-error">This X account was not found. <button type="button" className="underline" onClick={() => navigate('/x')}>Return to accounts.</button></div>}{activeTab === 'health' && selected && renderHealth()}{activeTab === 'posts' && selected && renderPosts()}{activeTab === 'drafts' && selected && renderDrafts()}{activeTab === 'accounts' && renderAccounts()}{accountDrawer}</section></div>;}