From 219b66dcc68a3e7d0f3be95112bcddb96cb6526a Mon Sep 17 00:00:00 2001 From: AndyMik90 Date: Wed, 17 Dec 2025 23:11:23 +0100 Subject: [PATCH] auto-claude: subtask-1-2 - Add drop zone wrapper around main modal content area - Applied useDroppable ref to main form content div for drag-and-drop - Added visual feedback (ring highlight, background change) when dragging files over the modal - Visual states: blue ring when dragging over (can add), yellow ring when at max capacity - Subtle ring indication when dragging but not over the drop zone - Updated Referenced Files section to show visual feedback only during active drag - Removed the compact collapsed drop zone (now redundant with main wrapper drop zone) --- .../components/TaskCreationWizard.tsx | 57 +++++++------------ 1 file changed, 19 insertions(+), 38 deletions(-) diff --git a/auto-claude-ui/src/renderer/components/TaskCreationWizard.tsx b/auto-claude-ui/src/renderer/components/TaskCreationWizard.tsx index d4cb560d..81c80f34 100644 --- a/auto-claude-ui/src/renderer/components/TaskCreationWizard.tsx +++ b/auto-claude-ui/src/renderer/components/TaskCreationWizard.tsx @@ -458,8 +458,18 @@ export function TaskCreationWizard({ hideCloseButton={showFileExplorer} >
- {/* Form content */} -
+ {/* Form content - Drop zone wrapper */} +
Create New Task @@ -746,19 +756,18 @@ export function TaskCreationWizard({
)} - {/* Referenced Files Section - Drop Zone */} - {showFiles ? ( + {/* Referenced Files Section */} + {showFiles && (
- {/* Drop zone overlay indicator */} - {isOverDropZone && ( + {/* Drop zone overlay indicator - shows when dragging over the modal */} + {activeDragData && isOverDropZone && (
)}
- ) : ( - /* Compact drop zone when section is collapsed - only visible during drag */ - activeDragData && ( -
- - - {isAtMaxFiles ? `Max ${MAX_REFERENCED_FILES} files reached` : 'Drop file here to add reference'} - -
- ) )} {/* Review Requirement Toggle */}