Spaces:
Sleeping
Sleeping
Commit ·
922337a
1
Parent(s): 9c16219
feat: improve tool call display with emoji prefix in dashboard
Browse files
frontend/src/components/Dashboard.tsx
CHANGED
|
@@ -138,7 +138,9 @@ const StepAccordionItem: React.FC<StepAccordionItemProps> = ({ step, isExpanded,
|
|
| 138 |
<div className="text-left min-w-0 flex-1">
|
| 139 |
<div className="flex items-center gap-2">
|
| 140 |
<span className="text-sm font-medium text-white">
|
| 141 |
-
{isToolCall
|
|
|
|
|
|
|
| 142 |
</span>
|
| 143 |
<Badge
|
| 144 |
variant={step.status === 'completed' ? 'success' : step.status === 'failed' ? 'error' : 'info'}
|
|
|
|
| 138 |
<div className="text-left min-w-0 flex-1">
|
| 139 |
<div className="flex items-center gap-2">
|
| 140 |
<span className="text-sm font-medium text-white">
|
| 141 |
+
{isToolCall
|
| 142 |
+
? (toolName ? `🔧 ${toolName}` : 'Tool Call')
|
| 143 |
+
: step.action.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase())}
|
| 144 |
</span>
|
| 145 |
<Badge
|
| 146 |
variant={step.status === 'completed' ? 'success' : step.status === 'failed' ? 'error' : 'info'}
|