From 828a62063b0e474639884eb810ac28bf9db426c9 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Sat, 29 Aug 2026 13:02:32 -0400 Subject: [PATCH] Filter chips on any card that shows a health dot Reported from the Activity card: the header dot was red while every visible row was info, because the critical event was older and sat further down the list. The dot and the list appeared to contradict each other, and the only way to find the critical was to scroll. The dot is computed from all rows the panel received, so a red dot always means a critical IS in the data. The chips are computed from that same array, which means the count sits directly under the dot and the two cannot disagree by construction: the card now reads 'Critical 2 Warning 1 Info 12', and one click surfaces them wherever they sit in time. Derived from the panel's EXISTING status declaration rather than a new one per panel. A card that shows a health dot has already said what it dots on, so Tracked Services and Tracked Processes get chips with no plugin change, and any future list panel with a status rollup does too. Two declarations of the same thing would eventually disagree. Details that matter: a colour-keyed panel is labelled by meaning, so services read Critical and OK rather than Red and Green; chips are ordered worst first rather than alphabetically; and no selection means show everything, not hide everything - a card that emptied when you deselected the last chip would read as broken. Filtering to nothing says so, and gives the hidden count. vitest 267 passed, including the exact reported case. --- frontend/src/components/PluginAssetPanels.vue | 76 ++++++++++++++++++- frontend/src/components/pluginAssetPanels.js | 67 ++++++++++++++++ .../src/components/pluginAssetPanels.spec.js | 67 +++++++++++++++- 3 files changed, 206 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/PluginAssetPanels.vue b/frontend/src/components/PluginAssetPanels.vue index f8e4d3ea..d5b8ab92 100644 --- a/frontend/src/components/PluginAssetPanels.vue +++ b/frontend/src/components/PluginAssetPanels.vue @@ -31,8 +31,25 @@
-