Skip to content

🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!

Keep the Total Value popover above the dashboard charts

Omega (QA)119f4553069e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 212818d..5538961 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,8 @@
- _Files: `frontend/js/controllers/warrantyListController.js`_
- **Status page detail now honors global view:** with global view on, a plain user could see another user's warranty row on the status page but expanding it failed, because the detail endpoint restricted non-admins to their own warranties and ignored the global view setting, so no detail panel or Edit button appeared. The endpoint now follows the same rule as the warranty list: with global view enabled and not restricted to admins, any authenticated user may view any warranty. With global view off, or restricted to admins, non-owners are still turned away as before. Editing another user's warranty remains owner and admin only.
- _Files: `backend/warranties_routes.py`, `tests/test_debug_warranty_global_view.py`_
+- **Total Value popover no longer hides behind the charts:** clicking the Total Value card opens a popover explaining how the total is calculated, but the pie chart painted over it on both desktop and mobile, hiding part of the text. The card's hover lift creates a stacking context that trapped the popover below the charts section, no matter how high the popover's own z-index was set. The card now carries its own z-index, so the popover renders above the charts.
+ - _Files: `frontend/style.css`_
- **Edit button greyed out for warranties you cannot edit:** now that the status page detail panel opens for another user's warranty under global view, its Edit button no longer promises an edit that fails on save. For a viewer who is neither the owner nor an admin, the button renders greyed out and disabled and does nothing on click. Owners and admins keep a working Edit button. The same disabled state applies to the Edit Warranty button in the notes modal, which opens from warranty cards. The main page cards already showed no Edit button for other users' warranties, so they are unchanged, and the server side restriction on editing is unchanged. The statistics payloads now carry the owner id for each warranty so the status page can make that decision from its cached list.
- _Files: `frontend/status.js`, `frontend/js/components/notes.js`, `frontend/style.css`, `backend/statistics_routes.py`_
diff --git a/frontend/style.css b/frontend/style.css
index 3de56e2..0ace3af 100644
--- a/frontend/style.css
+++ b/frontend/style.css
@@ -1775,6 +1775,11 @@ input:checked + .toggle-slider:before {
.status-card[data-status="total_value"] {
cursor: pointer;
position: relative;
+ /* The hover lift transform makes this card a stacking context, which
+ traps its popover below the charts that follow it in the page, no
+ matter how high the popover's own z-index is. A z-index on the card
+ keeps the card, and the popover inside it, above the charts. */
+ z-index: 2;
}
.status-card[data-status="total_value"]:focus-visible {