UI: task sessions in agent detail, ApprovalCard extraction, and company settings page

Show task sessions list in AgentDetail with per-session reset. Extract
ApprovalCard into standalone component from Approvals and Inbox pages,
reducing duplication. Add CompanySettings page with issuePrefix configuration.
Fix Sidebar active state for settings route. Display sessionDisplayId
in agent properties. Various cleanups to Approvals and Inbox pages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Forgotten
2026-02-19 14:02:29 -06:00
parent 2acf28a51a
commit ea60e4800f
13 changed files with 315 additions and 198 deletions

View File

@@ -11,7 +11,6 @@ import {
SquarePen,
ListTodo,
ShieldCheck,
Building2,
BookOpen,
Paperclip,
} from "lucide-react";
@@ -73,6 +72,7 @@ export function Sidebar() {
<ScrollArea className="flex-1">
<nav className="flex flex-col gap-4 px-3 py-2">
<div className="flex flex-col gap-0.5">
<SidebarNavItem to="/dashboard" label="Dashboard" icon={LayoutDashboard} />
<SidebarNavItem
to="/inbox"
label="Inbox"
@@ -89,7 +89,6 @@ export function Sidebar() {
</SidebarSection>
<SidebarSection label="Company">
<SidebarNavItem to="/dashboard" label="Dashboard" icon={LayoutDashboard} />
<SidebarNavItem to="/agents" label="Agents" icon={Bot} />
<SidebarNavItem
to="/approvals"
@@ -99,7 +98,6 @@ export function Sidebar() {
/>
<SidebarNavItem to="/costs" label="Costs" icon={DollarSign} />
<SidebarNavItem to="/activity" label="Activity" icon={History} />
<SidebarNavItem to="/companies" label="Companies" icon={Building2} />
</SidebarSection>
</nav>
</ScrollArea>