From d609abe60638b91539b2b4540caf2f9ec1a9b082 Mon Sep 17 00:00:00 2001 From: nickviljoen Date: Wed, 11 Mar 2026 11:00:45 +0200 Subject: [PATCH] Tidy agent description display: truncate on home cards, scrollable box on admin table - Home page agent cards show truncated purpose (max 100 chars) instead of full description - Admin dashboard table shows description in a scrollable container (max 80px) Co-Authored-By: Claude Opus 4.6 --- templates/admin/dashboard.html | 2 +- templates/agent_management.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/admin/dashboard.html b/templates/admin/dashboard.html index 9dfa1a5..71ee903 100644 --- a/templates/admin/dashboard.html +++ b/templates/admin/dashboard.html @@ -1171,7 +1171,7 @@ function displayAgents(agents) { ${agent.verification_status === 'needs_verification' ? ' Needs Verification' : ''} ${agent.verification_status === 'verified' ? ' Verified' : ''} - ${agent.agent_description || 'No description'} + ${agent.agent_description ? `
${agent.agent_description}
` : 'No description'}
diff --git a/templates/agent_management.html b/templates/agent_management.html index 466f7ef..ffdd43b 100644 --- a/templates/agent_management.html +++ b/templates/agent_management.html @@ -178,7 +178,7 @@
{{ agent.agent_name }}
- {{ agent.agent_description[:50] }}{% if agent.agent_description|length > 50 %}...{% endif %} + {{ agent.agent_purpose[:80] if agent.agent_purpose else 'No purpose listed' }}{% if agent.agent_purpose and agent.agent_purpose|length > 80 %}...{% endif %}
@@ -730,7 +730,7 @@ function displayAgents(agentsToShow) {
${agent.agent_name}
-

${agent.agent_description || 'No description'}

+

${(agent.agent_purpose || 'No purpose listed').length > 100 ? (agent.agent_purpose || '').substring(0, 100) + '...' : (agent.agent_purpose || 'No purpose listed')}

${agent.agent_status || 'Development'}