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

fix(goals): nav link points to list view, expand all goals by default

Adam Eivye3f5d99964cf
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 7e84585f63..4f0d406f34 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -175,7 +175,7 @@ const navItems = [
{ to: '/digital-twin/test', label: 'Test', icon: CheckCircle }
]
},
- { to: '/goals/tree', label: 'Goals', icon: Target, single: true },
+ { to: '/goals/list', label: 'Goals', icon: Target, single: true },
{ to: '/insights/overview', label: 'Insights', icon: Lightbulb, single: true },
{
label: 'MeatSpace',
diff --git a/client/src/components/goals/GoalsListView.jsx b/client/src/components/goals/GoalsListView.jsx
index 3c49ee3d26..96a244e1de 100644
--- a/client/src/components/goals/GoalsListView.jsx
+++ b/client/src/components/goals/GoalsListView.jsx
@@ -1,4 +1,4 @@
-import { useState, useMemo, useCallback } from 'react';
+import { useState, useMemo, useCallback, useEffect } from 'react';
import {
ChevronRight, ChevronDown, Plus, GripVertical, Search, Tag, Link2, Crown, Star, Wand2
} from 'lucide-react';
@@ -201,6 +201,18 @@ export default function GoalsListView({ data, onRefresh }) {
const sensors = useSensors(useSensor(PointerSensor, { activationConstraint: { distance: 8 } }));
+ useEffect(() => {
+ if (!data?.roots) return;
+ const allIds = new Set();
+ const collect = (goals) => {
+ for (const g of goals) {
+ if (g.children?.length) { allIds.add(g.id); collect(g.children); }
+ }
+ };
+ collect(data.roots);
+ setExpandedIds(allIds);
+ }, [data]);
+
const toggleExpand = (id) => {
setExpandedIds(prev => {
const next = new Set(prev);