feat(dashboard): dynamic agent metrics + model list from config, no more hardcoded data
CI - Build & Test / Backend (.NET) (push) Failing after 23s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 15s
CI - Build & Test / Security Check (push) Successful in 3s

This commit is contained in:
2026-06-11 16:01:33 +02:00
parent 45c6b24928
commit c29740a466
4 changed files with 266 additions and 11 deletions
+7 -3
View File
@@ -77,6 +77,9 @@ interface DashboardAgentInfo {
currentTask: string
description?: string
tags?: string[]
progress?: number
workload?: number
goal?: string | null
}
interface DashboardOperationEntry {
@@ -217,9 +220,10 @@ function enrichAgent(api: DashboardAgentInfo): AgentNodeData {
color: catalog.color ?? '#6b7385',
icon: catalog.icon ?? 'bot',
hero: catalog.hero ?? false,
goal: catalog.goal ?? 'No goal set',
progress: catalog.progress ?? 0,
workload: catalog.workload ?? 0,
// Use API-provided values with catalog fallback for metrics
goal: api.goal ?? catalog.goal ?? 'No goal set',
progress: api.progress ?? catalog.progress ?? 0,
workload: api.workload ?? catalog.workload ?? 0,
runtimeSeconds: 0,
workingFeed: catalog.workingFeed ?? [],
thinkingStream: catalog.thinkingStream ?? [],