refactor: remove Recent Sessions from dashboard, hide Active when empty

Active Sessions section now auto-hides when there are no active sessions
(same pattern as PendingEscalations). Recent Sessions removed from
dashboard entirely — users access history via the History page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-27 05:41:37 +00:00
parent dbe66a0568
commit 4be8388a44
2 changed files with 4 additions and 38 deletions

View File

@@ -6,7 +6,6 @@ import { ActiveFlowPilotSessions } from '@/components/dashboard/ActiveFlowPilotS
import { PerformanceCards } from '@/components/dashboard/PerformanceCards'
import { KnowledgeBaseCards } from '@/components/dashboard/KnowledgeBaseCards'
import { TeamSummary } from '@/components/dashboard/TeamSummary'
import { RecentFlowPilotSessions } from '@/components/dashboard/RecentFlowPilotSessions'
import { GreetingStatStrip } from '@/components/dashboard/GreetingStatStrip'
function SectionLabel({ children, action }: { children: React.ReactNode; action?: React.ReactNode }) {
@@ -60,20 +59,9 @@ export function QuickStartPage() {
<PendingEscalations />
</div>
{/* Active Sessions */}
{/* Active Sessions (auto-hides if none) */}
<div className="mt-8">
<SectionLabel>Active Sessions</SectionLabel>
<div className="mt-3">
<ActiveFlowPilotSessions hideHeader />
</div>
</div>
{/* Recent Sessions */}
<div className="mt-8">
<SectionLabel>Recent Sessions</SectionLabel>
<div className="mt-3">
<RecentFlowPilotSessions hideHeader />
</div>
<ActiveFlowPilotSessions />
</div>
{/* Dashboard — always visible */}