diff --git a/frontend/src/components/agents/new-agent-dialog.tsx b/frontend/src/components/agents/new-agent-dialog.tsx index d3d41757..030d53f4 100644 --- a/frontend/src/components/agents/new-agent-dialog.tsx +++ b/frontend/src/components/agents/new-agent-dialog.tsx @@ -84,82 +84,56 @@ export function NewAgentDialog({ open, onOpenChange, onSuccess }: NewAgentDialog return ( - - - Create New Agent - - This will create a new agent that you can customize and configure. + + + Create New Agent + + Create a new agent with default settings that you can customize later, or{' '} + + {' '}or{' '} + + . -
-
-
- This will create a new agent with a default name and description that you can customize later. -
-
-
{ - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - if (!isLoading) handleFileImport(); - } - }} - > -
- -
- Import from file -
-
!isLoading && setShowJsonImport(true)} - className="overflow-hidden text-xs w-full items-center gap-2 h-16 border border-input bg-background hover:bg-muted/30 transition-colors rounded-xl cursor-pointer flex disabled:cursor-not-allowed disabled:opacity-50" - role="button" - tabIndex={isLoading ? -1 : 0} - onKeyDown={(e) => { - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - if (!isLoading) setShowJsonImport(true); - } - }} - > -
- -
- Import from JSON -
-
-
- - {/* Hidden file input */} - -
+ {/* Hidden file input */} + - - Cancel + + + Cancel + {createNewAgentMutation.isPending ? ( <> - + Creating... ) : ( <> - + Create Agent )}