From f9d298c7f016370c2dd9337607245093269a36a4 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Fri, 21 Aug 2026 11:22:58 -0400 Subject: [PATCH] Name the toner on the forecast, keep the number on the hover The forecast identified a cartridge by its part number alone. 'W2020X' only tells you which toner it is once you already know, and both places that name a supply - the Order now list and the Part column - showed nothing else, so the report read as a list of codes. Both now show marketingname, which is what the box says: '414X Black'. The part number moves to the title attribute, one hover away, because it is still the thing an order is placed against. A supply with no name on file falls back to the number rather than showing an empty cell; marketingname is nullable. 'Copy list' is deliberately untouched. It writes the part number verbatim, which is what purchasing pastes into an order, and a spec pins that the name does NOT reach that text. firstPart() now returns the whole part row rather than its number, since the cell needs both halves. It has one caller. Dropped the .partnumber style with its .unmapped variant: nothing renders that class any more, and the variant was already dead - the unmapped block lists no part number by definition. Verified by mounting the component against a fixture. The dev box has no Zabbix, so the page itself has no rows to look at there. --- .../printers/frontend/views/TonerForecast.vue | 29 ++++- .../frontend/views/tonerForecastNames.spec.js | 110 ++++++++++++++++++ 2 files changed, 134 insertions(+), 5 deletions(-) create mode 100644 plugins/printers/frontend/views/tonerForecastNames.spec.js diff --git a/plugins/printers/frontend/views/TonerForecast.vue b/plugins/printers/frontend/views/TonerForecast.vue index 6d254b8..dac785a 100644 --- a/plugins/printers/frontend/views/TonerForecast.vue +++ b/plugins/printers/frontend/views/TonerForecast.vue @@ -42,7 +42,11 @@