🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Fix UI layout, translation issues, caching bugs, and enhance CSV import & tag updates
sassanix818ceb50841f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d9622b9..6ef9379 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,70 @@# Changelog+## 0.10.1.6 - 2025-07-13++### Fixed+- **Warranty Card Layout Improvement:** Moved warranty status row to the bottom of warranty cards in both grid and list views for better visual hierarchy and consistent card structure.+ - **Root Cause:** Status information appeared in the middle of warranty cards, breaking visual flow.+ - **Solution:** Relocated warranty status row to appear after document links and tags at the bottom of each card.+ - **Impact:** Improved card readability and consistent layout across all view modes.+ - _Files: `frontend/script.js`_++- **Tag Management Real-Time Updates:** Fixed issue where tag changes (color updates, name changes) in the manage tags modal did not immediately reflect in warranty cards and UI elements.+ - **Root Cause:** Tag updates only refreshed the management modal but not the main warranty display or related UI components.+ - **Solution:** Enhanced updateTag() and deleteTag() functions to update all UI elements including warranty cards, selected tags, filter dropdowns, and edit forms.+ - **Impact:** Tag changes now appear instantly throughout the application without requiring page refresh.+ - _Files: `frontend/script.js`_++- **Missing Tag-Related Translations:** Resolved issue where tag management success and error messages displayed as translation keys instead of localized text across all supported languages.+ - **Root Cause:** Tag-related message keys (tag_updated_successfully, tag_created_successfully, etc.) were missing from translation files.+ - **Solution:** Added complete set of tag management translations to all 17 language files including success messages, error messages, and validation text.+ - **Impact:** Users now see properly localized tag management messages in their preferred language.+ - **Languages Updated:** English, French, Spanish, German, Italian, Dutch, Russian, Czech, Portuguese, Japanese, Korean, Chinese (Simplified & Traditional), Hindi, Arabic, Persian, Ukrainian.+ - _Files: All `locales/*/translation.json` files_++- **Update Caching Issues:** Resolved errors during application updates caused by browser and service worker caching of outdated assets.+ - Configured `nginx.conf` with no-cache headers for `sw.js` to ensure fresh service worker loads on updates.+ - Updated service worker cache name in `frontend/sw.js` to 'warracker-cache-v20250119001' and added version parameters to all cached assets.+ - Incremented version query parameters (?v=20250119001) across all HTML files to force cache busting for CSS, JS, and other assets.+ - Temporarily added version parameter to service worker registration in `frontend/script.js`, removed after nginx configuration handles it going forward.+ - Verified complete removal of previous version strings and consistent application across all frontend files.++_Files: `nginx.conf`, `frontend/sw.js`, `frontend/script.js`, all frontend HTML files (index.html, status.html, settings-new.html, login.html, register.html, reset-password-request.html, reset-password.html, about.html, auth-redirect.html, debug-export.html)_++- **Docker Compose Command Duplication Fix:** Resolved update issues by removing redundant migration and permission commands from the root `docker-compose.yml`, preventing duplicated execution and startup errors.++_Files: `docker-compose.yml`_++- **Flexible Date Parsing in CSV Import:** Enhanced CSV import to support multiple date formats for the PurchaseDate field using dateutil.parser, removing the strict YYYY-MM-DD requirement.+ - **Root Cause:** Import required exact YYYY-MM-DD format, failing on other common formats.+ - **Solution:** Replaced strict datetime.strptime with flexible dateutil.parser.parse in backend/app.py.+ - **Impact:** Users can now import warranties with various date formats without manual reformatting.+ - _Files: `backend/app.py`_++- **Warranty Duration Selection Limit:** Fixed limitation preventing selection above 11 months for warranty durations. Removed backend validation caps on months (<12) and days (<366), increased years limit to 999, and updated frontend input maximums to 999 months and 9999 days for flexible entry. Added migration to adjust database constraints accordingly.+ - _Files: `backend/app.py`, `frontend/index.html`, `frontend/status.html`, `backend/migrations/042_allow_higher_duration_components.sql`_+- **Paperless-ngx Duplicate Document Handling:** Added detection of duplicate documents during upload to Paperless-ngx. When a duplicate is found, the system automatically links to the existing document and displays an informative message to the user.+ - **Root Cause:** Previous implementation did not check for duplicates before upload, leading to generic error messages.+ - **Solution:** Added checksum-based duplicate check before upload in backend/paperless_handler.py and handled linking in frontend/script.js.+ - **Impact:** Users now get clear feedback about duplicates and automatic linking instead of upload failures.+ - _Files: `backend/paperless_handler.py`, `backend/app.py`, `frontend/script.js`_++ - **Database Migration Permission Fix:** Resolved 'no permission to create role' errors during initial setup by granting CREATEROLE privilege to the db_user in a new early migration and removing duplicate grants in later migrations. This ensures smooth database initialization without requiring superuser privileges.+ - _Files: `backend/migrations/009z_grant_createrole_to_db_user.sql`, `backend/migrations/011_ensure_admin_permissions.sql`_++- **Missing Translation for Warranty Addition Success Message:** Resolved issue where the success message displayed as a placeholder key ('messages.warranty_added_successfully') instead of the translated text.+ - Added the key and appropriate translations to all supported languages in `translation.json` files.+ - Updated English and French `.po` files for backend consistency.+ - Ensures proper localized success messages appear when adding warranties in any language.++ _Files: All `locales/*/translation.json`, `locales/en/LC_MESSAGES/messages.po`, `locales/fr/LC_MESSAGES/messages.po`_++- **Product Photo Loading Fix:** Fixed issue where product photos would disappear when navigating between pages, specifically when returning from the status page to the homepage.+ - **Root Cause:** The renderWarranties function was calling a non-existent `initializeSecureImages()` function, causing JavaScript errors that prevented secure image loading.+ - **Solution:** Replaced the incorrect `initializeSecureImages()` function call with the correct `loadSecureImages()` function.+ - **Impact:** Product photos now load consistently across all page navigation scenarios with proper authentication.+ - _Files: `frontend/script.js`_+## 0.10.1.5 - 2025-07-08### Enhanced@@ -576,8 +641,6 @@- **Blueprint Verification:** Confirmed `oidc_bp` Blueprint is properly registered and functional at `/api/oidc/*` endpoints- _Files: `backend/app.py`_--## 0.10.1.0 - 2025-06-10### Addeddiff --git a/backend/app.py b/backend/app.pyindex b4a6aa0..4f6464f 100644--- a/backend/app.py+++ b/backend/app.py@@ -43,6 +43,7 @@ import io # Added for CSV importfrom dateutil.relativedelta import relativedeltaimport mimetypesimport requests+from dateutil.parser import parse as date_parse# Configure logging FIRST - before any other initializationlogging.basicConfig(level=logging.INFO)@@ -494,15 +495,10 @@ def add_warranty():if warranty_duration_years < 0 or warranty_duration_months < 0 or warranty_duration_days < 0:return jsonify({"error": "Warranty duration components cannot be negative."}), 400- if warranty_duration_months >= 12:- return jsonify({"error": "Warranty months must be less than 12."}), 400- # Add a reasonable upper limit for days, e.g., 365, though relativedelta handles it.- if warranty_duration_days >= 366: # A bit more than a typical month- return jsonify({"error": "Warranty days seem too high."}), 400if warranty_duration_years == 0 and warranty_duration_months == 0 and warranty_duration_days == 0:return jsonify({"error": "Warranty duration must be specified for non-lifetime warranties."}), 400- if warranty_duration_years > 100: # Keep a reasonable upper limit for years- return jsonify({"error": "Warranty years must be 100 or less"}), 400+ if warranty_duration_years > 999:+ return jsonify({"error": "Warranty years must be 999 or less"}), 400except ValueError:return jsonify({"error": "Warranty duration components must be valid numbers."}), 400@@ -898,15 +894,10 @@ def update_warranty(warranty_id):if warranty_duration_years < 0 or warranty_duration_months < 0 or warranty_duration_days < 0:return jsonify({"error": "Warranty duration components cannot be negative."}), 400- if warranty_duration_months >= 12:- return jsonify({"error": "Warranty months must be less than 12."}), 400- # Add a reasonable upper limit for days, e.g., 365, though relativedelta handles it.- if warranty_duration_days >= 366: # A bit more than a typical month- return jsonify({"error": "Warranty days seem too high."}), 400if warranty_duration_years == 0 and warranty_duration_months == 0 and warranty_duration_days == 0:return jsonify({"error": "Warranty duration must be specified for non-lifetime warranties."}), 400- if warranty_duration_years > 100: # Keep a reasonable upper limit for years- return jsonify({"error": "Warranty years must be 100 or less"}), 400+ if warranty_duration_years > 999:+ return jsonify({"error": "Warranty years must be 999 or less"}), 400except ValueError:return jsonify({"error": "Warranty duration components must be valid numbers."}), 400@@ -3472,9 +3463,10 @@ def import_warranties():# --- Type/Format Validation ---try:- purchase_date = datetime.strptime(purchase_date_str, '%Y-%m-%d').date()+ purchase_date_dt = date_parse(purchase_date_str)+ purchase_date = purchase_date_dt.date()except ValueError:- errors.append("Invalid PurchaseDate format. Use YYYY-MM-DD.")+ errors.append("Invalid PurchaseDate format.")purchase_date = None # Set to None to prevent further errorsis_lifetime = is_lifetime_str == 'true'@@ -3491,14 +3483,10 @@ def import_warranties():if warranty_duration_years < 0 or warranty_duration_months < 0 or warranty_duration_days < 0:errors.append("Warranty duration components cannot be negative.")- if warranty_duration_months >= 12:- errors.append("WarrantyDurationMonths must be less than 12.")- if warranty_duration_days >= 366: # Basic check- errors.append("WarrantyDurationDays seems too high.")if warranty_duration_years == 0 and warranty_duration_months == 0 and warranty_duration_days == 0:errors.append("Warranty duration (Years, Months, or Days) is required unless IsLifetime is TRUE.")- if warranty_duration_years > 100:- errors.append("WarrantyDurationYears must be 100 or less.")+ if warranty_duration_years > 999:+ errors.append("WarrantyDurationYears must be 999 or less.")except ValueError:errors.append("WarrantyDurationYears, WarrantyDurationMonths, WarrantyDurationDays must be valid numbers.")@@ -4259,8 +4247,9 @@ def paperless_upload():logger.warning(f"Upload failed: {message}")return jsonify({"success": False,+ "document_id": document_id,"error": message- }), 500+ }), 200except Exception as e:logger.error(f"Error in Paperless upload proxy: {e}", exc_info=True)diff --git a/backend/migrations/009z_grant_createrole_to_db_user.sql b/backend/migrations/009z_grant_createrole_to_db_user.sqlnew file mode 100644index 0000000..682414a--- /dev/null+++ b/backend/migrations/009z_grant_createrole_to_db_user.sql@@ -0,0 +1,3 @@+-- Migration: Grant CREATEROLE to db_user before admin role configuration++ALTER ROLE %(db_user)s WITH CREATEROLE;\ No newline at end of filediff --git a/backend/migrations/011_ensure_admin_permissions.sql b/backend/migrations/011_ensure_admin_permissions.sqlindex 48bfb18..ad23520 100644--- a/backend/migrations/011_ensure_admin_permissions.sql+++ b/backend/migrations/011_ensure_admin_permissions.sql@@ -10,7 +10,7 @@ GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO %(db_user)s;GRANT ALL PRIVILEGES ON ALL FUNCTIONS IN SCHEMA public TO %(db_user)s;-- Ensure role can create and manage roles-ALTER ROLE %(db_user)s WITH CREATEROLE;+-- ALTER ROLE %(db_user)s WITH CREATEROLE;-- Create a function to ensure the db_user is the owner of all database objectsDO $$diff --git a/backend/migrations/042_allow_higher_duration_components.sql b/backend/migrations/042_allow_higher_duration_components.sqlnew file mode 100644index 0000000..f8aa81e--- /dev/null+++ b/backend/migrations/042_allow_higher_duration_components.sql@@ -0,0 +1,13 @@+-- Migration: Allow higher values for warranty duration months and days++DO $$+BEGIN+ ALTER TABLE warranties DROP CONSTRAINT IF EXISTS chk_warranty_duration_months;+ ALTER TABLE warranties ADD CONSTRAINT chk_warranty_duration_months CHECK (warranty_duration_months >= 0);++ ALTER TABLE warranties DROP CONSTRAINT IF EXISTS chk_warranty_duration_days;+ ALTER TABLE warranties ADD CONSTRAINT chk_warranty_duration_days CHECK (warranty_duration_days >= 0);++ ALTER TABLE warranties DROP CONSTRAINT IF EXISTS chk_warranty_duration_years;+ ALTER TABLE warranties ADD CONSTRAINT chk_warranty_duration_years CHECK (warranty_duration_years >= 0);+END $$;\ No newline at end of filediff --git a/backend/paperless_handler.py b/backend/paperless_handler.pyindex 42d0cf2..737693a 100644--- a/backend/paperless_handler.py+++ b/backend/paperless_handler.py@@ -10,6 +10,7 @@ import loggingfrom typing import Optional, Dict, Any, Tupleimport osfrom io import BytesIO+import hashliblogger = logging.getLogger(__name__)@@ -59,21 +60,104 @@ class PaperlessHandler:except Exception as e:return False, f"Unexpected error: {str(e)}"- def upload_document(self, file_content: bytes, filename: str, title: Optional[str] = None,- tags: Optional[list] = None, correspondent: Optional[str] = None) -> Tuple[bool, Optional[int], str]:+ def find_document_by_checksum(self, checksum: str) -> Tuple[bool, Optional[int], str]:+"""- Upload a document to Paperless-ngx++ Find a document by its checksum in Paperless-ngx++Args:- file_content: Binary content of the file- filename: Original filename- title: Optional title for the document- tags: Optional list of tag names- correspondent: Optional correspondent name++ checksum: Document checksum to search for++Returns:+(success: bool, document_id: Optional[int], message: str)+"""++ try:++ logger.info(f"Searching for document by checksum: {checksum}")++++ response = self.session.get(++ f'{self.paperless_url}/api/documents/',++ params={++ 'checksum': checksum,++ 'ordering': '-created',++ 'page_size': 1++ },++ timeout=15++ )++++ response.raise_for_status()++ result = response.json()++++ if 'results' in result and result['results']:++ document = result['results'][0]++ document_id = document.get('id')++ logger.info(f"Found existing document with checksum {checksum}: ID {document_id}")++ return True, document_id, f"Found existing document: ID {document_id}"++ else:++ return False, None, "No document found with matching checksum"++++ except requests.exceptions.HTTPError as e:++ logger.error(f"HTTP error searching by checksum: {e}")++ return False, None, f"Search failed: HTTP {e.response.status_code}"++ except Exception as e:++ logger.error(f"Error searching by checksum: {e}")++ return False, None, f"Search failed: {str(e)}"++++ def upload_document(self, file_content: bytes, filename: str, title: Optional[str] = None,++ tags: Optional[list] = None, correspondent: Optional[str] = None) -> Tuple[bool, Optional[int], str]:++ # Check for duplicate by checksum before uploading++ checksum = hashlib.md5(file_content).hexdigest()++ success, existing_id, msg = self.find_document_by_checksum(checksum)++ if success:++ return False, existing_id, "The file that is being uploaded to Paperless is a duplicate."+++try:# Detect MIME type from filenameimport mimetypesdiff --git a/docker-compose.yml b/docker-compose.ymlindex 928a68b..3b9efd4 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -46,9 +46,6 @@ services:restart: unless-stoppedcommand: >bash -c "- cd /app && ls -la /app/migrations &&- python /app/migrations/apply_migrations.py &&- python /app/fix_permissions.py &&exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf"diff --git a/frontend/about.html b/frontend/about.htmlindex 50867d9..76927fc 100644--- a/frontend/about.html+++ b/frontend/about.html@@ -14,23 +14,23 @@<link rel="manifest" href="manifest.json"><!-- Stylesheets -->- <link rel="stylesheet" href="style.css?v=20250118003"> <!-- Main stylesheet -->- <link rel="stylesheet" href="styles.css?v=20250118003"> <!-- Additional styles -->+ <link rel="stylesheet" href="style.css?v=20250119001"> <!-- Main stylesheet -->+ <link rel="stylesheet" href="styles.css?v=20250119001"> <!-- Additional styles --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <!-- Font Awesome -->- <link rel="stylesheet" href="header-fix.css?v=20250118003"> <!-- Header specific styles -->+ <link rel="stylesheet" href="header-fix.css?v=20250119001"> <!-- Header specific styles --><!-- Mobile Header specific styles -->- <link rel="stylesheet" href="mobile-header.css?v=20250118003">+ <link rel="stylesheet" href="mobile-header.css?v=20250119001"><!-- Scripts loaded in head -->- <script src="theme-loader.js?v=20250118003"></script> <!-- Apply theme early -->- <script src="include-auth-new.js?v=20250118003"></script> <!-- Handles auth state display -->- <script src="fix-auth-buttons-loader.js?v=20250118003"></script> <!-- Fixes auth button display timing -->+ <script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early -->+ <script src="include-auth-new.js?v=20250119001"></script> <!-- Handles auth state display -->+ <script src="fix-auth-buttons-loader.js?v=20250119001"></script> <!-- Fixes auth button display timing --><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script><style>.about-hero {@@ -318,7 +318,7 @@<!-- Hero Section --><div class="about-hero"><h1><i class="fas fa-shield-alt"></i> Warracker</h1>- <div class="version" id="versionDisplay" data-i18n="about.version">Version v0.10.1.5</div>+ <div class="version" id="versionDisplay" data-i18n="about.version">Version v0.10.1.6</div><p class="description" data-i18n="about.description">A comprehensive warranty management system designed to help you track, organize, and manage all your product warranties in one secure, user-friendly platform.</p>@@ -392,16 +392,16 @@</div><!-- Scripts loaded at the end of body -->- <script src="auth.js"></script>+ <script src="auth.js?v=20250119001"></script><!-- Version Checker -->- <script src="version-checker.js"></script>+ <script src="version-checker.js?v=20250119001" defer></script> <!-- Version checker script --><!-- Footer Width Fix -->- <script src="footer-fix.js"></script>+ <script src="footer-fix.js?v=20250119001"></script><!-- Footer Content Manager -->- <script src="footer-content.js"></script>+ <script src="footer-content.js?v=20250119001"></script><!-- Powered by Warracker Footer --><footer class="warracker-footer" id="warrackerFooter">diff --git a/frontend/auth-redirect.html b/frontend/auth-redirect.htmlindex 8a3dc98..5633dfa 100644--- a/frontend/auth-redirect.html+++ b/frontend/auth-redirect.html@@ -4,8 +4,8 @@<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Authenticating...</title>- <link rel="stylesheet" href="style.css?v=20250118003">- <script src="theme-loader.js?v=20250118003"></script>+ <link rel="stylesheet" href="style.css?v=20250119001">+ <script src="theme-loader.js?v=20250119001"></script><style>body {display: flex;@@ -159,20 +159,20 @@</script><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n Configuration -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script>- <script src="auth-redirect.js?v=20250118003"></script>+ <script src="auth-redirect.js?v=20250119001"></script><!-- Footer Width Fix -->- <script src="footer-fix.js?v=20250118003"></script>+ <script src="footer-fix.js?v=20250119001"></script><!-- Footer Content Manager -->- <script src="footer-content.js?v=20250118003"></script>+ <script src="footer-content.js?v=20250119001"></script><!-- Powered by Warracker Footer --><footer class="warracker-footer" id="warrackerFooter">diff --git a/frontend/debug-export.html b/frontend/debug-export.htmlindex bebbf17..f681e50 100644--- a/frontend/debug-export.html+++ b/frontend/debug-export.html@@ -106,12 +106,12 @@</div><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n Configuration -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script><script>let warranties = [];diff --git a/frontend/index.html b/frontend/index.htmlindex 75ea482..3c08958 100644--- a/frontend/index.html+++ b/frontend/index.html@@ -2,13 +2,13 @@<html><head><!-- Authentication redirect script -->- <script src="auth-redirect.js?v=20250118003" data-protected="true"></script>+ <script src="auth-redirect.js?v=20250119001" data-protected="true"></script><!-- Include authentication script first to handle login state immediately -->- <script src="include-auth-new.js?v=20250118003"></script>+ <script src="include-auth-new.js?v=20250119001"></script><!-- File utilities script for secure file handling -->- <script src="file-utils.js?v=20250118003"></script>+ <script src="file-utils.js?v=20250119001"></script><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">@@ -22,25 +22,25 @@<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2"><link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png"><link rel="manifest" href="manifest.json">- <link rel="stylesheet" href="style.css?v=20250118003">- <script src="theme-loader.js?v=20250118003"></script> <!-- Apply theme early -->+ <link rel="stylesheet" href="style.css?v=20250119001">+ <script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early --><!-- Font Awesome for icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><!-- Load header fix styles to ensure consistent header styling -->- <link rel="stylesheet" href="header-fix.css?v=20250118003">+ <link rel="stylesheet" href="header-fix.css?v=20250119001"><!-- Load fix for auth buttons -->- <script src="fix-auth-buttons-loader.js?v=20250118003"></script>+ <script src="fix-auth-buttons-loader.js?v=20250119001"></script><!-- Mobile Header specific styles -->- <link rel="stylesheet" href="mobile-header.css?v=20250118003">+ <link rel="stylesheet" href="mobile-header.css?v=20250119001"><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n Configuration -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script><!-- Immediate authentication check script --><script>@@ -95,7 +95,7 @@</script><!-- Registration status check script -->- <script src="registration-status.js?v=20250118003"></script>+ <script src="registration-status.js?v=20250119001"></script></head><body><!-- Header -->@@ -387,15 +387,15 @@<label for="warrantyDurationYears" data-i18n="warranties.warranty_period">Warranty Period</label><div class="duration-inputs"><div>- <input type="number" id="warrantyDurationYears" name="warranty_duration_years" class="form-control" min="0" max="100" data-i18n-placeholder="warranties.years_placeholder" placeholder="Years">+ <input type="number" id="warrantyDurationYears" name="warranty_duration_years" class="form-control" min="0" max="999" data-i18n-placeholder="warranties.years_placeholder" placeholder="Years"><small data-i18n="warranties.years">Years</small></div><div>- <input type="number" id="warrantyDurationMonths" name="warranty_duration_months" class="form-control" min="0" max="11" data-i18n-placeholder="warranties.months_placeholder" placeholder="Months">+ <input type="number" id="warrantyDurationMonths" name="warranty_duration_months" class="form-control" min="0" max="999" data-i18n-placeholder="warranties.months_placeholder" placeholder="Months"><small data-i18n="warranties.months">Months</small></div><div>- <input type="number" id="warrantyDurationDays" name="warranty_duration_days" class="form-control" min="0" max="365" data-i18n-placeholder="warranties.days_placeholder" placeholder="Days">+ <input type="number" id="warrantyDurationDays" name="warranty_duration_days" class="form-control" min="0" max="9999" data-i18n-placeholder="warranties.days_placeholder" placeholder="Days"><small data-i18n="warranties.days">Days</small></div></div>@@ -768,15 +768,15 @@<label for="editWarrantyDurationYears" data-i18n="warranties.warranty_period">Warranty Period</label><div class="duration-inputs"><div>- <input type="number" id="editWarrantyDurationYears" name="warranty_duration_years" class="form-control" min="0" max="100" data-i18n-placeholder="warranties.years_placeholder" placeholder="Years">+ <input type="number" id="editWarrantyDurationYears" name="warranty_duration_years" class="form-control" min="0" max="999" data-i18n-placeholder="warranties.years_placeholder" placeholder="Years"><small data-i18n="warranties.years">Years</small></div><div>- <input type="number" id="editWarrantyDurationMonths" name="warranty_duration_months" class="form-control" min="0" max="11" data-i18n-placeholder="warranties.months_placeholder" placeholder="Months">+ <input type="number" id="editWarrantyDurationMonths" name="warranty_duration_months" class="form-control" min="0" max="999" data-i18n-placeholder="warranties.months_placeholder" placeholder="Months"><small data-i18n="warranties.months">Months</small></div><div>- <input type="number" id="editWarrantyDurationDays" name="warranty_duration_days" class="form-control" min="0" max="365" data-i18n-placeholder="warranties.days_placeholder" placeholder="Days">+ <input type="number" id="editWarrantyDurationDays" name="warranty_duration_days" class="form-control" min="0" max="9999" data-i18n-placeholder="warranties.days_placeholder" placeholder="Days"><small data-i18n="warranties.days">Days</small></div></div>@@ -1090,14 +1090,14 @@<div class="loading-spinner"></div></div>- <script src="auth.js?v=20250118003"></script>- <script src="script.js?v=20250118003"></script>+ <script src="auth.js?v=20250119001"></script>+ <script src="script.js?v=20250119001"></script><!-- Footer Width Fix -->- <script src="footer-fix.js?v=20250118003"></script>+ <script src="footer-fix.js?v=20250119001"></script><!-- Footer Content Manager -->- <script src="footer-content.js?v=20250118003"></script>+ <script src="footer-content.js?v=20250119001"></script><!-- Powered by Warracker Footer --><footer class="warracker-footer" id="warrackerFooter">diff --git a/frontend/login.html b/frontend/login.htmlindex f4d30d0..0cbe57e 100644--- a/frontend/login.html+++ b/frontend/login.html@@ -2,7 +2,7 @@<html><head><!-- Authentication redirect script -->- <script src="auth-redirect.js?v=20250118003" data-protected="false"></script>+ <script src="auth-redirect.js?v=20250119001" data-protected="false"></script><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">@@ -13,20 +13,20 @@<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2"><link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png"><link rel="manifest" href="manifest.json">- <link rel="stylesheet" href="style.css?v=20250118003">- <script src="theme-loader.js?v=20250118003"></script> <!-- Apply theme early -->+ <link rel="stylesheet" href="style.css?v=20250119001">+ <script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early --><!-- Font Awesome for icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><!-- Load header fix styles to ensure consistent header styling -->- <link rel="stylesheet" href="header-fix.css?v=20250118003">+ <link rel="stylesheet" href="header-fix.css?v=20250119001"><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script><!-- Load fix for auth buttons -->- <script src="fix-auth-buttons-loader.js?v=20250118003"></script>+ <script src="fix-auth-buttons-loader.js?v=20250119001"></script><style>.auth-container {max-width: 400px;@@ -249,7 +249,7 @@</style><!-- Registration status check script -->- <script src="registration-status.js?v=20250118003"></script>+ <script src="registration-status.js?v=20250119001"></script></head><body><!-- Header -->@@ -307,13 +307,13 @@</div><!-- Script for authentication -->- <script src="auth.js?v=20250118003"></script>+ <script src="auth.js?v=20250119001"></script><!-- Footer Width Fix -->- <script src="footer-fix.js?v=20250118003"></script>+ <script src="footer-fix.js?v=20250119001"></script><!-- Footer Content Manager -->- <script src="footer-content.js?v=20250118003"></script>+ <script src="footer-content.js?v=20250119001"></script><!-- Powered by Warracker Footer --><footer class="warracker-footer" id="warrackerFooter">diff --git a/frontend/register.html b/frontend/register.htmlindex 6638fb0..e470f95 100644--- a/frontend/register.html+++ b/frontend/register.html@@ -2,7 +2,7 @@<html><head><!-- Authentication redirect script -->- <script src="auth-redirect.js?v=20250118003" data-protected="false"></script>+ <script src="auth-redirect.js?v=20250119001" data-protected="false"></script><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">@@ -13,20 +13,20 @@<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2"><link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png"><link rel="manifest" href="manifest.json">- <link rel="stylesheet" href="style.css?v=20250118003">- <script src="theme-loader.js?v=20250118003"></script> <!-- Apply theme early -->+ <link rel="stylesheet" href="style.css?v=20250119001">+ <script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early --><!-- Font Awesome for icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><!-- Load header fix styles to ensure consistent header styling -->- <link rel="stylesheet" href="header-fix.css?v=20250118003">+ <link rel="stylesheet" href="header-fix.css?v=20250119001"><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script><!-- Load fix for auth buttons -->- <script src="fix-auth-buttons-loader.js?v=20250118003"></script>+ <script src="fix-auth-buttons-loader.js?v=20250119001"></script><style>.auth-container {max-width: 500px;@@ -234,7 +234,7 @@</style><!-- Registration status check script -->- <script src="registration-status.js?v=20250118003"></script>+ <script src="registration-status.js?v=20250119001"></script><script>// Additional handling for the register pagedocument.addEventListener('DOMContentLoaded', function() {@@ -369,7 +369,7 @@</div><!-- Script for authentication -->- <script src="auth.js?v=20250118003"></script>+ <script src="auth.js?v=20250119001"></script><script>document.addEventListener('DOMContentLoaded', function() {const registerForm = document.getElementById('registerForm');@@ -611,10 +611,10 @@</script><!-- Footer Width Fix -->- <script src="footer-fix.js?v=20250118003"></script>+ <script src="footer-fix.js?v=20250119001"></script><!-- Footer Content Manager -->- <script src="footer-content.js?v=20250118003"></script>+ <script src="footer-content.js?v=20250119001"></script><!-- Powered by Warracker Footer --><footer class="warracker-footer" id="warrackerFooter">diff --git a/frontend/reset-password-request.html b/frontend/reset-password-request.htmlindex cf31971..fad8a6b 100644--- a/frontend/reset-password-request.html+++ b/frontend/reset-password-request.html@@ -10,20 +10,20 @@<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2"><link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png"><link rel="manifest" href="manifest.json">- <link rel="stylesheet" href="style.css?v=20250118003">- <script src="theme-loader.js?v=20250118003"></script> <!-- Apply theme early -->+ <link rel="stylesheet" href="style.css?v=20250119001">+ <script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early --><!-- Font Awesome for icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><!-- Load header fix styles to ensure consistent header styling -->- <link rel="stylesheet" href="header-fix.css?v=20250118003">+ <link rel="stylesheet" href="header-fix.css?v=20250119001"><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script><!-- Load fix for auth buttons -->- <script src="fix-auth-buttons-loader.js?v=20250118003"></script>+ <script src="fix-auth-buttons-loader.js?v=20250119001"></script><style>.auth-container {max-width: 400px;@@ -94,7 +94,7 @@</style><!-- Registration status check script -->- <script src="registration-status.js?v=20250118003"></script>+ <script src="registration-status.js?v=20250119001"></script></head><body><!-- Header -->@@ -251,13 +251,13 @@document.addEventListener('DOMContentLoaded', initializeTheme);</script>- <script src="auth.js?v=20250118003"></script>+ <script src="auth.js?v=20250119001"></script><!-- Footer Width Fix -->- <script src="footer-fix.js?v=20250118003"></script>+ <script src="footer-fix.js?v=20250119001"></script><!-- Footer Content Manager -->- <script src="footer-content.js?v=20250118003"></script>+ <script src="footer-content.js?v=20250119001"></script><!-- Powered by Warracker Footer --><footer class="warracker-footer" id="warrackerFooter">diff --git a/frontend/reset-password.html b/frontend/reset-password.htmlindex 3454766..19148fd 100644--- a/frontend/reset-password.html+++ b/frontend/reset-password.html@@ -10,20 +10,20 @@<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2"><link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png"><link rel="manifest" href="manifest.json">- <link rel="stylesheet" href="style.css?v=20250118003">- <script src="theme-loader.js?v=20250118003"></script> <!-- Apply theme early -->+ <link rel="stylesheet" href="style.css?v=20250119001">+ <script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early --><!-- Font Awesome for icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><!-- Load header fix styles to ensure consistent header styling -->- <link rel="stylesheet" href="header-fix.css?v=20250118003">+ <link rel="stylesheet" href="header-fix.css?v=20250119001"><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script><!-- Load fix for auth buttons -->- <script src="fix-auth-buttons-loader.js?v=20250118003"></script>+ <script src="fix-auth-buttons-loader.js?v=20250119001"></script><style>.auth-container {max-width: 400px;@@ -151,7 +151,7 @@</style><!-- Registration status check script -->- <script src="registration-status.js?v=20250118003"></script>+ <script src="registration-status.js?v=20250119001"></script></head><body><!-- Header -->@@ -418,13 +418,13 @@</script><!-- Scripts -->- <script src="auth.js?v=20250118003"></script>+ <script src="auth.js?v=20250119001"></script><!-- Footer Width Fix -->- <script src="footer-fix.js?v=20250118003"></script>+ <script src="footer-fix.js?v=20250119001"></script><!-- Footer Content Manager -->- <script src="footer-content.js?v=20250118003"></script>+ <script src="footer-content.js?v=20250119001"></script><!-- Powered by Warracker Footer --><footer class="warracker-footer" id="warrackerFooter">diff --git a/frontend/script.js b/frontend/script.jsindex 0c8b3b6..8f4d15c 100644--- a/frontend/script.js+++ b/frontend/script.js@@ -1754,8 +1754,8 @@ function processWarrantyData(warranty) {window.i18next.t('warranties.day', {count: daysRemaining}) :`day${daysRemaining !== 1 ? 's' : ''}`;processedWarranty.statusText = window.i18next ?- window.i18next.t('warranties.expiring_soon_days', {days: daysRemaining, dayText: dayText}) :- `Expiring Soon (${daysRemaining} day${daysRemaining !== 1 ? 's' : ''})`;+ window.i18next.t('warranties.days_remaining', {days: daysRemaining, dayText: dayText}) :+ `${daysRemaining} day${daysRemaining !== 1 ? 's' : ''} remaining`;} else {processedWarranty.status = 'active';const dayText = window.i18next ?@@ -2285,6 +2285,8 @@ async function renderWarranties(warrantiesToRender) {notesLinkHtml = `<a href="#" class="notes-link" data-id="${warranty.id}" title="View Notes"><i class='fas fa-sticky-note'></i> ${notesLabel}</a>`;}+ const hasDocuments = warranty.product_url || warranty.invoice_path || warranty.manual_path || warranty.other_document_path || hasNotes;+// Get current user ID to check warranty ownershipconst currentUserId = (() => {try {@@ -2358,9 +2360,7 @@ async function renderWarranties(warrantiesToRender) {${warranty.warranty_type ? `<div><i class="fas fa-shield-alt"></i> ${window.i18next ? window.i18next.t('warranties.type') : 'Type'}: <span>${warranty.warranty_type}</span></div>` : ''}</div></div>- <div class="warranty-status-row status-${statusClass}">- <span>${statusText}</span>- </div>+ ${hasDocuments ? `<div class="document-links-row"><div class="document-links-inner-container">${warranty.product_url ? `@@ -2374,7 +2374,11 @@ async function renderWarranties(warrantiesToRender) {${notesLinkHtml}</div></div>+ ` : ''}${tagsHtml}+ <div class="warranty-status-row status-${statusClass}">+ <span>${statusText}</span>+ </div>`;} else if (currentView === 'list') {// List view HTML structure@@ -2417,9 +2421,7 @@ async function renderWarranties(warrantiesToRender) {${warranty.warranty_type ? `<div><i class="fas fa-shield-alt"></i> ${window.i18next ? window.i18next.t('warranties.type') : 'Type'}: <span>${warranty.warranty_type}</span></div>` : ''}</div></div>- <div class="warranty-status-row status-${statusClass}">- <span>${statusText}</span>- </div>+ ${hasDocuments ? `<div class="document-links-row"><div class="document-links-inner-container">${warranty.product_url ? `@@ -2433,7 +2435,11 @@ async function renderWarranties(warrantiesToRender) {${notesLinkHtml}</div></div>+ ` : ''}${tagsHtml}+ <div class="warranty-status-row status-${statusClass}">+ <span>${statusText}</span>+ </div>`;} else if (currentView === 'table') {// Table view HTML structure@@ -2479,6 +2485,7 @@ async function renderWarranties(warrantiesToRender) {<div class="warranty-status-row status-${statusClass}"><span>${statusText}</span></div>+ ${hasDocuments ? `<div class="document-links-row"><div class="document-links-inner-container">${warranty.product_url ? `@@ -2492,6 +2499,7 @@ async function renderWarranties(warrantiesToRender) {${notesLinkHtml}</div></div>+ ` : ''}${tagsHtml}`;}@@ -2542,7 +2550,56 @@ async function renderWarranties(warrantiesToRender) {});// Load secure images with authentication after rendering- setTimeout(() => loadSecureImages(), 100); // Small delay to ensure DOM is updated+ loadSecureImages();++ // Improved: Align card heights after all images have loaded+ if (currentView === 'grid') {+ const cards = warrantiesList.querySelectorAll('.warranty-card');+ if (cards.length > 0) {+ const images = warrantiesList.querySelectorAll('.secure-image');+ let loadedCount = 0;+ const totalImages = images.length;++ const alignHeights = () => {+ let maxHeight = 0;+ cards.forEach(card => {+ card.style.minHeight = ''; // Reset+ const height = card.getBoundingClientRect().height;+ if (height > maxHeight) maxHeight = height;+ });+ cards.forEach(card => {+ card.style.minHeight = `${maxHeight}px`;+ });+ };++ if (totalImages === 0) {+ alignHeights(); // No images, align immediately+ } else {+ images.forEach(img => {+ if (img.complete) {+ loadedCount++;+ if (loadedCount === totalImages) alignHeights();+ } else {+ img.addEventListener('load', () => {+ loadedCount++;+ if (loadedCount === totalImages) alignHeights();+ });+ img.addEventListener('error', () => {+ loadedCount++;+ if (loadedCount === totalImages) alignHeights();+ });+ }+ });+ }+ }+ }++ // Update the timeline chart if on the status page or appropriate+ if (typeof updateTimelineChart === 'function') {+ updateTimelineChart();+ }++ console.log('Warranties rendered successfully');}function filterWarranties() {@@ -4475,15 +4532,41 @@ function updateTag(id, name, color) {selectedTags[selectedIndex].color = color;}+ // Update tag in editSelectedTags if present+ const editSelectedIndex = editSelectedTags.findIndex(tag => tag.id === id);+ if (editSelectedIndex !== -1) {+ editSelectedTags[editSelectedIndex].name = name;+ editSelectedTags[editSelectedIndex].color = color;+ }++ // Update tags in warranties array+ warranties.forEach(warranty => {+ if (warranty.tags && Array.isArray(warranty.tags)) {+ warranty.tags.forEach(tag => {+ if (tag.id === id) {+ tag.name = name;+ tag.color = color;+ }+ });+ }+ });+// Rerender existing tags and selected tagsrenderExistingTags();renderSelectedTags();+ renderEditSelectedTags();// Update summary if neededif (document.getElementById('summary-tags')) {updateSummary();}+ // Update tag filter dropdown+ populateTagFilter();++ // Re-render warranty cards to show updated tag colors+ renderWarranties(warranties);+showToast(window.t('messages.tag_updated_successfully'), 'success');}).catch(error => {@@ -4535,11 +4618,19 @@ function deleteTag(id) {selectedTags = selectedTags.filter(tag => tag.id !== id);editSelectedTags = editSelectedTags.filter(tag => tag.id !== id);+ // Remove tag from warranties array+ warranties.forEach(warranty => {+ if (warranty.tags && Array.isArray(warranty.tags)) {+ warranty.tags = warranty.tags.filter(tag => tag.id !== id);+ }+ });+// --- FIX: Re-render UI elements ---renderExistingTags(); // Update the list in the modalrenderSelectedTags(); // Update selected tags in the add formrenderEditSelectedTags(); // Update selected tags in the edit formpopulateTagFilter(); // Update the filter dropdown on the main page+ renderWarranties(warranties); // Update warranty cards to remove deleted tag// --- END FIX ---showToast(window.t('messages.tag_deleted_successfully'), 'success');@@ -6839,7 +6930,8 @@ async function uploadToPaperlessNgx(file, documentType) {return {success: true,document_id: result.document_id,- message: result.message+ message: result.message,+ error: result.error // Add this};} catch (error) {@@ -6878,7 +6970,7 @@ async function processPaperlessNgxUploads(formData) {// Upload to Paperless-ngxconst uploadResult = await uploadToPaperlessNgx(file, docType);console.log(`[DEBUG][processPaperlessNgxUploads] uploadResult for ${docType}:`, uploadResult);- if (uploadResult.success) {+ if (uploadResult.success || (uploadResult.error && uploadResult.error.includes("duplicate") && uploadResult.document_id)) {// Map frontend document types to database column namesconst fieldMapping = {'productPhoto': 'paperless_photo_id',@@ -6888,11 +6980,13 @@ async function processPaperlessNgxUploads(formData) {};const dbField = fieldMapping[docType];if (dbField && uploadResult.document_id) {- // Only store the ID if we actually got a document ID (not a task ID)uploads[dbField] = uploadResult.document_id;- console.log(`[Paperless-ngx] ${docType} uploaded successfully, ID: ${uploadResult.document_id}, stored as: ${dbField}`);+ console.log(`[Paperless-ngx] ${docType} uploaded/linked successfully, ID: ${uploadResult.document_id}, stored as: ${dbField}`);// Hide loading screen immediately for direct uploadshidePaperlessUploadLoading();+ if (uploadResult.error && uploadResult.error.includes("duplicate")) {+ showToast("Duplicate document detected in Paperless-ngx. Linked to existing document.", 'info');+ }} else if (dbField && !uploadResult.document_id) {console.log(`[Paperless-ngx] ${docType} uploaded successfully but no document ID received (async processing). Not storing reference.`);// Don't hide loading screen yet - auto-link will handle it@@ -6945,7 +7039,7 @@ async function processEditPaperlessNgxUploads(formData) {// Upload to Paperless-ngxconst uploadResult = await uploadToPaperlessNgx(file, docType);- if (uploadResult.success) {+ if (uploadResult.success || (uploadResult.error && uploadResult.error.includes("duplicate") && uploadResult.document_id)) {// Map frontend document types to database column namesconst fieldMapping = {'productPhoto': 'paperless_photo_id',@@ -6956,11 +7050,13 @@ async function processEditPaperlessNgxUploads(formData) {const dbField = fieldMapping[docType];if (dbField && uploadResult.document_id) {- // Only store the ID if we actually got a document ID (not a task ID)uploads[dbField] = uploadResult.document_id;- console.log(`[Paperless-ngx] ${docType} uploaded successfully (edit), ID: ${uploadResult.document_id}, stored as: ${dbField}`);+ console.log(`[Paperless-ngx] ${docType} uploaded/linked successfully (edit), ID: ${uploadResult.document_id}, stored as: ${dbField}`);// Hide loading screen immediately for direct uploadshidePaperlessUploadLoading();+ if (uploadResult.error && uploadResult.error.includes("duplicate")) {+ showToast("Duplicate document detected in Paperless-ngx. Linked to existing document.", 'info');+ }} else if (dbField && !uploadResult.document_id) {console.log(`[Paperless-ngx] ${docType} uploaded successfully (edit) but no document ID received (async processing). Not storing reference.`);// Don't hide loading screen yet - auto-link will handle itdiff --git a/frontend/settings-new.html b/frontend/settings-new.htmlindex 26e685c..2c69380 100644--- a/frontend/settings-new.html+++ b/frontend/settings-new.html@@ -2,10 +2,10 @@<html><head><!-- Authentication redirect script -->- <script src="auth-redirect.js?v=20250118003" data-protected="true"></script>+ <script src="auth-redirect.js?v=20250119001" data-protected="true"></script><!-- Include authentication script first to handle login state immediately -->- <script src="include-auth-new.js?v=20250118003"></script>+ <script src="include-auth-new.js?v=20250119001"></script><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">@@ -17,30 +17,30 @@<link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png"><link rel="manifest" href="manifest.json"><!-- Load the main site styles first -->- <link rel="stylesheet" href="style.css?v=20250118003">+ <link rel="stylesheet" href="style.css?v=20250119001"><!-- Font Awesome for icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><!-- Then load settings-specific styles -->- <link rel="stylesheet" href="settings-styles.css?v=20250118003">+ <link rel="stylesheet" href="settings-styles.css?v=20250119001"><!-- Apply theme immediately -->- <script src="theme-loader.js?v=20250118003"></script>+ <script src="theme-loader.js?v=20250119001"></script><!-- Load header fix styles last to override any conflicting styles -->- <link rel="stylesheet" href="header-fix.css?v=20250118003">+ <link rel="stylesheet" href="header-fix.css?v=20250119001"><!-- Mobile Header specific styles -->- <link rel="stylesheet" href="mobile-header.css?v=20250118003">+ <link rel="stylesheet" href="mobile-header.css?v=20250119001"><!-- Load fix for auth buttons -->- <script src="fix-auth-buttons-loader.js?v=20250118003"></script>+ <script src="fix-auth-buttons-loader.js?v=20250119001"></script><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n Configuration -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script><!-- Temporary debug script -->- <script src="js/i18n-debug.js?v=20250118003"></script>+ <script src="js/i18n-debug.js?v=20250119001"></script><!-- Immediate authentication check script --><script>@@ -1119,14 +1119,14 @@<div id="toastContainer" class="toast-container"></div><!-- Scripts -->- <script src="auth.js?v=20250118003"></script>- <script src="settings-new.js?v=20250118003"></script>+ <script src="auth.js?v=20250119001"></script>+ <script src="settings-new.js?v=20250119001"></script><!-- Footer Width Fix -->- <script src="footer-fix.js?v=20250118003"></script>+ <script src="footer-fix.js?v=20250119001"></script><!-- Footer Content Manager -->- <script src="footer-content.js?v=20250118003"></script>+ <script src="footer-content.js?v=20250119001"></script><!-- Powered by Warracker Footer --><footer class="warracker-footer" id="warrackerFooter">diff --git a/frontend/status.html b/frontend/status.htmlindex 3bffcee..ea73dad 100644--- a/frontend/status.html+++ b/frontend/status.html@@ -2,13 +2,13 @@<html><head><!-- Authentication redirect script -->- <script src="auth-redirect.js?v=20250118003" data-protected="true"></script>+ <script src="auth-redirect.js?v=20250119001" data-protected="true"></script><!-- Include authentication script first to handle login state immediately -->- <script src="include-auth-new.js?v=20250118003"></script>+ <script src="include-auth-new.js?v=20250119001"></script><!-- File utilities script for secure file handling -->- <script src="file-utils.js?v=20250118003"></script>+ <script src="file-utils.js?v=20250119001"></script><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">@@ -19,24 +19,24 @@<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2"><link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png"><link rel="manifest" href="manifest.json">- <link rel="stylesheet" href="style.css?v=20250118003">- <script src="theme-loader.js?v=20250118003"></script> <!-- Apply theme early -->+ <link rel="stylesheet" href="style.css?v=20250119001">+ <script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early --><!-- Font Awesome for icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><!-- Load header fix styles to ensure consistent header styling -->- <link rel="stylesheet" href="header-fix.css?v=20250118003">+ <link rel="stylesheet" href="header-fix.css?v=20250119001"><!-- Chart.js for visualizations -->- <script src="chart.js?v=20250118003"></script>+ <script src="chart.js?v=20250119001"></script><!-- i18next Local Scripts -->- <script src="js/lib/i18next.min.js?v=20250118003"></script>- <script src="js/lib/i18nextHttpBackend.min.js?v=20250118003"></script>- <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250118003"></script>+ <script src="js/lib/i18next.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextHttpBackend.min.js?v=20250119001"></script>+ <script src="js/lib/i18nextBrowserLanguageDetector.min.js?v=20250119001"></script><!-- i18n initialization script -->- <script src="js/i18n.js?v=20250118003"></script>+ <script src="js/i18n.js?v=20250119001"></script><!-- Load fix for auth buttons -->- <script src="fix-auth-buttons-loader.js?v=20250118003"></script>- <script src="script.js?v=20250118003" defer></script> <!-- Added script.js -->- <script src="status.js?v=20250118003" defer></script> <!-- Status page specific functionality -->+ <script src="fix-auth-buttons-loader.js?v=20250119001"></script>+ <script src="script.js?v=20250119001" defer></script> <!-- Added script.js -->+ <script src="status.js?v=20250119001" defer></script> <!-- Status page specific functionality --><style>.user-menu {position: relative;@@ -587,15 +587,15 @@<label for="editWarrantyDurationYears" data-i18n="warranties.warranty_period">Warranty Period</label><div class="duration-inputs"><div>- <input type="number" id="editWarrantyDurationYears" name="warranty_duration_years" class="form-control" min="0" max="100" data-i18n-placeholder="warranties.years" placeholder="Years">+ <input type="number" id="editWarrantyDurationYears" name="warranty_duration_years" class="form-control" min="0" max="999" data-i18n-placeholder="warranties.years" placeholder="Years"><small data-i18n="warranties.years">Years</small></div><div>- <input type="number" id="editWarrantyDurationMonths" name="warranty_duration_months" class="form-control" min="0" max="11" data-i18n-placeholder="warranties.months" placeholder="Months">+ <input type="number" id="editWarrantyDurationMonths" name="warranty_duration_months" class="form-control" min="0" max="999" data-i18n-placeholder="warranties.months" placeholder="Months"><small data-i18n="warranties.months">Months</small></div><div>- <input type="number" id="editWarrantyDurationDays" name="warranty_duration_days" class="form-control" min="0" max="365" data-i18n-placeholder="warranties.days" placeholder="Days">+ <input type="number" id="editWarrantyDurationDays" name="warranty_duration_days" class="form-control" min="0" max="9999" data-i18n-placeholder="warranties.days" placeholder="Days"><small data-i18n="warranties.days">Days</small></div></div>@@ -787,14 +787,14 @@<div class="loading-spinner"></div></div>- <script src="auth.js?v=20250118003"></script>- <script src="status.js?v=20250118003" defer></script>+ <script src="auth.js?v=20250119001"></script>+ <script src="status.js?v=20250119001" defer></script><!-- Footer Width Fix -->- <script src="footer-fix.js?v=20250118003"></script>+ <script src="footer-fix.js?v=20250119001"></script><!-- Footer Content Manager -->- <script src="footer-content.js?v=20250118003"></script>+ <script src="footer-content.js?v=20250119001"></script><!-- Powered by Warracker Footer --><footer class="warracker-footer" id="warrackerFooter">diff --git a/frontend/style.css b/frontend/style.cssindex 2c02759..dd012bc 100644--- a/frontend/style.css+++ b/frontend/style.css@@ -654,6 +654,7 @@ input.invalid {grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));gap: 20px;margin-top: 20px;+ align-items: stretch; /* Explicitly set to ensure equal heights */}.warranty-card {@@ -665,7 +666,7 @@ input.invalid {border: 1px solid var(--border-color);display: flex;flex-direction: column;- height: auto; /* Allow height to be determined by content */+ /* height: auto; */ /* Remove to allow grid stretch */}.warranty-card:hover {@@ -2418,7 +2419,7 @@ input.invalid {grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));gap: 20px;margin-top: 20px;- grid-auto-flow: row dense; /* Optimize grid item placement */+ align-items: stretch; /* Explicitly set to ensure equal heights */}/* Make cards in grid view dynamic height based on content */diff --git a/frontend/sw.js b/frontend/sw.jsindex 1dfcb41..11a4c21 100644--- a/frontend/sw.js+++ b/frontend/sw.js@@ -1,21 +1,21 @@-const CACHE_NAME = 'warracker-cache-v20250118002';+const CACHE_NAME = 'warracker-cache-v20250119001';const urlsToCache = ['./','./index.html','./settings-new.html','./status.html',- './style.css?v=20250118003',- './settings-styles.css?v=20250118003',- './header-fix.css?v=20250118003',- './mobile-header.css?v=20250118003',- './script.js?v=20250118003',- './auth.js?v=20250118003',- './settings-new.js?v=20250118003',- './status.js?v=20250118003',- './theme-loader.js?v=20250118003',- './footer-fix.js?v=20250118003',- './footer-content.js?v=20250118003',- './js/i18n.js?v=20250118003',+ './style.css?v=20250119001',+ './settings-styles.css?v=20250119001',+ './header-fix.css?v=20250119001',+ './mobile-header.css?v=20250119001',+ './script.js?v=20250119001',+ './auth.js?v=20250119001',+ './settings-new.js?v=20250119001',+ './status.js?v=20250119001',+ './theme-loader.js?v=20250119001',+ './footer-fix.js?v=20250119001',+ './footer-content.js?v=20250119001',+ './js/i18n.js?v=20250119001','./manifest.json','./img/favicon-16x16.png','./img/favicon-32x32.png',diff --git a/frontend/version-checker.js b/frontend/version-checker.jsindex ea0a5f4..f613783 100644--- a/frontend/version-checker.js+++ b/frontend/version-checker.js@@ -1,6 +1,6 @@// Version checker for Warrackerdocument.addEventListener('DOMContentLoaded', () => {- const currentVersion = '0.10.1.5'; // Current version of the application+ const currentVersion = '0.10.1.6'; // Current version of the applicationconst updateStatus = document.getElementById('updateStatus');const updateLink = document.getElementById('updateLink');const versionDisplay = document.getElementById('versionDisplay');diff --git a/locales/ar/translation.json b/locales/ar/translation.jsonindex fe51182..bc24b42 100644--- a/locales/ar/translation.json+++ b/locales/ar/translation.json@@ -476,7 +476,16 @@"preferences_saved_locally_failed_sync": "تم حفظ التفضيلات محليًا، لكن فشل في المزامنة مع الخادم: ","preferences_saved_locally": "تم حفظ التفضيلات محليًا.","correct_errors_in_tab": "يرجى تصحيح الأخطاء في التبويب المظلل قبل المتابعة.",- "please_fill_out_this_field": "يرجى ملء هذا الحقل."+ "please_fill_out_this_field": "يرجى ملء هذا الحقل.",+ "warranty_added_successfully": "تم إضافة الضمان بنجاح",+ "tag_name_required": "اسم العلامة مطلوب",+ "tag_creation_function_not_found": "وظيفة إنشاء العلامة غير موجودة",+ "tag_created_successfully": "تم إنشاء العلامة بنجاح",+ "tag_updated_successfully": "تم تحديث العلامة بنجاح",+ "tag_deleted_successfully": "تم حذف العلامة بنجاح",+ "failed_to_create_tag": "فشل في إنشاء العلامة",+ "failed_to_update_tag": "فشل في تحديث العلامة",+ "failed_to_delete_tag": "فشل في حذف العلامة"},"languages": {"en": "English",diff --git a/locales/cs/translation.json b/locales/cs/translation.jsonindex b429101..b642242 100644--- a/locales/cs/translation.json+++ b/locales/cs/translation.json@@ -83,7 +83,7 @@"warranty_entry_method": "Metoda zadání záruky","warranty_duration_option": "Doba záruky","exact_expiration_option": "Přesné datum vypršení",- "warranty_period": "Záruční doba",+ "warranties_period": "Záruční doba","expiration_date_label": "Datum vypršení","currency": "Měna","add_tags": "Přidat tagy",@@ -474,7 +474,16 @@"preferences_saved_locally_failed_sync": "Předvolby byly uloženy lokálně, ale nepodařilo se je synchronizovat se serverem: ","preferences_saved_locally": "Předvolby byly uloženy lokálně.","correct_errors_in_tab": "Před pokračováním opravte chyby v zvýrazněné záložce.",- "please_fill_out_this_field": "Prosím vyplňte toto pole."+ "please_fill_out_this_field": "Prosím vyplňte toto pole.",+ "warranty_added_successfully": "Záruka byla úspěšně přidána",+ "tag_name_required": "Název tagu je vyžadován",+ "tag_creation_function_not_found": "Funkce pro vytvoření tagu nebyla nalezena",+ "tag_created_successfully": "Tag byl úspěšně vytvořen",+ "tag_updated_successfully": "Tag byl úspěšně aktualizován",+ "tag_deleted_successfully": "Tag byl úspěšně smazán",+ "failed_to_create_tag": "Chyba při vytváření tagu",+ "failed_to_update_tag": "Chyba při aktualizaci tagu",+ "failed_to_delete_tag": "Chyba při mazání tagu"},"languages": {"en": "Angličtina",diff --git a/locales/de/translation.json b/locales/de/translation.jsonindex 1439b2f..a41870a 100644--- a/locales/de/translation.json+++ b/locales/de/translation.json@@ -468,7 +468,16 @@"preferences_saved_locally_failed_sync": "Präferenzen lokal gespeichert, aber Synchronisierung mit dem Server fehlgeschlagen: ","preferences_saved_locally": "Präferenzen lokal gespeichert.","correct_errors_in_tab": "Bitte korrigieren Sie die Fehler im hervorgehobenen Tab, bevor Sie fortfahren.",- "please_fill_out_this_field": "Bitte füllen Sie dieses Feld aus."+ "please_fill_out_this_field": "Bitte füllen Sie dieses Feld aus.",+ "warranty_added_successfully": "Garantie erfolgreich hinzugefügt",+ "tag_name_required": "Tag-Name ist erforderlich",+ "tag_creation_function_not_found": "Tag-Erstellungsfunktion nicht gefunden",+ "tag_created_successfully": "Tag erfolgreich erstellt",+ "tag_updated_successfully": "Tag erfolgreich aktualisiert",+ "tag_deleted_successfully": "Tag erfolgreich gelöscht",+ "failed_to_create_tag": "Fehler beim Erstellen des Tags",+ "failed_to_update_tag": "Fehler beim Aktualisieren des Tags",+ "failed_to_delete_tag": "Fehler beim Löschen des Tags"},"languages": {"en": "Englisch",diff --git a/locales/en/LC_MESSAGES/messages.po b/locales/en/LC_MESSAGES/messages.poindex 13c601b..835ec3e 100644--- a/locales/en/LC_MESSAGES/messages.po+++ b/locales/en/LC_MESSAGES/messages.po@@ -175,3 +175,6 @@ msgstr "An error occurred"#~ msgid "Lifetime"#~ msgstr "Lifetime"+msgid "warranty_added_successfully"+msgstr "Warranty added successfully"+diff --git a/locales/en/translation.json b/locales/en/translation.jsonindex 5963abf..623f7cb 100644--- a/locales/en/translation.json+++ b/locales/en/translation.json@@ -471,7 +471,16 @@"preferences_saved_locally_failed_sync": "Preferences saved locally, but failed to sync with server: ","preferences_saved_locally": "Preferences saved locally.","correct_errors_in_tab": "Please correct the errors in the highlighted tab before continuing.",- "please_fill_out_this_field": "Please fill out this field."+ "please_fill_out_this_field": "Please fill out this field.",+ "warranty_added_successfully": "Warranty added successfully",+ "tag_name_required": "Tag name is required",+ "tag_creation_function_not_found": "Tag creation function not found",+ "tag_created_successfully": "Tag created successfully",+ "tag_updated_successfully": "Tag updated successfully",+ "tag_deleted_successfully": "Tag deleted successfully",+ "failed_to_create_tag": "Failed to create tag",+ "failed_to_update_tag": "Failed to update tag",+ "failed_to_delete_tag": "Failed to delete tag"},"languages": {"en": "English",diff --git a/locales/es/translation.json b/locales/es/translation.jsonindex 6254c16..afbf6bc 100644--- a/locales/es/translation.json+++ b/locales/es/translation.json@@ -470,7 +470,16 @@"preferences_saved_locally_failed_sync": "Preferencias guardadas localmente, pero falló la sincronización con el servidor: ","preferences_saved_locally": "Preferencias guardadas localmente.","correct_errors_in_tab": "Por favor, corrija los errores en la pestaña resaltada antes de continuar.",- "please_fill_out_this_field": "Por favor, complete este campo."+ "please_fill_out_this_field": "Por favor, complete este campo.",+ "warranty_added_successfully": "Garantía agregada con éxito",+ "tag_name_required": "El nombre de la etiqueta es requerido",+ "tag_creation_function_not_found": "Función de creación de etiquetas no encontrada",+ "tag_created_successfully": "Etiqueta creada con éxito",+ "tag_updated_successfully": "Etiqueta actualizada con éxito",+ "tag_deleted_successfully": "Etiqueta eliminada con éxito",+ "failed_to_create_tag": "Error al crear etiqueta",+ "failed_to_update_tag": "Error al actualizar etiqueta",+ "failed_to_delete_tag": "Error al eliminar etiqueta"},"languages": {"en": "English",diff --git a/locales/fa/translation.json b/locales/fa/translation.jsonindex e646633..5119918 100644--- a/locales/fa/translation.json+++ b/locales/fa/translation.json@@ -469,7 +469,16 @@"preferences_saved_locally_failed_sync": "تنظیمات محلی ذخیره شد، اما همگامسازی با سرور ناموفق بود: ","preferences_saved_locally": "تنظیمات محلی ذخیره شد.","correct_errors_in_tab": "لطفاً خطاهای موجود در تب برجسته شده را قبل از ادامه تصحیح کنید.",- "please_fill_out_this_field": "لطفاً این فیلد را پر کنید."+ "please_fill_out_this_field": "لطفاً این فیلد را پر کنید.",+ "warranty_added_successfully": "گارانتی با موفقیت اضافه شد",+ "tag_name_required": "نام برچسب الزامی است",+ "tag_creation_function_not_found": "تابع ایجاد برچسب پیدا نشد",+ "tag_created_successfully": "برچسب با موفقیت ایجاد شد",+ "tag_updated_successfully": "برچسب با موفقیت بهروزرسانی شد",+ "tag_deleted_successfully": "برچسب با موفقیت حذف شد",+ "failed_to_create_tag": "ایجاد برچسب ناموفق بود",+ "failed_to_update_tag": "بهروزرسانی برچسب ناموفق بود",+ "failed_to_delete_tag": "حذف برچسب ناموفق بود"},"languages": {"en": "انگلیسی",diff --git a/locales/fr/LC_MESSAGES/messages.po b/locales/fr/LC_MESSAGES/messages.poindex ce8a988..59f26ec 100644--- a/locales/fr/LC_MESSAGES/messages.po+++ b/locales/fr/LC_MESSAGES/messages.po@@ -175,3 +175,6 @@ msgstr "Une erreur s'est produite"#~ msgid "Lifetime"#~ msgstr "À vie"+msgid "warranty_added_successfully"+msgstr "Garantie ajoutée avec succès"+diff --git a/locales/fr/translation.json b/locales/fr/translation.jsonindex 18f1cf7..cbdc80b 100644--- a/locales/fr/translation.json+++ b/locales/fr/translation.json@@ -470,7 +470,16 @@"preferences_saved_locally_failed_sync": "Préférences enregistrées localement, mais échec de la synchronisation avec le serveur : ","preferences_saved_locally": "Préférences enregistrées localement.","correct_errors_in_tab": "Veuillez corriger les erreurs dans l'onglet mis en évidence avant de continuer.",- "please_fill_out_this_field": "Veuillez remplir ce champ."+ "please_fill_out_this_field": "Veuillez remplir ce champ.",+ "warranty_added_successfully": "Garantie ajoutée avec succès",+ "tag_name_required": "Le nom du tag est requis",+ "tag_creation_function_not_found": "Fonction de création de tag non trouvée",+ "tag_created_successfully": "Tag créé avec succès",+ "tag_updated_successfully": "Tag mis à jour avec succès",+ "tag_deleted_successfully": "Tag supprimé avec succès",+ "failed_to_create_tag": "Échec de la création du tag",+ "failed_to_update_tag": "Échec de la mise à jour du tag",+ "failed_to_delete_tag": "Échec de la suppression du tag"},"languages": {"en": "English",diff --git a/locales/hi/translation.json b/locales/hi/translation.jsonindex d5a7699..eab76f3 100644--- a/locales/hi/translation.json+++ b/locales/hi/translation.json@@ -467,7 +467,16 @@"preferences_saved_locally_failed_sync": "प्राथमिकताएं स्थानीय रूप से सहेजी गईं, लेकिन सर्वर के साथ सिंक करने में विफल: ","preferences_saved_locally": "प्राथमिकताएं स्थानीय रूप से सहेजी गईं।","correct_errors_in_tab": "कृपया जारी रखने से पहले हाइलाइट किए गए टैब में त्रुटियों को सुधारें।",- "please_fill_out_this_field": "कृपया इस फ़ील्ड को भरें।"+ "please_fill_out_this_field": "कृपया इस फ़ील्ड को भरें।",+ "warranty_added_successfully": "वारंटी सफलतापूर्वक जोड़ी गई",+ "tag_name_required": "टैग नाम आवश्यक है",+ "tag_creation_function_not_found": "टैग निर्माण फ़ंक्शन नहीं मिला",+ "tag_created_successfully": "टैग सफलतापूर्वक बनाया गया",+ "tag_updated_successfully": "टैग सफलतापूर्वक अपडेट किया गया",+ "tag_deleted_successfully": "टैग सफलतापूर्वक हटाया गया",+ "failed_to_create_tag": "टैग बनाने में विफल",+ "failed_to_update_tag": "टैग अपडेट करने में विफल",+ "failed_to_delete_tag": "टैग हटाने में विफल"},"languages": {"en": "अंग्रेज़ी",diff --git a/locales/it/translation.json b/locales/it/translation.jsonindex bd3f55d..692ecdc 100644--- a/locales/it/translation.json+++ b/locales/it/translation.json@@ -523,7 +523,16 @@"preferences_saved_locally_failed_sync": "Preferenze salvate localmente, ma impossibile sincronizzare con il server: ","preferences_saved_locally": "Preferenze salvate localmente.","correct_errors_in_tab": "Si prega di correggere gli errori nella scheda evidenziata prima di continuare.",- "please_fill_out_this_field": "Si prega di compilare questo campo."+ "please_fill_out_this_field": "Si prega di compilare questo campo.",+ "warranty_added_successfully": "Garanzia aggiunta con successo",+ "tag_name_required": "Il nome del tag è richiesto",+ "tag_creation_function_not_found": "Funzione di creazione tag non trovata",+ "tag_created_successfully": "Tag creato con successo",+ "tag_updated_successfully": "Tag aggiornato con successo",+ "tag_deleted_successfully": "Tag eliminato con successo",+ "failed_to_create_tag": "Errore nella creazione del tag",+ "failed_to_update_tag": "Errore nell'aggiornamento del tag",+ "failed_to_delete_tag": "Errore nell'eliminazione del tag"},"languages": {"en": "English",diff --git a/locales/ja/translation.json b/locales/ja/translation.jsonindex abb07eb..dfd7cbf 100644--- a/locales/ja/translation.json+++ b/locales/ja/translation.json@@ -469,7 +469,16 @@"preferences_saved_locally_failed_sync": "環境設定はローカルに保存されましたが、サーバーとの同期に失敗しました:","preferences_saved_locally": "環境設定がローカルに保存されました。","correct_errors_in_tab": "続行する前に、ハイライトされたタブのエラーを修正してください。",- "please_fill_out_this_field": "このフィールドを入力してください。"+ "please_fill_out_this_field": "このフィールドを入力してください。",+ "warranty_added_successfully": "保証が正常に追加されました",+ "tag_name_required": "タグ名は必須です",+ "tag_creation_function_not_found": "タグ作成機能が見つかりません",+ "tag_created_successfully": "タグが正常に作成されました",+ "tag_updated_successfully": "タグが正常に更新されました",+ "tag_deleted_successfully": "タグが正常に削除されました",+ "failed_to_create_tag": "タグの作成に失敗しました",+ "failed_to_update_tag": "タグの更新に失敗しました",+ "failed_to_delete_tag": "タグの削除に失敗しました"},"languages": {"en": "English",diff --git a/locales/ko/translation.json b/locales/ko/translation.jsonindex 577f35e..15e6ee1 100644--- a/locales/ko/translation.json+++ b/locales/ko/translation.json@@ -469,7 +469,16 @@"preferences_saved_locally_failed_sync": "환경설정이 로컬에 저장되었지만 서버와 동기화에 실패했습니다: ","preferences_saved_locally": "환경설정이 로컬에 저장되었습니다.","correct_errors_in_tab": "계속하기 전에 강조 표시된 탭의 오류를 수정해 주세요.",- "please_fill_out_this_field": "이 필드를 채워주세요."+ "please_fill_out_this_field": "이 필드를 채워주세요.",+ "warranty_added_successfully": "보증이 성공적으로 추가되었습니다",+ "tag_name_required": "태그 이름이 필요합니다",+ "tag_creation_function_not_found": "태그 생성 기능을 찾을 수 없습니다",+ "tag_created_successfully": "태그가 성공적으로 생성되었습니다",+ "tag_updated_successfully": "태그가 성공적으로 업데이트되었습니다",+ "tag_deleted_successfully": "태그가 성공적으로 삭제되었습니다",+ "failed_to_create_tag": "태그 생성에 실패했습니다",+ "failed_to_update_tag": "태그 업데이트에 실패했습니다",+ "failed_to_delete_tag": "태그 삭제에 실패했습니다"},"languages": {"en": "English",diff --git a/locales/nl/translation.json b/locales/nl/translation.jsonindex 90c3f0c..0f4f8e2 100644--- a/locales/nl/translation.json+++ b/locales/nl/translation.json@@ -468,7 +468,16 @@"preferences_saved_locally_failed_sync": "Voorkeuren lokaal opgeslagen, maar kon niet synchroniseren met server: ","preferences_saved_locally": "Voorkeuren lokaal opgeslagen.","correct_errors_in_tab": "Corrigeer de fouten in het gemarkeerde tabblad voordat u doorgaat.",- "please_fill_out_this_field": "Vul dit veld in."+ "please_fill_out_this_field": "Vul dit veld in.",+ "warranty_added_successfully": "Garantie succesvol toegevoegd",+ "tag_name_required": "Tag naam is vereist",+ "tag_creation_function_not_found": "Tag aanmaak functie niet gevonden",+ "tag_created_successfully": "Tag succesvol aangemaakt",+ "tag_updated_successfully": "Tag succesvol bijgewerkt",+ "tag_deleted_successfully": "Tag succesvol verwijderd",+ "failed_to_create_tag": "Fout bij aanmaken tag",+ "failed_to_update_tag": "Fout bij bijwerken tag",+ "failed_to_delete_tag": "Fout bij verwijderen tag"},"languages": {"en": "Engels",diff --git a/locales/pt/translation.json b/locales/pt/translation.jsonindex e6121b8..7abc738 100644--- a/locales/pt/translation.json+++ b/locales/pt/translation.json@@ -469,7 +469,16 @@"preferences_saved_locally_failed_sync": "Preferências salvas localmente, mas falha ao sincronizar com o servidor: ","preferences_saved_locally": "Preferências salvas localmente.","correct_errors_in_tab": "Por favor, corrija os erros na aba destacada antes de continuar.",- "please_fill_out_this_field": "Por favor, preencha este campo."+ "please_fill_out_this_field": "Por favor, preencha este campo.",+ "warranty_added_successfully": "Garantia adicionada com sucesso",+ "tag_name_required": "Nome da tag é obrigatório",+ "tag_creation_function_not_found": "Função de criação de tag não encontrada",+ "tag_created_successfully": "Tag criada com sucesso",+ "tag_updated_successfully": "Tag atualizada com sucesso",+ "tag_deleted_successfully": "Tag excluída com sucesso",+ "failed_to_create_tag": "Falha ao criar tag",+ "failed_to_update_tag": "Falha ao atualizar tag",+ "failed_to_delete_tag": "Falha ao excluir tag"},"languages": {"en": "English",diff --git a/locales/ru/translation.json b/locales/ru/translation.jsonindex 097ef0a..789a1f2 100644--- a/locales/ru/translation.json+++ b/locales/ru/translation.json@@ -475,7 +475,16 @@"preferences_saved_locally_failed_sync": "Настройки сохранены локально, но не удалось синхронизировать с сервером: ","preferences_saved_locally": "Настройки сохранены локально.","correct_errors_in_tab": "Пожалуйста, исправьте ошибки в выделенной вкладке перед продолжением.",- "please_fill_out_this_field": "Пожалуйста, заполните это поле."+ "please_fill_out_this_field": "Пожалуйста, заполните это поле.",+ "warranty_added_successfully": "Гарантия успешно добавлена",+ "tag_name_required": "Имя тега обязательно",+ "tag_creation_function_not_found": "Функция создания тега не найдена",+ "tag_created_successfully": "Тег успешно создан",+ "tag_updated_successfully": "Тег успешно обновлен",+ "tag_deleted_successfully": "Тег успешно удален",+ "failed_to_create_tag": "Ошибка создания тега",+ "failed_to_update_tag": "Ошибка обновления тега",+ "failed_to_delete_tag": "Ошибка удаления тега"},"languages": {"en": "English",diff --git a/locales/uk/translation.json b/locales/uk/translation.jsonindex 4a14dd8..9efa2ac 100644--- a/locales/uk/translation.json+++ b/locales/uk/translation.json@@ -475,7 +475,16 @@"preferences_saved_locally_failed_sync": "Налаштування збережено локально, але не вдалося синхронізувати з сервером: ","preferences_saved_locally": "Налаштування збережено локально.","correct_errors_in_tab": "Будь ласка, виправте помилки у виділеній вкладці перед продовженням.",- "please_fill_out_this_field": "Будь ласка, заповніть це поле."+ "please_fill_out_this_field": "Будь ласка, заповніть це поле.",+ "warranty_added_successfully": "Гарантія успішно додана",+ "tag_name_required": "Назва тегу обов'язкова",+ "tag_creation_function_not_found": "Функція створення тегу не знайдена",+ "tag_created_successfully": "Тег успішно створено",+ "tag_updated_successfully": "Тег успішно оновлено",+ "tag_deleted_successfully": "Тег успішно видалено",+ "failed_to_create_tag": "Не вдалося створити тег",+ "failed_to_update_tag": "Не вдалося оновити тег",+ "failed_to_delete_tag": "Не вдалося видалити тег"},"languages": {"en": "English",diff --git a/locales/zh_CN/translation.json b/locales/zh_CN/translation.jsonindex 9951457..c7ef3fa 100644--- a/locales/zh_CN/translation.json+++ b/locales/zh_CN/translation.json@@ -469,7 +469,16 @@"preferences_saved_locally_failed_sync": "偏好设置已本地保存,但与服务器同步失败:","preferences_saved_locally": "偏好设置已本地保存。","correct_errors_in_tab": "请在继续之前更正突出显示的选项卡中的错误。",- "please_fill_out_this_field": "请填写此字段。"+ "please_fill_out_this_field": "请填写此字段。",+ "warranty_added_successfully": "保修添加成功",+ "tag_name_required": "标签名称是必需的",+ "tag_creation_function_not_found": "未找到标签创建功能",+ "tag_created_successfully": "标签创建成功",+ "tag_updated_successfully": "标签更新成功",+ "tag_deleted_successfully": "标签删除成功",+ "failed_to_create_tag": "创建标签失败",+ "failed_to_update_tag": "更新标签失败",+ "failed_to_delete_tag": "删除标签失败"},"languages": {"en": "English",diff --git a/locales/zh_HK/translation.json b/locales/zh_HK/translation.jsonindex ca7c124..545e61a 100644--- a/locales/zh_HK/translation.json+++ b/locales/zh_HK/translation.json@@ -469,7 +469,16 @@"preferences_saved_locally_failed_sync": "偏好設定已本地儲存,但與服務器同步失敗:","preferences_saved_locally": "偏好設定已本地儲存。","correct_errors_in_tab": "請在繼續之前更正突出顯示的分頁中的錯誤。",- "please_fill_out_this_field": "請填寫此欄位。"+ "please_fill_out_this_field": "請填寫此欄位。",+ "warranty_added_successfully": "保修已成功新增",+ "tag_name_required": "標籤名稱是必需的",+ "tag_creation_function_not_found": "未找到標籤創建功能",+ "tag_created_successfully": "標籤創建成功",+ "tag_updated_successfully": "標籤更新成功",+ "tag_deleted_successfully": "標籤刪除成功",+ "failed_to_create_tag": "創建標籤失敗",+ "failed_to_update_tag": "更新標籤失敗",+ "failed_to_delete_tag": "刪除標籤失敗"},"languages": {"en": "English",diff --git a/nginx.conf b/nginx.confindex 0d99b75..84da578 100644--- a/nginx.conf+++ b/nginx.conf@@ -108,6 +108,13 @@ server {add_header Cache-Control "public, max-age=604800";}+ # Service Worker - no cache to ensure updates+ location = /sw.js {+ try_files $uri =404;+ add_header Cache-Control "no-cache, no-store, must-revalidate";+ expires -1;+ }+# Static assets (CSS, JS, images)location ~* \.(css|js|jpg|jpeg|png|gif|ico|svg)$ {try_files $uri =404;