From b9797cbe2111173b9a9d0bf27f2489e6dfac7031 Mon Sep 17 00:00:00 2001 From: AndyMik90 Date: Sat, 20 Dec 2025 13:40:56 +0100 Subject: [PATCH] fix: improve UX for phase configuration in task creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add visual affordances to make it clear that the Phase Configuration section is clickable and editable: - Add pencil icon and "Click to customize" text in collapsed state - Improve hover state on the header - Add labels for Model and Thinking columns in expanded state - Better visual separation between collapsed and expanded states 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../components/AgentProfileSelector.tsx | 131 ++++++++++-------- 1 file changed, 73 insertions(+), 58 deletions(-) diff --git a/auto-claude-ui/src/renderer/components/AgentProfileSelector.tsx b/auto-claude-ui/src/renderer/components/AgentProfileSelector.tsx index 85f0f4c8..88a16942 100644 --- a/auto-claude-ui/src/renderer/components/AgentProfileSelector.tsx +++ b/auto-claude-ui/src/renderer/components/AgentProfileSelector.tsx @@ -8,7 +8,7 @@ * Used in TaskCreationWizard and TaskEditDialog. */ import { useState } from 'react'; -import { Brain, Scale, Zap, Sliders, Sparkles, ChevronDown, ChevronUp } from 'lucide-react'; +import { Brain, Scale, Zap, Sliders, Sparkles, ChevronDown, ChevronUp, Pencil } from 'lucide-react'; import { Label } from './ui/label'; import { Select, @@ -220,28 +220,37 @@ export function AgentProfileSelector({ {/* Auto Profile - Phase Configuration */} {isAuto && ( -
- {/* Phase Summary */} -
- +
+ {showPhaseDetails ? ( + + ) : ( + + )} + - {/* Compact summary when collapsed */} - {!showPhaseDetails && ( + {/* Compact summary when collapsed */} + {!showPhaseDetails && ( +
{(Object.keys(PHASE_LABELS) as Array).map((phase) => { const modelLabel = AVAILABLE_MODELS.find(m => m.value === currentPhaseModels[phase])?.label?.replace('Claude ', '') || currentPhaseModels[phase]; @@ -253,55 +262,61 @@ export function AgentProfileSelector({ ); })}
- )} -
+
+ )} {/* Detailed Phase Configuration */} {showPhaseDetails && ( -
+
{(Object.keys(PHASE_LABELS) as Array).map((phase) => (
-
- - +
+ + +
+
+ + +
))}