From ad947691dfb6f0f6aae754b59f0ca0f96ca1a601 Mon Sep 17 00:00:00 2001 From: Kacper Date: Fri, 2 Jan 2026 00:23:25 +0100 Subject: [PATCH] feat: enhance TaskProgressPanel and AgentOutputModal components - Added defaultExpanded prop to TaskProgressPanel for customizable initial state. - Updated styling in TaskProgressPanel for improved layout and consistency. - Modified AgentOutputModal to utilize the new defaultExpanded prop and adjusted class names for better responsiveness and appearance. - Enhanced overflow handling in AgentOutputModal for improved user experience. --- .../src/components/ui/task-progress-panel.tsx | 19 +++++++++++++------ .../board-view/dialogs/agent-output-modal.tsx | 17 +++++++++-------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/apps/ui/src/components/ui/task-progress-panel.tsx b/apps/ui/src/components/ui/task-progress-panel.tsx index add8d41e..12ebe69e 100644 --- a/apps/ui/src/components/ui/task-progress-panel.tsx +++ b/apps/ui/src/components/ui/task-progress-panel.tsx @@ -19,11 +19,18 @@ interface TaskProgressPanelProps { featureId: string; projectPath?: string; className?: string; + /** Whether the panel starts expanded (default: true) */ + defaultExpanded?: boolean; } -export function TaskProgressPanel({ featureId, projectPath, className }: TaskProgressPanelProps) { +export function TaskProgressPanel({ + featureId, + projectPath, + className, + defaultExpanded = true, +}: TaskProgressPanelProps) { const [tasks, setTasks] = useState([]); - const [isExpanded, setIsExpanded] = useState(true); + const [isExpanded, setIsExpanded] = useState(defaultExpanded); const [isLoading, setIsLoading] = useState(true); const [currentTaskId, setCurrentTaskId] = useState(null); @@ -151,13 +158,13 @@ export function TaskProgressPanel({ featureId, projectPath, className }: TaskPro return (