From 703df486f9ebf2d81deee97f936efcde1c971146 Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Wed, 7 May 2025 20:35:50 +0530 Subject: [PATCH] Reduce size of instructions and examples font in agents --- .../app/lib/components/editable-field.tsx | 6 +- .../[projectId]/entities/agent_config.tsx | 732 +++++++++--------- 2 files changed, 389 insertions(+), 349 deletions(-) diff --git a/apps/rowboat/app/lib/components/editable-field.tsx b/apps/rowboat/app/lib/components/editable-field.tsx index 80b97b8e..9a91e5e3 100644 --- a/apps/rowboat/app/lib/components/editable-field.tsx +++ b/apps/rowboat/app/lib/components/editable-field.tsx @@ -235,16 +235,16 @@ export function EditableField({ > {value ? ( <> - {markdown &&
+ {markdown &&
} - {!markdown &&
+ {!markdown &&
} ) : ( <> - {markdown &&
+ {markdown &&
} {!markdown && {placeholder}} diff --git a/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx b/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx index 5b3d7ac4..9f57c993 100644 --- a/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx +++ b/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx @@ -29,6 +29,9 @@ const sectionHeaderStyles = "text-xs font-medium uppercase tracking-wider text-g // Common textarea styles const textareaStyles = "rounded-lg p-3 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-750 focus:shadow-inner focus:ring-2 focus:ring-indigo-500/20 dark:focus:ring-indigo-400/20 placeholder:text-gray-400 dark:placeholder:text-gray-500"; +// Add this type definition after the imports +type TabType = 'configurations' | 'instructions' | 'examples'; + export function AgentConfig({ projectId, workflow, @@ -59,6 +62,7 @@ export function AgentConfig({ const { showPreview } = usePreviewModal(); const [localName, setLocalName] = useState(agent.name); const [nameError, setNameError] = useState(null); + const [activeTab, setActiveTab] = useState('configurations'); useEffect(() => { setLocalName(agent.name); @@ -126,369 +130,405 @@ export function AgentConfig({
} > -
- {!agent.locked && ( -
-
- -
-