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:
@@ -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 */}
|
||||
|
||||
Reference in New Issue
Block a user