From 2785c0463e2c91edf0eed8c23e1451630ed7b69e Mon Sep 17 00:00:00 2001 From: cproudlock Date: Mon, 10 Aug 2026 10:05:15 -0400 Subject: [PATCH] warranty: use the shared LocationMapTooltip for the machine preview The machine map preview was a bespoke popover. LocationMapTooltip already existed and is what the machine detail page uses, so the warranty tables now show the same thing. That is what was asked for - the preview zooms, as it does on the machine page - and it comes with behaviour the bespoke one did not have: scroll-wheel zoom, and staying open while the pointer is on the tooltip itself so it can actually be read and panned. It also solves the clipping properly. The previous commit reached for position: fixed with a hand-rolled flip because .table-container's overflow-x clipped an absolute child; LocationMapTooltip teleports to body, which avoids the clipping context altogether rather than escaping it. All of that positioning code, and the blueprint rendering, is deleted - 64 lines from 140. An unplaced machine keeps its chip and now says why in the native tooltip rather than showing an empty panel: 17 of the 142 linked machines have no map position, and those rows still need their number. --- .../frontend/components/MachineMapChip.vue | 165 ++++-------------- 1 file changed, 32 insertions(+), 133 deletions(-) diff --git a/plugins/warranty/frontend/components/MachineMapChip.vue b/plugins/warranty/frontend/components/MachineMapChip.vue index 8bfbe9f..4f146b1 100644 --- a/plugins/warranty/frontend/components/MachineMapChip.vue +++ b/plugins/warranty/frontend/components/MachineMapChip.vue @@ -1,115 +1,53 @@