fleet(tower): 0.18 — Tasks-View (Spool/Dead-Letter/Alarm) + Task-Detail-Modal + /healthz + /api/status; Fleet-Views 0.13-0.18 erstmals versioniert
This commit is contained in:
+113
-1
@@ -14,7 +14,7 @@ type ControllerNodeRecord = {
|
||||
interface SidebarProps {
|
||||
sandboxesRunning: number
|
||||
sandboxesTotal: number
|
||||
activeView: 'settings' | 'sandboxes' | 'help' | 'wizards' | 'mcp'
|
||||
activeView: 'settings' | 'sandboxes' | 'help' | 'wizards' | 'mcp' | 'org' | 'messages' | 'board' | 'owner' | 'escalations' | 'approvals' | 'fleet-sandboxes' | 'tasks'
|
||||
isCreateMode: boolean
|
||||
isDestroyMode: boolean
|
||||
onSandboxesClick: () => void
|
||||
@@ -25,6 +25,14 @@ interface SidebarProps {
|
||||
onMcpClick: () => void
|
||||
onWizardsClick: () => void
|
||||
onHelpClick: () => void
|
||||
onFleetOrgClick: () => void
|
||||
onFleetMessagesClick: () => void
|
||||
onFleetBoardClick: () => void
|
||||
onFleetOwnerClick: () => void
|
||||
onFleetApprovalsClick: () => void
|
||||
onFleetEscalationsClick: () => void
|
||||
onFleetSandboxesClick: () => void
|
||||
onFleetTasksClick: () => void
|
||||
onExitMode: () => void
|
||||
onLogout: () => void
|
||||
terminalDisabled?: boolean
|
||||
@@ -46,6 +54,14 @@ export default function Sidebar({
|
||||
onMcpClick,
|
||||
onWizardsClick,
|
||||
onHelpClick,
|
||||
onFleetOrgClick,
|
||||
onFleetMessagesClick,
|
||||
onFleetBoardClick,
|
||||
onFleetOwnerClick,
|
||||
onFleetApprovalsClick,
|
||||
onFleetEscalationsClick,
|
||||
onFleetSandboxesClick,
|
||||
onFleetTasksClick,
|
||||
onExitMode,
|
||||
onLogout,
|
||||
terminalDisabled = false,
|
||||
@@ -216,6 +232,102 @@ export default function Sidebar({
|
||||
</div>
|
||||
|
||||
<nav className="flex-1 p-2 max-lg:flex max-lg:gap-1 max-lg:overflow-x-auto max-lg:[scrollbar-width:none]">
|
||||
<button
|
||||
onClick={onFleetOrgClick}
|
||||
className={navItemClass(activeView === 'org')}
|
||||
aria-current={activeView === 'org' ? 'page' : undefined}
|
||||
data-testid="fleet-nav-org"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="square" strokeLinejoin="miter" strokeWidth={2} d="M12 4v4m0 4v4m-6-8h4m8 0h-4M6 16h12" />
|
||||
</svg>
|
||||
<span className="text-sm max-lg:text-[11px]">Fleet Org</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={onFleetSandboxesClick}
|
||||
className={`mt-1 max-lg:mt-0 ${navItemClass(activeView === 'fleet-sandboxes')}`}
|
||||
aria-current={activeView === 'fleet-sandboxes' ? 'page' : undefined}
|
||||
data-testid="fleet-nav-sandboxes"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="square" strokeLinejoin="miter" strokeWidth={2} d="M3 8l9-5 9 5-9 5-9-5zM3 8v8l9 5 9-5V8M12 13v8" />
|
||||
</svg>
|
||||
<span className="text-sm max-lg:text-[11px]">Sandboxes</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={onFleetTasksClick}
|
||||
className={`mt-1 max-lg:mt-0 ${navItemClass(activeView === 'tasks')}`}
|
||||
aria-current={activeView === 'tasks' ? 'page' : undefined}
|
||||
data-testid="fleet-nav-tasks"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="square" strokeLinejoin="miter" strokeWidth={2} d="M4 6h16M4 12h16M4 18h10" />
|
||||
</svg>
|
||||
<span className="text-sm max-lg:text-[11px]">Tasks</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={onFleetMessagesClick}
|
||||
className={`mt-1 max-lg:mt-0 ${navItemClass(activeView === 'messages')}`}
|
||||
aria-current={activeView === 'messages' ? 'page' : undefined}
|
||||
data-testid="fleet-nav-messages"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="square" strokeLinejoin="miter" strokeWidth={2} d="M4 6h16v10H8l-4 4V6z" />
|
||||
</svg>
|
||||
<span className="text-sm max-lg:text-[11px]">Messages</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={onFleetBoardClick}
|
||||
className={`mt-1 max-lg:mt-0 ${navItemClass(activeView === 'board')}`}
|
||||
aria-current={activeView === 'board' ? 'page' : undefined}
|
||||
data-testid="fleet-nav-board"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="square" strokeLinejoin="miter" strokeWidth={2} d="M4 5h5v5H4V5zm11 0h5v5h-5V5zM4 14h5v5H4v-5zm11 0h5v5h-5v-5z" />
|
||||
</svg>
|
||||
<span className="text-sm max-lg:text-[11px]">Kanban</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={onFleetOwnerClick}
|
||||
className={`mt-1 max-lg:mt-0 ${navItemClass(activeView === 'owner')}`}
|
||||
aria-current={activeView === 'owner' ? 'page' : undefined}
|
||||
data-testid="fleet-nav-owner"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="square" strokeLinejoin="miter" strokeWidth={2} d="M5 12h14M12 5v14" />
|
||||
</svg>
|
||||
<span className="text-sm max-lg:text-[11px]">Owner</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={onFleetApprovalsClick}
|
||||
className={`mt-1 max-lg:mt-0 ${navItemClass(activeView === 'approvals', true)}`}
|
||||
aria-current={activeView === 'approvals' ? 'page' : undefined}
|
||||
data-testid="fleet-nav-approvals"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="square" strokeLinejoin="miter" strokeWidth={2} d="M9 12l2 2 4-4m-8-5h10a2 2 0 012 2v10a2 2 0 01-2 2H7a2 2 0 01-2-2V7a2 2 0 012-2z" />
|
||||
</svg>
|
||||
<span className="text-sm max-lg:text-[11px]">Freigaben</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={onFleetEscalationsClick}
|
||||
className={`mt-1 max-lg:mt-0 ${navItemClass(activeView === 'escalations', true)}`}
|
||||
aria-current={activeView === 'escalations' ? 'page' : undefined}
|
||||
data-testid="fleet-nav-escalations"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="square" strokeLinejoin="miter" strokeWidth={2} d="M12 3l9 16H3l9-16z M12 10v4m0 2v1" />
|
||||
</svg>
|
||||
<span className="text-sm max-lg:text-[11px]">Escalations</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={onSandboxesClick}
|
||||
className={navItemClass(activeView === 'sandboxes' && !isCreateMode && !isDestroyMode)}
|
||||
|
||||
Reference in New Issue
Block a user