🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Fix Archived card stuck at 0: pass archived count through dashboard init
Omega (QA)1d9d6a04b414
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 151da94..7a743cc 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -112,7 +112,7 @@- **Archived Warranties Counted in Dashboard Statistics:** Fixed dashboard statistics (total/active/expired/expiring-soon) including archived warranties.- **Root Cause:** The statistics queries in `statistics_routes.py` never filtered on `archived_at`, so archiving a warranty left all dashboard cards unchanged.- - **Solution:** Both `/api/statistics` and `/api/statistics/global` now exclude archived warranties from all counts, the expiration timeline, and the recent-warranties list. A new `archived` count is returned by both endpoints and shown as an "Archived" card on the dashboard.+ - **Solution:** Both `/api/statistics` and `/api/statistics/global` now exclude archived warranties from all counts, the expiration timeline, and the recent-warranties list. A new `archived` count is returned by both endpoints and shown as an "Archived" card on the dashboard. The dashboard init was also fixed to pass the `archived` value through to the summary cards (it was being dropped, leaving the card stuck at 0).- _Files: `backend/statistics_routes.py`, `frontend/status.html`, `frontend/status.js`, `locales/en/translation.json`_## 1.0.2 - 2025-10-30diff --git a/frontend/status.js b/frontend/status.jsindex dbcb637..d07aee2 100644--- a/frontend/status.js+++ b/frontend/status.js@@ -928,7 +928,8 @@active: data.active || 0,expiring_soon: data.expiring_soon || 0,expired: data.expired || 0,- total: data.total || 0+ total: data.total || 0,+ archived: data.archived || 0};if (Object.keys(statusDistributionData).length > 0 && statusDistributionData.total > 0) {