From 56ff792f8e671226655e6ded4855fa6d91c29d54 Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Sun, 22 Mar 2026 01:56:27 -0400 Subject: [PATCH] refactor: migrate FlowPilot components to Design System v4 Co-Authored-By: Claude Opus 4.6 (1M context) --- .../flowpilot/AISessionListItem.tsx | 12 ++-- .../flowpilot/ConfidenceIndicator.tsx | 8 +-- .../components/flowpilot/EscalateModal.tsx | 6 +- .../components/flowpilot/EscalationQueue.tsx | 26 ++++----- .../flowpilot/FlowPilotActionBar.tsx | 26 ++++----- .../components/flowpilot/FlowPilotIntake.tsx | 36 ++++++------ .../flowpilot/FlowPilotMessageBar.tsx | 12 ++-- .../components/flowpilot/FlowPilotOptions.tsx | 10 ++-- .../components/flowpilot/FlowPilotSession.tsx | 49 ++++++++--------- .../flowpilot/FlowPilotStepCard.tsx | 38 ++++++------- .../flowpilot/InSessionScriptGenerator.tsx | 26 ++++----- .../src/components/flowpilot/ProposalCard.tsx | 16 +++--- .../components/flowpilot/ProposalDetail.tsx | 55 +++++++++---------- .../components/flowpilot/SessionBriefing.tsx | 40 +++++++------- .../components/flowpilot/SessionDocView.tsx | 44 +++++++-------- .../flowpilot/SessionTicketCard.tsx | 16 +++--- .../components/flowpilot/SimilarSessions.tsx | 20 +++---- 17 files changed, 219 insertions(+), 221 deletions(-) diff --git a/frontend/src/components/flowpilot/AISessionListItem.tsx b/frontend/src/components/flowpilot/AISessionListItem.tsx index 0dc1852d..6a139b72 100644 --- a/frontend/src/components/flowpilot/AISessionListItem.tsx +++ b/frontend/src/components/flowpilot/AISessionListItem.tsx @@ -8,7 +8,7 @@ interface AISessionListItemProps { } const STATUS_CONFIG = { - active: { icon: Clock, color: 'text-primary', label: 'Active' }, + active: { icon: Clock, color: 'text-[#22d3ee]', label: 'Active' }, paused: { icon: Pause, color: 'text-amber-400', label: 'Paused' }, resolved: { icon: CheckCircle2, color: 'text-emerald-400', label: 'Resolved' }, escalated: { icon: ArrowUpRight, color: 'text-amber-400', label: 'Escalated' }, @@ -22,16 +22,16 @@ export function AISessionListItem({ session }: AISessionListItemProps) { return (
-

+

{session.problem_summary || 'Untitled session'}

{session.problem_domain && ( - + {session.problem_domain} )} @@ -39,7 +39,7 @@ export function AISessionListItem({ session }: AISessionListItemProps) { {config.label} - + {session.step_count} steps @@ -50,7 +50,7 @@ export function AISessionListItem({ session }: AISessionListItemProps) {
{session.session_rating && ( - + {'★'.repeat(session.session_rating)} )} diff --git a/frontend/src/components/flowpilot/ConfidenceIndicator.tsx b/frontend/src/components/flowpilot/ConfidenceIndicator.tsx index 484c2566..0db26e65 100644 --- a/frontend/src/components/flowpilot/ConfidenceIndicator.tsx +++ b/frontend/src/components/flowpilot/ConfidenceIndicator.tsx @@ -30,12 +30,12 @@ export function ConfidenceIndicator({ tier, score, className }: ConfidenceIndica return (
- {config.label} + {config.label} {/* Tooltip */} -
-

{config.description}

-

+

+

{config.description}

+

Confidence: {Math.round(score * 100)}%

diff --git a/frontend/src/components/flowpilot/EscalateModal.tsx b/frontend/src/components/flowpilot/EscalateModal.tsx index 4ba06fd7..49bbfd65 100644 --- a/frontend/src/components/flowpilot/EscalateModal.tsx +++ b/frontend/src/components/flowpilot/EscalateModal.tsx @@ -43,7 +43,7 @@ export function EscalateModal({ open, onClose, onEscalate, isProcessing, hasPsaT
-