🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Load mobile-menu.js on all pages with the hamburger button
Omega (QA)a88d341ef821
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 14d00c0..a22b929 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,6 +13,8 @@- _Files: `frontend/js/components/tagManager.js`_### Fixed+- **Dead mobile menu button on most pages fixed:** every page renders the hamburger `.mobile-menu-toggle` button and the `#mobileMenuPanel` markup, but only settings-new.html loaded `mobile-menu.js` — tapping the menu on index, status, register, about, and the password-reset pages did nothing. The script is now included on all pages that render the toggle. Found by a dedicated mobile QA pass (390px viewport, touch): menu opens/closes via button, overlay, and Escape on every page; nav links navigate; no horizontal overflow; no new JS errors.+ - _Files: `frontend/index.html`, `frontend/status.html`, `frontend/register.html`, `frontend/about.html`, `frontend/reset-password.html`, `frontend/reset-password-request.html`- **Missing file download 500 fixed:** `GET /api/files/<missing>` returned HTTP 500 because `serve_file` let `send_from_directory`'s NotFound fall into the generic 500 handler. It now checks existence up front and returns a JSON 404 ("File not found"), matching the `/secure-file/` route. Non-owners still get 403 without leaking file existence. Found by the daily QA sweep.- _Files: `backend/file_routes.py`- **Same-second file-upload collision fixed:** stored upload filenames used a second-resolution timestamp only, so two uploads of the same filename within one second shared a storage path and the second overwrote the first. Filenames now include a random suffix (`unique_upload_filename()` helper, applied to invoice/manual/photo/other-document uploads in both add and update). Found by the daily QA sweep.diff --git a/frontend/about.html b/frontend/about.htmlindex 57cd89e..f05c47e 100644--- a/frontend/about.html+++ b/frontend/about.html@@ -32,6 +32,7 @@<script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script --><script src="js/i18n.js?v=20250119001"></script>+ <script src="mobile-menu.js?v=20250119002" defer></script><style>.about-hero {diff --git a/frontend/index.html b/frontend/index.htmlindex fe1b7fa..8f9f181 100644--- a/frontend/index.html+++ b/frontend/index.html@@ -41,6 +41,7 @@<!-- i18n Configuration --><script src="js/i18n.js?v=20250119001"></script>+ <script src="mobile-menu.js?v=20250119002" defer></script><!-- Immediate authentication check script --><script>diff --git a/frontend/register.html b/frontend/register.htmlindex 168bce4..c583585 100644--- a/frontend/register.html+++ b/frontend/register.html@@ -27,6 +27,7 @@<script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script --><script src="js/i18n.js?v=20250119001"></script>+ <script src="mobile-menu.js?v=20250119002" defer></script><!-- Load fix for auth buttons --><script src="fix-auth-buttons-loader.js?v=20250119001"></script><script src="script.js?v=20250119001" defer></script>diff --git a/frontend/reset-password-request.html b/frontend/reset-password-request.htmlindex 2e7c3a9..76b3e9b 100644--- a/frontend/reset-password-request.html+++ b/frontend/reset-password-request.html@@ -24,6 +24,7 @@<script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script --><script src="js/i18n.js?v=20250119001"></script>+ <script src="mobile-menu.js?v=20250119002" defer></script><!-- Load fix for auth buttons --><script src="fix-auth-buttons-loader.js?v=20250119001"></script><script src="script.js?v=20250119001" defer></script>diff --git a/frontend/reset-password.html b/frontend/reset-password.htmlindex f8a0b13..936c702 100644--- a/frontend/reset-password.html+++ b/frontend/reset-password.html@@ -24,6 +24,7 @@<script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script --><script src="js/i18n.js?v=20250119001"></script>+ <script src="mobile-menu.js?v=20250119002" defer></script><!-- Load fix for auth buttons --><script src="fix-auth-buttons-loader.js?v=20250119001"></script><script src="script.js?v=20250119001" defer></script>diff --git a/frontend/status.html b/frontend/status.htmlindex 0a72c9d..0793006 100644--- a/frontend/status.html+++ b/frontend/status.html@@ -35,6 +35,7 @@<script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script --><script src="js/i18n.js?v=20250119001"></script>+ <script src="mobile-menu.js?v=20250119002" defer></script><!-- Load fix for auth buttons --><script src="fix-auth-buttons-loader.js?v=20250119001"></script><script src="script.js?v=20260518002" defer></script> <!-- Added script.js -->