Skip to content

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

feat: disambiguate MeatSpace/CoS Health palette rows + per-universe sidebar grandchildren

Adam Eivyeb9fb92cdaa3
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 28af6475e2..04b6b03c84 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -200,7 +200,7 @@ const navItems = [
{ to: '/media', label: 'Media Gen', icon: Layers },
{ to: '/pipeline', label: 'Series Pipeline', icon: WorkflowIcon, dynamic: 'pipelineSeries' },
{ to: '/sharing', label: 'Sharing', icon: Share2 },
- { to: '/universes', label: 'Universes', icon: Globe },
+ { to: '/universes', label: 'Universes', icon: Globe, dynamic: 'universes' },
{ to: '/writers-room', label: 'Writers Room', icon: NotebookPen }
]
},
@@ -257,7 +257,7 @@ const navItems = [
{ to: '/meatspace/blood', label: 'Blood', icon: HeartPulse },
{ to: '/meatspace/body', label: 'Body', icon: Scale },
{ to: '/meatspace/genome', label: 'Genome', icon: Dna },
- { to: '/meatspace/health', label: 'Health', icon: Heart },
+ { to: '/meatspace/health', label: 'Body Health', icon: Heart },
{ to: '/meatspace/lifestyle', label: 'Lifestyle', icon: ClipboardList },
{ to: '/meatspace/nicotine', label: 'Nicotine', icon: Cigarette },
{ to: '/meatspace/overview', label: 'Overview', icon: Activity },
@@ -403,7 +403,7 @@ export default function Layout() {
let lastSuccessAt = 0;
const sigOf = (items) => items.map((s) => `${s.id}|${s.name}`).join('||');
const loadSeries = () => {
- api.listPipelineSeries()
+ api.listPipelineSeries({ silent: true })
.then((items) => {
lastSuccessAt = Date.now();
const next = (Array.isArray(items) ? items : []).slice().sort((a, b) =>
@@ -424,6 +424,36 @@ export default function Layout() {
return () => window.removeEventListener('focus', onFocus);
}, []);
+ // Fetch all universes for the Create > Universes grandchildren.
+ // Refresh on focus (debounced 30s) so freshly-created or renamed universes
+ // surface without a reload. Signature guard avoids re-rendering the whole
+ // sidebar tree when nothing changed.
+ const [universes, setUniverses] = useState([]);
+ useEffect(() => {
+ let lastSuccessAt = 0;
+ const sigOf = (items) => items.map((u) => `${u.id}|${u.name}`).join('||');
+ const loadUniverses = () => {
+ api.listUniverses({ silent: true })
+ .then((items) => {
+ lastSuccessAt = Date.now();
+ const next = (Array.isArray(items) ? items : []).slice().sort((a, b) =>
+ (a.name || '').localeCompare(b.name || '', undefined, { sensitivity: 'base' }),
+ );
+ setUniverses((prev) => sigOf(prev) === sigOf(next) ? prev : next);
+ })
+ .catch((err) => {
+ console.warn(`⚠️ Sidebar universes fetch failed: ${err?.message || err}`);
+ });
+ };
+ loadUniverses();
+ const onFocus = () => {
+ if (Date.now() - lastSuccessAt < 30_000) return;
+ loadUniverses();
+ };
+ window.addEventListener('focus', onFocus);
+ return () => window.removeEventListener('focus', onFocus);
+ }, []);
+
useEffect(() => {
localStorage.setItem(SIDEBAR_KEY, String(collapsed));
}, [collapsed]);
@@ -449,6 +479,18 @@ export default function Layout() {
})),
};
};
+ const decorateUniverseChild = (child) => {
+ if (child.dynamic !== 'universes') return child;
+ return {
+ ...child,
+ grandChildren: universes.map((u) => ({
+ to: `/universes/${u.id}`,
+ label: u.name || '(untitled universe)',
+ title: u.name || '(untitled universe)',
+ activePathPrefix: `/universes/${u.id}`,
+ })),
+ };
+ };
return navItems.map((item) => {
if (item.dynamic === 'apps') {
return {
@@ -465,11 +507,11 @@ export default function Layout() {
};
}
if (Array.isArray(item.children)) {
- return { ...item, children: item.children.map(decoratePipelineChild) };
+ return { ...item, children: item.children.map((c) => decoratePipelineChild(decorateUniverseChild(c))) };
}
return item;
});
- }, [sidebarApps, pipelineSeries]);
+ }, [sidebarApps, pipelineSeries, universes]);
// Auto-expand sections when on a child page
useEffect(() => {
diff --git a/server/lib/navManifest.js b/server/lib/navManifest.js
index 45d1051fd1..a4068e359f 100644
--- a/server/lib/navManifest.js
+++ b/server/lib/navManifest.js
@@ -107,7 +107,7 @@ export const NAV_COMMANDS = [
{ id: 'nav.twin.time-capsule', path: '/digital-twin/time-capsule', label: 'Time Capsule', section: 'Digital Twin', aliases: ['time-capsule', 'twin-time-capsule', 'capsule'], keywords: ['legacy', 'archive', 'snapshot'] },
{ id: 'nav.meatspace.overview', path: '/meatspace/overview', label: 'Overview', section: 'MeatSpace', aliases: ['meatspace'] },
- { id: 'nav.meatspace.health', path: '/meatspace/health', label: 'Health', section: 'MeatSpace', aliases: ['meatspace-health'] },
+ { id: 'nav.meatspace.health', path: '/meatspace/health', label: 'Body Health', section: 'MeatSpace', aliases: ['meatspace-health', 'body-health'], keywords: ['health', 'vitals', 'wellbeing', 'biometrics'] },
{ id: 'nav.meatspace.body', path: '/meatspace/body', label: 'Body', section: 'MeatSpace', aliases: ['meatspace-body', 'body'] },
{ id: 'nav.meatspace.alcohol', path: '/meatspace/alcohol', label: 'Alcohol', section: 'MeatSpace', aliases: ['meatspace-alcohol', 'alcohol'] },
{ id: 'nav.meatspace.nicotine', path: '/meatspace/nicotine', label: 'Nicotine', section: 'MeatSpace', aliases: ['meatspace-nicotine', 'nicotine'] },