mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-29 09:57:31 +08:00
feat: expand node agent routing and media artifacts
This commit is contained in:
@@ -79,6 +79,8 @@ const Dashboard: React.FC = () => {
|
||||
usedTransport: String(item?.used_transport || '-'),
|
||||
fallbackFrom: String(item?.fallback_from || '').trim(),
|
||||
durationMs: Number(item?.duration_ms || 0),
|
||||
artifactCount: Number(item?.artifact_count || 0),
|
||||
artifactKinds: Array.isArray(item?.artifact_kinds) ? item.artifact_kinds.map((kind: any) => String(kind || '').trim()).filter(Boolean) : [],
|
||||
ok: Boolean(item?.ok),
|
||||
error: String(item?.error || '').trim(),
|
||||
}));
|
||||
@@ -287,6 +289,12 @@ const Dashboard: React.FC = () => {
|
||||
<div className="text-zinc-400">{t('dashboardNodeDispatchDuration')}</div>
|
||||
<div className="text-zinc-200 mt-1">{`${item.durationMs}ms`}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-zinc-400">{t('dashboardNodeDispatchArtifacts')}</div>
|
||||
<div className="text-zinc-200 mt-1">
|
||||
{item.artifactCount > 0 ? `${item.artifactCount}${item.artifactKinds.length ? ` · ${item.artifactKinds.join(', ')}` : ''}` : '-'}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-zinc-400">{t('dashboardNodeDispatchError')}</div>
|
||||
<div className={`mt-1 break-all ${item.error ? 'text-rose-300' : 'text-zinc-500'}`}>
|
||||
|
||||
Reference in New Issue
Block a user