feat: enhance AgentHandoffs UI with localized beta label and improved layout

This commit is contained in:
Danny Avila 2025-09-04 14:06:19 -04:00
parent 613be5103b
commit dd72c32a84
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
2 changed files with 8 additions and 2 deletions

View file

@ -126,8 +126,13 @@ const AgentHandoffs: React.FC<AgentHandoffsProps> = ({ field, currentAgentId })
<CircleHelpIcon className="h-4 w-4 text-text-tertiary" />
</HoverCardTrigger>
</div>
<div className="text-xs text-text-secondary">
{edges.length} / {MAX_HANDOFFS}
<div className="flex items-center gap-3">
<div className="rounded-full border border-purple-600/40 bg-purple-500/10 px-2 py-0.5 text-xs font-medium text-purple-700 hover:bg-purple-700/10 dark:text-purple-400">
{localize('com_ui_beta')}
</div>
<div className="text-xs text-text-secondary">
{edges.length} / {MAX_HANDOFFS}
</div>
</div>
</div>
<div className="space-y-1">

View file

@ -668,6 +668,7 @@
"com_ui_transferred_to_agent": "Transferred to {{0}}",
"com_ui_transferred_to": "Transferred to",
"com_ui_handoff_instructions": "Handoff instructions",
"com_ui_beta": "Beta",
"com_ui_agent_delete_error": "There was an error deleting the agent",
"com_ui_agent_deleted": "Successfully deleted agent",
"com_ui_agent_duplicate_error": "There was an error duplicating the agent",