diff --git a/frontend/src/pages/nodes/NodeList.vue b/frontend/src/pages/nodes/NodeList.vue index bd84ecec..73dc6236 100644 --- a/frontend/src/pages/nodes/NodeList.vue +++ b/frontend/src/pages/nodes/NodeList.vue @@ -9,6 +9,9 @@ import { ExclamationCircleOutlined, EyeOutlined, EyeInvisibleOutlined, + InfoCircleOutlined, + MoreOutlined, + RightOutlined, } from '@ant-design/icons-vue'; import NodeHistoryPanel from './NodeHistoryPanel.vue'; @@ -72,6 +75,25 @@ function formatPct(p) { if (typeof p !== 'number' || isNaN(p)) return '-'; return `${p.toFixed(1)}%`; } + +const statsNode = ref(null); +function openStats(node) { + statsNode.value = node; +} +function closeStats() { + statsNode.value = null; +} + +const expandedIds = ref(new Set()); +function toggleExpanded(id) { + const next = new Set(expandedIds.value); + if (next.has(id)) next.delete(id); + else next.add(id); + expandedIds.value = next; +} +function isExpanded(id) { + return expandedIds.value.has(id); +}