Skip to content

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

Add Model Number display to Global View warranty cards

sassanix557ad8eee728
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f2d5185..872a4c0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,5 @@
# Changelog
-## 0.10.1.15 - 2025-10-09
+## 0.10.1.15 - 2025-10-06
### Fixed
@@ -9,6 +9,10 @@
- Cache bust: Bumped `script.js` and service worker cache to ensure clients receive the updated logic.
- Files: `backend/warranties_routes.py`, `frontend/script.js`, `frontend/sw.js`, `frontend/index.html`, `frontend/status.html`
+- Global view: Model Number now displays on warranty cards:
+ - Backend: Included `model_number` in global and archived global warranty queries so the UI can render it.
+ - Files: `backend/warranties_routes.py`
+
### Added
- Model Number field added to warranties:
- Backend: Added `model_number` column and wired through GET/POST/PUT.
diff --git a/backend/warranties_routes.py b/backend/warranties_routes.py
index f64840f..404feec 100644
--- a/backend/warranties_routes.py
+++ b/backend/warranties_routes.py
@@ -1547,7 +1547,7 @@ def get_global_warranties():
w.product_url, w.notes, w.purchase_price, w.user_id, w.created_at, w.updated_at, w.is_lifetime,
w.vendor, w.warranty_type, w.warranty_duration_years, w.warranty_duration_months, w.warranty_duration_days, w.product_photo_path, w.currency,
w.paperless_invoice_id, w.paperless_manual_id, w.paperless_photo_id, w.paperless_other_id,
- w.invoice_url, w.manual_url, w.other_document_url,
+ w.invoice_url, w.manual_url, w.other_document_url, w.model_number,
u.username, u.email, u.first_name, u.last_name,
CASE
WHEN EXISTS (
@@ -1660,7 +1660,7 @@ def get_global_warranties_archived():
w.product_url, w.notes, w.purchase_price, w.user_id, w.created_at, w.updated_at, w.is_lifetime,
w.vendor, w.warranty_type, w.warranty_duration_years, w.warranty_duration_months, w.warranty_duration_days, w.product_photo_path, w.currency,
w.paperless_invoice_id, w.paperless_manual_id, w.paperless_photo_id, w.paperless_other_id,
- w.invoice_url, w.manual_url, w.other_document_url,
+ w.invoice_url, w.manual_url, w.other_document_url, w.model_number,
u.username, u.email, u.first_name, u.last_name,
CASE
WHEN EXISTS (