From c52c6f170f3a80f0e1eed76b79e224d5e46ce7df Mon Sep 17 00:00:00 2001 From: Lukas May Date: Thu, 5 Feb 2026 08:57:07 +0100 Subject: [PATCH] feat(21-03): add cross-screen navigation links - Remove disabled nav stubs (Agents, Tasks, Settings) from AppLayout - Make TaskRow agent names clickable links to inbox page - Add task ID link and "View in context" link in inbox detail panel --- packages/web/src/components/TaskRow.tsx | 9 +++++- packages/web/src/layouts/AppLayout.tsx | 40 +++++++++---------------- packages/web/src/routes/inbox.tsx | 22 ++++++++++++-- 3 files changed, 42 insertions(+), 29 deletions(-) diff --git a/packages/web/src/components/TaskRow.tsx b/packages/web/src/components/TaskRow.tsx index 90ea692..e3bf5c1 100644 --- a/packages/web/src/components/TaskRow.tsx +++ b/packages/web/src/components/TaskRow.tsx @@ -1,3 +1,4 @@ +import { Link } from "@tanstack/react-router"; import { StatusBadge } from "@/components/StatusBadge"; import { DependencyIndicator } from "@/components/DependencyIndicator"; import { cn } from "@/lib/utils"; @@ -53,7 +54,13 @@ export function TaskRow({ {/* Agent assignment */} {agentName && ( - [{agentName}] + e.stopPropagation()} + > + [{agentName}] + )} {/* Status badge */} diff --git a/packages/web/src/layouts/AppLayout.tsx b/packages/web/src/layouts/AppLayout.tsx index 2294879..e623959 100644 --- a/packages/web/src/layouts/AppLayout.tsx +++ b/packages/web/src/layouts/AppLayout.tsx @@ -1,11 +1,8 @@ import { Link } from '@tanstack/react-router' const navItems = [ - { label: 'Initiatives', to: '/initiatives', enabled: true }, - { label: 'Inbox', to: '/inbox', enabled: true }, - { label: 'Agents', to: '#', enabled: false }, - { label: 'Tasks', to: '#', enabled: false }, - { label: 'Settings', to: '#', enabled: false }, + { label: 'Initiatives', to: '/initiatives' }, + { label: 'Inbox', to: '/inbox' }, ] as const export function AppLayout({ children }: { children: React.ReactNode }) { @@ -20,27 +17,18 @@ export function AppLayout({ children }: { children: React.ReactNode }) { {/* Navigation */} diff --git a/packages/web/src/routes/inbox.tsx b/packages/web/src/routes/inbox.tsx index eadf8a8..7db0aa5 100644 --- a/packages/web/src/routes/inbox.tsx +++ b/packages/web/src/routes/inbox.tsx @@ -1,5 +1,5 @@ import { useState } from "react"; -import { createFileRoute, Link } from "@tanstack/react-router"; +import { createFileRoute } from "@tanstack/react-router"; import { AlertCircle } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Card } from "@/components/ui/card"; @@ -186,8 +186,26 @@ function InboxPage() {

- Task: {selectedAgent.taskId} + Task:{" "} + {selectedAgent.taskId ? ( + + {selectedAgent.taskId} + + ) : ( + "—" + )}

+ {selectedAgent.taskId && ( + + View in context → + + )} {/* Question Form or Notification Content */}