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([issue-713]): thread NavLink end prop through Pinned/Recent rows (codex review)

Adam Eivyd4b96a93b667
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 3380b1c3c1..27b8612545 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -6,7 +6,7 @@
- **[issue-711] "While You Were Away" dashboard card** — A new dashboard widget recaps what your agents did since your last visit: a count of completed runs, success/failure tally, total time worked, and the most recent wins plus anything that failed and needs a look. Each item opens the agents view, and a "Mark as seen" button resets the window to now. It appears on the Everything and Agent Watch layouts and can be added to any layout via Arrange.
- **[issue-708] Digital Twin "Appearance" tab — image identity source** — Upload a photo of yourself and a vision-capable provider extracts your visible appearance and self-presentation (apparent age range, build, hair, style, grooming, vibe, setting, expression). Review and edit the generated write-up, then save it as your "Appearance & Presentation" core identity document so the twin has a grounded sense of how you look. Use a local vision model (LM Studio / Ollama) to keep the photo on-device; the image itself is never persisted, only the derived text.
- **[issue-711] Per-domain autonomy guardrails** — The Chief of Staff config gains a "Domain Guardrails" panel that lets you set how much each domain acts on its own, independently: Brain auto-classify, Memory auto-extract, CoS auto-run, and Messages auto-send. Each is Off (never act automatically — leave it for you), Dry-run (do the thinking and surface what it would do, but don't commit the side effect), or Execute (act automatically — the default, so nothing changes unless you dial a domain back). Dry-run captures and classifies thoughts but holds them for your confirmation, routes extracted memories to pending approval instead of storing them live, lists the autonomous tasks it would have run without spawning them, and skips outbound message forwarding while logging what it would have sent.
-- **[issue-713] Pinned & Recent in the sidebar** — The top of the left navigation now shows the pages you've pinned and the ones you visited most recently, so your working set is one click away. Hover (or keyboard-focus) any navigation row to reveal a pin button; pinned pages stay at the top until you unpin them, and Recent tracks your last few pages automatically. Both sections appear only when they have something to show.
+- **[issue-713] Pinned & Recent in the sidebar** — The top of the left navigation now shows the pages you've pinned and the ones you visited most recently, so your working set is one click away. Hover (or keyboard-focus) a page row inside any sidebar section to reveal a pin button; pinned pages stay at the top until you unpin them, and Recent tracks your last few pages automatically. Both sections appear only when they have something to show.
## Changed
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index e2b4c30cc1..46c282dd66 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -319,6 +319,7 @@ function WorkingSetRow({ entry, pinned, onTogglePin, onNavigate, isActive }) {
<div className="group mx-2 flex items-stretch min-w-0">
<NavLink
to={entry.path}
+ end={entry.end}
onClick={onNavigate}
className={`flex-1 flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-colors min-w-0 ${
isActive ? 'bg-port-accent/10 text-port-accent' : 'text-gray-400 hover:text-white hover:bg-port-border/50'
@@ -575,7 +576,7 @@ export default function Layout() {
const map = new Map();
const addLeaf = (leaf) => {
if (leaf?.to && !map.has(leaf.to)) {
- map.set(leaf.to, { path: leaf.to, label: leaf.label, icon: leaf.icon });
+ map.set(leaf.to, { path: leaf.to, label: leaf.label, icon: leaf.icon, end: leaf.end });
}
};
resolvedNavItems.forEach((item) => {
@@ -833,7 +834,7 @@ export default function Layout() {
return (
<div key={child.to} className="min-w-0">
<WorkingSetRow
- entry={{ path: child.to, label: child.label, icon: ChildIcon }}
+ entry={{ path: child.to, label: child.label, icon: ChildIcon, end: child.end }}
pinned={childIsPinned}
onTogglePin={() => (childIsPinned ? unpin(child.to) : pin(child.to))}
onNavigate={() => setMobileOpen(false)}
@@ -955,7 +956,7 @@ export default function Layout() {
<div className="mb-2">
<div className="px-4 py-1 text-[10px] font-semibold uppercase tracking-wide text-gray-500">Pinned</div>
{pinned.map((entry) => (
- <WorkingSetRow key={`pin-${entry.path}`} entry={entry} pinned onTogglePin={() => unpin(entry.path)} onNavigate={() => setMobileOpen(false)} isActive={isActive(entry.path)} />
+ <WorkingSetRow key={`pin-${entry.path}`} entry={entry} pinned onTogglePin={() => unpin(entry.path)} onNavigate={() => setMobileOpen(false)} isActive={entry.end ? location.pathname === entry.path : isActive(entry.path)} />
))}
</div>
)}
@@ -963,7 +964,7 @@ export default function Layout() {
<div className="mb-2">
<div className="px-4 py-1 text-[10px] font-semibold uppercase tracking-wide text-gray-500">Recent</div>
{recent.map((entry) => (
- <WorkingSetRow key={`recent-${entry.path}`} entry={entry} pinned={false} onTogglePin={() => pin(entry.path)} onNavigate={() => setMobileOpen(false)} isActive={isActive(entry.path)} />
+ <WorkingSetRow key={`recent-${entry.path}`} entry={entry} pinned={false} onTogglePin={() => pin(entry.path)} onNavigate={() => setMobileOpen(false)} isActive={entry.end ? location.pathname === entry.path : isActive(entry.path)} />
))}
</div>
)}