fix(helpdesk): replace cryptic net flow label with arrow indicator

Show ↑3 (growing) or ↓2 (shrinking) instead of '+3 net' / '-2 net'.
Same visual language as the team dashboard trend arrows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 00:34:01 +02:00
parent 201b00c8f5
commit 53db166916

View File

@@ -103,7 +103,8 @@ if (container) {
if (kpis.net_flow !== 0) { if (kpis.net_flow !== 0) {
const flowM = h('span', 'helpdesk-risk-card-metric'); const flowM = h('span', 'helpdesk-risk-card-metric');
flowM.textContent = (kpis.net_flow > 0 ? '+' : '') + kpis.net_flow + ' ' + d('labelNet', 'net'); const arrow = kpis.net_flow > 0 ? '' : '';
flowM.textContent = arrow + Math.abs(kpis.net_flow);
if (kpis.net_flow > 0) flowM.classList.add('helpdesk-risk-card-metric-warn'); if (kpis.net_flow > 0) flowM.classList.add('helpdesk-risk-card-metric-warn');
metrics.appendChild(flowM); metrics.appendChild(flowM);
} }