From e1f1120d92c56dc678a2383a55ca6b165156cee2 Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Sat, 12 Jul 2025 13:54:37 +0530 Subject: [PATCH] Add section cards inside agent config --- .../app/lib/components/editable-field.tsx | 12 +- .../[projectId]/entities/agent_config.tsx | 692 +++++++++--------- .../components/common/section-card.tsx | 36 + 3 files changed, 377 insertions(+), 363 deletions(-) create mode 100644 apps/rowboat/components/common/section-card.tsx diff --git a/apps/rowboat/app/lib/components/editable-field.tsx b/apps/rowboat/app/lib/components/editable-field.tsx index 883b68be..4363e3f1 100644 --- a/apps/rowboat/app/lib/components/editable-field.tsx +++ b/apps/rowboat/app/lib/components/editable-field.tsx @@ -193,19 +193,19 @@ export function EditableField({ {...commonProps} minRows={3} maxRows={20} - className="w-full" + className="w-full text-sm focus-visible:ring-0 focus:ring-0 outline-none" classNames={{ ...commonProps.classNames, - input: "rounded-md py-2", + input: "rounded-md py-2 text-base focus-visible:ring-0 focus:ring-0 outline-none", inputWrapper: "rounded-md border-medium py-1" }} />} {!multiline && (null); + // Sync local state with agent prop + useEffect(() => { + setMaxCallsInput(String(agent.maxCallsPerParentAgent || 3)); + }, [agent.maxCallsPerParentAgent]); + return ( -
+
{agent.name}
setActiveTab(tab)} className={clsx( - "px-4 py-2 text-sm font-medium transition-colors relative", + "px-4 py-2 text-base font-semibold transition-colors relative", activeTab === tab ? "text-indigo-600 dark:text-indigo-400 after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-indigo-500 dark:after:bg-indigo-400" : "text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300" @@ -389,365 +398,332 @@ export function AgentConfig({ {activeTab === 'configurations' && ( -
- {!agent.locked && ( -
- -
-