The Manager console carried screens built to an early control-plane vision that no longer matches how the product runs (desktop client drives tasks; Manager is gateway + status judge). Removed the dead/misleading ones and aligned task overview to the real status model. Frontend only; no backend endpoints touched. Deleted (routes + pages + menu entries): - Resource binding (/sk-sources): mcp-server /api/resources unwired (301) + Azure Key Vault unreachable -> page was inert. - Audit (/audit): only simulated approvals, empty leases, mcp audit unwired. - Events / Templates / Agents pages: legacy control-plane (hardcoded mock templates), not in the main menu but route-reachable. - azure-cloud-binding-sheet + create-agent-deployment-sheet (New run). Task overview (/deployments) kept and fixed: - status now uses Manager-judged display_status (completed / needs_codegen / completed_without_deliverable=fail / running ...) instead of raw phase, so success vs failure is legible. - dropped New run, scope/budget/secret_ref pills, permission-manifest grants table, Simulate; kept the task list, per-task audit timeline and artifacts. Cleaned all menu/nav/dashboard references to the deleted routes (sidebar, top-nav, footer, cockpit, home-hero, agent-hub, task-card-view) and regenerated routeTree.gen.ts. tsc -b and rsbuild build both pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
35 lines
1008 B
TypeScript
Vendored
35 lines
1008 B
TypeScript
Vendored
import { Link } from '@tanstack/react-router'
|
|
|
|
type AgentHubProps = {
|
|
title: string
|
|
description: string
|
|
}
|
|
|
|
const quickLinks = [{ title: 'Deployments', to: '/deployments' as const }]
|
|
|
|
export function AgentHub(props: AgentHubProps) {
|
|
return (
|
|
<div className='mx-auto w-full max-w-5xl p-6'>
|
|
<div className='mb-5'>
|
|
<h1 className='text-2xl font-semibold'>{props.title}</h1>
|
|
<p className='text-muted-foreground mt-2 text-sm'>{props.description}</p>
|
|
</div>
|
|
|
|
<div className='grid gap-4 md:grid-cols-3'>
|
|
{quickLinks.map((item) => (
|
|
<Link
|
|
key={item.title}
|
|
to={item.to}
|
|
className='bg-card hover:bg-accent/40 rounded-lg border p-4 transition-colors'
|
|
>
|
|
<div className='font-medium'>{item.title}</div>
|
|
<div className='text-muted-foreground mt-1 text-xs'>
|
|
Open {item.title.toLowerCase()} workspace
|
|
</div>
|
|
</Link>
|
|
))}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|