diff --git a/frontend/src/components/dashboard/v2/AgentDetailModal.vue b/frontend/src/components/dashboard/v2/AgentDetailModal.vue index 7e5cdab..e1362eb 100644 --- a/frontend/src/components/dashboard/v2/AgentDetailModal.vue +++ b/frontend/src/components/dashboard/v2/AgentDetailModal.vue @@ -12,12 +12,13 @@ */ import { ref, onMounted, onUnmounted, watch } from 'vue' -import type { ThinkingItem, AgentDetail } from './types' +import type { ThinkingItem, AgentDetailData } from './types' +import { formatNumber } from '../../../utils/format' /* ── Props ──────────────────────────────────────────── */ const props = defineProps<{ - agent: AgentDetail + agent: AgentDetailData // Agent-Liste für Pfeilnavigation (IDs in Anzeigereihenfolge) agentOrder: string[] }>() @@ -97,7 +98,7 @@ interface MetricDef { sub?: string } -function getMetrics(a: AgentDetail): MetricDef[] { +function getMetrics(a: AgentDetailData): MetricDef[] { return [ { label: 'Tasks aktiv', @@ -132,12 +133,6 @@ function getMetrics(a: AgentDetail): MetricDef[] { ] } -function formatNumber(n: number): string { - if (n >= 1_000_000) return (n / 1_000_000).toFixed(1) + 'M' - if (n >= 1_000) return (n / 1_000).toFixed(1) + 'k' - return String(n) -} - /* ── Pretty Model Name ────────────────────────────── */ function modelLabel(alias: string): string { @@ -453,18 +448,6 @@ const typeConfig: Record diff --git a/frontend/src/components/dashboard/v2/IrisChat.vue b/frontend/src/components/dashboard/v2/IrisChat.vue index 00424ac..a1c896d 100644 --- a/frontend/src/components/dashboard/v2/IrisChat.vue +++ b/frontend/src/components/dashboard/v2/IrisChat.vue @@ -19,6 +19,7 @@ import type { ChatMessage } from './types' const props = defineProps<{ messages: ChatMessage[] isThinking: boolean + error?: string | null }>() const emit = defineEmits<{ @@ -79,6 +80,12 @@ watch(
+ +
+ + Chat unavailable: {{ error }} +
+
@@ -89,6 +96,11 @@ watch( thinking…
+ +
+ No messages yet. Ask Iris something. +
+