diff --git a/frontend/src/components/dashboard/custom-agents-section.tsx b/frontend/src/components/dashboard/custom-agents-section.tsx index f1ef8f81..42052420 100644 --- a/frontend/src/components/dashboard/custom-agents-section.tsx +++ b/frontend/src/components/dashboard/custom-agents-section.tsx @@ -19,6 +19,17 @@ interface CustomAgentsSectionProps { onAgentSelect?: (templateId: string) => void; } +const TitleSection = () => ( +
+

+ Choose specialised agent +

+

+ Ready-to-use AI agents for specific tasks +

+
+); + export function CustomAgentsSection({ onAgentSelect }: CustomAgentsSectionProps) { const router = useRouter(); const { data: templates, isLoading, error } = useKortixTeamTemplates(); @@ -129,17 +140,10 @@ export function CustomAgentsSection({ onAgentSelect }: CustomAgentsSectionProps) if (isLoading) { return (
-
-

- Choose specialised agent -

-

- Ready-to-use AI agents for specific tasks -

-
-
+ +
{[1, 2, 3, 4, 5, 6].map((i) => ( -
+
@@ -155,14 +159,7 @@ export function CustomAgentsSection({ onAgentSelect }: CustomAgentsSectionProps) if (error) { return (
-
-

- Choose specialised agent -

-

- Ready-to-use AI agents for specific tasks -

-
+

Failed to load custom agents

@@ -174,14 +171,7 @@ export function CustomAgentsSection({ onAgentSelect }: CustomAgentsSectionProps) if (!templates || templates.length === 0) { return (
-
-

- Choose specialised agent -

-

- Ready-to-use AI agents for specific tasks -

-
+

No custom agents available yet

@@ -192,20 +182,13 @@ export function CustomAgentsSection({ onAgentSelect }: CustomAgentsSectionProps) return ( <>
-
-

- Choose specialised agent -

-

- Ready-to-use AI agents for specific tasks -

-
-
+ +
{templates.slice(0, 8).map((template) => (
handleCardClick(template)}