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 Turkish translations, archive feature, and major UI/UX enhancements

sassanix69c44a2ab653
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 91640b6..33f1c3a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,96 @@
# Changelog
+## 0.10.1.13 - 2025-09-27
+
+### Added
+- Turkish language support added to all pages (index, about, status, settings) with comprehensive translations for UI elements, messages, and system text.
+ - _Files: `locales/tr/translation.json`_
+
+### Enhanced
+- Modernized Login Page UI with a clean two-column layout (branding showcase + form), refined form controls with icons, improved separator, and provider-branded SSO button styling. Fully responsive and theme-aware (light/dark) with styles scoped to the login page only to prevent regressions elsewhere.
+ - Preserved all original element IDs and existing functionality (local login, OIDC/SSO).
+ - _Files: `frontend/login.html`, `frontend/style.css`_
+
+- Refactored Warranty Filters and Sort UI on Index Page with modern popover-based interface to declutter the main interface while preserving all functionality.
+ - **Filter/Sort Popover System:** Replaced individual filter dropdowns with clean "Filter" and "Sort" buttons that open organized popover panels containing all original filtering and sorting controls.
+ - **Data Management Consolidation:** Combined separate Import/Export buttons into a unified "Data" dropdown menu with Import and Export options.
+ - **Button Styling Unification:** Applied consistent bordered button styling with proper hover states and alignment across Filter, Sort, Data, and Tags buttons.
+ - **Responsive Layout:** Implemented flexible search row layout that wraps gracefully on smaller screens while maintaining button alignment and functionality.
+ - **Theme Compatibility:** All new UI components fully support existing light and dark themes using application CSS variables.
+ - **Zero-Impact Implementation:** Changes strictly limited to `frontend/index.html` and `frontend/style.css` with all original element IDs preserved for JavaScript compatibility.
+ - _Files: `frontend/index.html`, `frontend/style.css`_
+
+- Persisted Filters, Sort, and Indicator Across Sessions:
+ - Saves Status, Tag, Vendor, and Warranty Type filters and Sort selection to localStorage (user-specific prefix) on Apply/change and restores them on load.
+ - Filter indicator (green dot) now reflects persisted state across navigations and reloads.
+ - _Files: `frontend/index.html`, `frontend/script.js`_
+
+- Tag Management and Live Updates:
+ - Auto-save color changes in Manage Tags; changes persist immediately without Edit/Save.
+ - Live UI refresh after tag create/update/delete; tag lists, selections, filters, and warranty cards update without page reload.
+ - CSV import now refreshes the tags list to include any newly created tags.
+ - _Files: `frontend/script.js`_
+
+- Modern Tag Management Modal UI:
+ - `renderExistingTags`: Builds a table with Color, Name, Actions; rows include display spans and hidden inputs to enable inline editing.
+ - `addTagManagementEventListeners`: Delegated handlers for edit, save, cancel, delete, and color changes; attached once per modal open to avoid duplicates.
+ - `editTag`: Toggles the row into inline edit mode by showing inputs and swapping action groups.
+ - `updateTag`: Performs API update; on success, reloads tags and re-renders the modal and dependent UIs (selected tags, filters, warranty cards), then toasts success. `openTagManagementModal` ensures listeners are present.
+ - Styles: Appended “MODERN TAG MANAGEMENT MODAL STYLES” for the table, hover states, color swatch with hidden color input, inline name input, and action groups; uses CSS variables for light/dark compatibility.
+ - Scope/Safety: Changes are confined to the tag management modal UI; CRUD flows preserved. On update/delete, the modal, tags in forms, filter dropdowns, and warranty cards re-render appropriately.
+ - Test: Open Manage Tags to see the table; Edit toggles inline fields; Save updates via API; Cancel restores values; color swatch opens native picker and updates preview; Delete prompts and removes; Create adds rows; all changes reflect on cards and in filters; verify responsiveness and dark theme.
+ - _Files: `frontend/script.js`, `frontend/style.css`_
+
+- Mobile view: Filter/Sort label compaction on small screens
+ - Auto-hide Filter and Sort button text up to 425px (icons-only) to preserve space without changing behavior or popover anchoring.
+ - _Files: `frontend/mobile-header.css`_
+ - 3-row mobile layout: Row 1 is Search (full-width); Row 2 groups Filter | Sort | Data; Row 3 places Tags | View | Scope for better usability on narrow screens.
+ - _Files: `frontend/mobile-header.css`_
+
+### Added
+- Mobile logo and title: On screens ≤768px, a centered Warracker logo with the “Warracker” label is displayed above the login form for better brand presence.
+ - _Files: `frontend/login.html`, `frontend/style.css`_
+
+- Non-Destructive Warranty Archive: Allow users to archive old/expired warranties without deleting data. Archived items are hidden from the default lists and can be viewed via an explicit Archived filter.
+ - Default behavior preserved: main endpoints continue to return only non-archived warranties; no UX change unless Archived filter is selected.
+ - Reversible: users can unarchive items to return them to the main list.
+ - Soft delete only: implemented via `archived_at` timestamp; no DELETEs performed for this feature.
+ - API:
+ - New `GET /api/warranties/archived` (user scope) to fetch archived warranties.
+ - New `PATCH /api/warranties/{id}/archive` with body `{ "archived": true|false }` to toggle archive state.
+ - Existing `GET /api/warranties` updated to exclude archived; global and admin listing endpoints also exclude archived by default.
+ - Database: migration adds nullable `archived_at` column with partial index (`WHERE archived_at IS NULL`).
+ - Notifications: expiring-warranty notifications ignore archived warranties.
+ - Frontend:
+ - Added “Archived” to Status filter; selecting it loads the archived endpoint.
+ - Archive/Unarchive buttons on cards (Edit disabled in archived view). Bottom status row shows “Archived”.
+ - Neutral archived styling (top header and card accents use gray; avoids red/green/orange).
+ - _Files: `backend/migrations/045_add_archived_at_to_warranties.sql`, `backend/warranties_routes.py`, `backend/notifications.py`, `frontend/index.html`, `frontend/script.js`, `frontend/style.css`_
+
+### Fixed
+- Dark mode input visibility: Username/password text and caret now use theme text colors; placeholders use appropriate contrast in both themes.
+- SSO button alignment: Preserved baseline `btn-sso` alignment class while applying provider-specific classes (e.g., Google, GitHub) to keep the button centered and branded.
+- i18n safety: Mapped showcase description to existing translation keys to avoid missing-translation warnings.
+- Mobile usability: Re-enabled scrolling and adjusted spacing to ensure the page fits better on small screens; limited the mobile logo to ≤768px and stacked it above the form.
+ - _Files: `frontend/login.html`, `frontend/style.css`_
+
+- Resolved JavaScript error “Identifier 'isArchivedView' has already been declared” that prevented warranty loading after introducing the Archived filter.
+ - Removed duplicate `const isArchivedView` declaration and streamlined archived-data loading flow.
+ - _Files: `frontend/script.js`_
+
+ - Dark mode navigation consistency (mobile and desktop): unify `.nav-link` hover/active backgrounds across pages so Status behaves like Home when dark mode is enabled.
+ - _Files: `frontend/header-fix.css`_
+
+ - Localization and i18n completeness:
+ - Added empty-archive messages: `messages.no_warranties_found`, `messages.no_warranties_found_add_first` (English base + propagated to all locales) to prevent raw keys.
+ - Added missing Claims section keys to all locales (English placeholders where needed).
+ - Fixed Italian placeholder to use `{{days}} {{dayText}}` for `warranties.days_remaining`.
+ - Added missing `warranty_period` in Czech.
+ - Updated language lists: added `ko` to Portuguese and Japanese.
+ - _Files: `locales/en/translation.json`, `locales/fr/translation.json`, `locales/es/translation.json`, `locales/de/translation.json`, `locales/it/translation.json`, `locales/nl/translation.json`, `locales/cs/translation.json`, `locales/pt/translation.json`, `locales/ru/translation.json`, `locales/uk/translation.json`, `locales/zh_CN/translation.json`, `locales/zh_HK/translation.json`, `locales/ja/translation.json`, `locales/ko/translation.json`, `locales/ar/translation.json`, `locales/fa/translation.json`, `locales/hi/translation.json`_
+
+
+
## 0.10.1.12 - 2025-09-18
### Fixed
diff --git a/backend/auth_routes.py b/backend/auth_routes.py
index 0c5edaf..6d54b73 100644
--- a/backend/auth_routes.py
+++ b/backend/auth_routes.py
@@ -1201,3 +1201,40 @@ def verify_email_change():
# For simplicity, return a basic response
# In a full implementation, this would verify the token and update the email
return jsonify({'message': 'Email verification functionality not fully implemented in this simplified version'}), 501
+
+@auth_bp.route('/user/language-preference', methods=['PUT'])
+@token_required
+def update_language_preference():
+ """Update user language preference"""
+ user_id = request.user['id']
+ try:
+ data = request.get_json()
+ if not data:
+ return jsonify({'message': 'No input data provided'}), 400
+
+ preferred_language = data.get('preferred_language')
+ if not preferred_language:
+ return jsonify({'message': 'Language preference is required'}), 400
+
+ if preferred_language not in SUPPORTED_LANGUAGES:
+ return jsonify({'message': f'Invalid language preference. Supported languages: {", ".join(SUPPORTED_LANGUAGES)}'}), 400
+
+ # Update user's preferred language in database
+ conn = db_handler.get_db_connection()
+ try:
+ with conn.cursor() as cursor:
+ cursor.execute("UPDATE users SET preferred_language = %s WHERE id = %s", (preferred_language, user_id))
+ conn.commit()
+
+ return jsonify({'message': 'Language preference updated successfully'}), 200
+
+ except Exception as e:
+ current_app.logger.error(f"Error updating language preference for user {user_id}: {e}")
+ conn.rollback()
+ return jsonify({'message': 'Failed to update language preference'}), 500
+ finally:
+ db_handler.release_db_connection(conn)
+
+ except Exception as e:
+ current_app.logger.error(f"Error processing language preference update: {e}")
+ return jsonify({'message': 'Internal server error'}), 500
diff --git a/backend/localization.py b/backend/localization.py
index 8712401..7d9bc97 100644
--- a/backend/localization.py
+++ b/backend/localization.py
@@ -11,7 +11,7 @@ import logging
logger = logging.getLogger(__name__)
# Supported languages
-SUPPORTED_LANGUAGES = ['en', 'fr', 'es', 'de', 'it', 'cs', 'nl', 'hi', 'fa', 'ar', 'ru', 'uk', 'zh_CN', 'zh_HK', 'ja', 'pt', 'ko']
+SUPPORTED_LANGUAGES = ['en', 'fr', 'es', 'de', 'it', 'cs', 'nl', 'hi', 'fa', 'ar', 'ru', 'uk', 'zh_CN', 'zh_HK', 'ja', 'pt', 'ko', 'tr']
DEFAULT_LANGUAGE = 'en'
# Global babel instance
@@ -39,7 +39,8 @@ def init_babel(app):
'zh_HK': '繁體中文',
'ja': '日本語',
'pt': 'Português',
- 'ko': '한국어'
+ 'ko': '한국어',
+ 'tr': 'Türkçe'
}
app.config['BABEL_DEFAULT_LOCALE'] = DEFAULT_LANGUAGE
app.config['BABEL_DEFAULT_TIMEZONE'] = 'UTC'
diff --git a/backend/migrations/042_update_language_constraint_tr.py b/backend/migrations/042_update_language_constraint_tr.py
new file mode 100644
index 0000000..dc9afc7
--- /dev/null
+++ b/backend/migrations/042_update_language_constraint_tr.py
@@ -0,0 +1,59 @@
+import logging
+
+try:
+ # Prefer importing the live list so this migration reflects current support
+ from backend.localization import SUPPORTED_LANGUAGES
+except Exception:
+ # Fallback (should not be used if project imports work)
+ SUPPORTED_LANGUAGES = ['en', 'fr', 'es', 'de', 'it', 'cs', 'nl', 'hi', 'fa', 'ar', 'ru', 'uk', 'zh_CN', 'zh_HK', 'ja', 'pt', 'ko', 'tr']
+
+logger = logging.getLogger(__name__)
+
+def apply_migration(conn):
+ """Drop and recreate preferred_language CHECK constraint to include new languages (adds 'tr')."""
+ cur = conn.cursor()
+ try:
+ logger.info("Dropping existing 'chk_users_preferred_language' constraint if it exists…")
+ cur.execute(
+ """
+ DO $$
+ BEGIN
+ IF EXISTS (
+ SELECT 1 FROM information_schema.table_constraints
+ WHERE constraint_name = 'chk_users_preferred_language'
+ AND table_name = 'users'
+ ) THEN
+ ALTER TABLE users DROP CONSTRAINT chk_users_preferred_language;
+ END IF;
+ END $$;
+ """
+ )
+
+ # Build the IN list from supported languages
+ language_list_sql = ", ".join([f"'{lang}'" for lang in SUPPORTED_LANGUAGES])
+
+ logger.info("Creating updated 'chk_users_preferred_language' constraint…")
+ cur.execute(
+ f"""
+ ALTER TABLE users
+ ADD CONSTRAINT chk_users_preferred_language
+ CHECK (preferred_language IN ({language_list_sql}));
+ """
+ )
+
+ cur.execute(
+ f"""
+ COMMENT ON COLUMN users.preferred_language IS 'User preferred language for UI localization (ISO 639-1 code): {', '.join(SUPPORTED_LANGUAGES)}';
+ """
+ )
+
+ conn.commit()
+ logger.info("Language constraint updated successfully.")
+ except Exception as e:
+ conn.rollback()
+ logger.error(f"Error updating language constraint: {e}")
+ raise
+ finally:
+ cur.close()
+
+
diff --git a/backend/migrations/045_add_archived_at_to_warranties.sql b/backend/migrations/045_add_archived_at_to_warranties.sql
new file mode 100644
index 0000000..d1d8420
--- /dev/null
+++ b/backend/migrations/045_add_archived_at_to_warranties.sql
@@ -0,0 +1,4 @@
+ALTER TABLE warranties ADD COLUMN IF NOT EXISTS archived_at TIMESTAMP WITH TIME ZONE DEFAULT NULL;
+CREATE INDEX IF NOT EXISTS idx_warranties_archived_at_null ON warranties (archived_at) WHERE archived_at IS NULL;
+
+
diff --git a/backend/notifications.py b/backend/notifications.py
index 0e28fe1..5a72648 100644
--- a/backend/notifications.py
+++ b/backend/notifications.py
@@ -122,6 +122,7 @@ def get_expiring_warranties(get_db_connection, release_db_connection):
w.is_lifetime = FALSE
AND w.expiration_date > %s
AND w.expiration_date <= (%s::date + (COALESCE(up.expiring_soon_days, 30) || ' days')::interval)::date
+ AND w.archived_at IS NULL
AND u.is_active = TRUE;
""", (today, today))
diff --git a/backend/warranties_routes.py b/backend/warranties_routes.py
index 0a2129f..1cd9b64 100644
--- a/backend/warranties_routes.py
+++ b/backend/warranties_routes.py
@@ -73,7 +73,7 @@ def get_warranties():
END AS claim_status_summary
FROM warranties w
LEFT JOIN warranty_claims c ON w.id = c.warranty_id
- WHERE w.user_id = %s
+ WHERE w.user_id = %s AND w.archived_at IS NULL
GROUP BY w.id
ORDER BY CASE WHEN w.is_lifetime THEN 1 ELSE 0 END, w.expiration_date NULLS LAST, w.product_name
''', (user_id,))
@@ -119,6 +119,71 @@ def get_warranties():
if conn:
release_db_connection(conn)
+@warranties_bp.route('/warranties/archived', methods=['GET'])
+@token_required
+def get_archived_warranties():
+ conn = None
+ try:
+ user_id = request.user['id']
+
+ conn = get_db_connection()
+ with conn.cursor() as cur:
+ cur.execute('''
+ SELECT
+ w.id, w.product_name, w.purchase_date, w.expiration_date, w.invoice_path, w.manual_path, w.other_document_path, 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,
+ CASE
+ WHEN COUNT(c.id) = 0 THEN 'NO_CLAIMS'
+ WHEN BOOL_OR(c.status IN ('Submitted', 'In Progress')) THEN 'OPEN'
+ ELSE 'FINISHED'
+ END AS claim_status_summary
+ FROM warranties w
+ LEFT JOIN warranty_claims c ON w.id = c.warranty_id
+ WHERE w.user_id = %s AND w.archived_at IS NOT NULL
+ GROUP BY w.id
+ ORDER BY w.archived_at DESC NULLS LAST, w.updated_at DESC NULLS LAST, w.product_name
+ ''', (user_id,))
+
+ warranties = cur.fetchall()
+ columns = [desc[0] for desc in cur.description]
+ warranties_list = []
+
+ for row in warranties:
+ warranty_dict = dict(zip(columns, row))
+ for key, value in warranty_dict.items():
+ if isinstance(value, (datetime, date)):
+ warranty_dict[key] = value.isoformat()
+ elif isinstance(value, Decimal):
+ warranty_dict[key] = float(value)
+
+ warranty_id = warranty_dict['id']
+ cur.execute('SELECT serial_number FROM serial_numbers WHERE warranty_id = %s', (warranty_id,))
+ serial_numbers = [row[0] for row in cur.fetchall()]
+ warranty_dict['serial_numbers'] = serial_numbers
+
+ cur.execute('''
+ SELECT t.id, t.name, t.color
+ FROM tags t
+ JOIN warranty_tags wt ON t.id = wt.tag_id
+ WHERE wt.warranty_id = %s
+ ORDER BY t.name
+ ''', (warranty_id,))
+ tags = [{'id': t[0], 'name': t[1], 'color': t[2]} for t in cur.fetchall()]
+ warranty_dict['tags'] = tags
+
+ warranties_list.append(warranty_dict)
+
+ return jsonify(warranties_list)
+ except Exception as e:
+ current_app.logger.error(f"Error retrieving archived warranties: {e}")
+ return jsonify({"error": "Failed to retrieve archived warranties"}), 500
+ finally:
+ if conn:
+ release_db_connection(conn)
+
@warranties_bp.route('/warranties', methods=['POST'])
@token_required
def add_warranty():
@@ -426,6 +491,48 @@ def add_warranty():
if conn:
release_db_connection(conn)
+@warranties_bp.route('/warranties/<int:warranty_id>/archive', methods=['PATCH'])
+@token_required
+def toggle_archive_warranty(warranty_id):
+ conn = None
+ try:
+ user_id = request.user['id']
+ is_admin = request.user.get('is_admin', False)
+
+ if not request.is_json:
+ return jsonify({"error": "Request must be JSON"}), 400
+ archived_flag = request.json.get('archived')
+ if archived_flag is None:
+ return jsonify({"error": "Missing 'archived' boolean in request body"}), 400
+
+ conn = get_db_connection()
+ with conn.cursor() as cur:
+ # Ensure warranty exists and belongs to user unless admin
+ if is_admin:
+ cur.execute('SELECT id FROM warranties WHERE id = %s', (warranty_id,))
+ else:
+ cur.execute('SELECT id FROM warranties WHERE id = %s AND user_id = %s', (warranty_id, user_id))
+ row = cur.fetchone()
+ if not row:
+ return jsonify({"error": "Warranty not found or permission denied"}), 404
+
+ if archived_flag is True:
+ cur.execute('UPDATE warranties SET archived_at = NOW(), updated_at = NOW() WHERE id = %s', (warranty_id,))
+ else:
+ cur.execute('UPDATE warranties SET archived_at = NULL, updated_at = NOW() WHERE id = %s', (warranty_id,))
+
+ conn.commit()
+
+ return jsonify({"message": "Archive status updated", "archived": bool(archived_flag)})
+ except Exception as e:
+ current_app.logger.error(f"Error toggling archive status: {e}")
+ if conn:
+ conn.rollback()
+ return jsonify({"error": "Failed to update archive status"}), 500
+ finally:
+ if conn:
+ release_db_connection(conn)
+
@warranties_bp.route('/warranties/<int:warranty_id>', methods=['DELETE'])
@token_required
def delete_warranty(warranty_id):
@@ -1322,7 +1429,7 @@ def get_all_warranties():
try:
conn = get_db_connection()
with conn.cursor() as cur:
- # Get all warranties from all users with user information
+ # Get all warranties from all users with user information (exclude archived by default)
cur.execute('''
SELECT
w.id, w.product_name, w.purchase_date, w.expiration_date, w.invoice_path, w.manual_path, w.other_document_path,
@@ -1339,6 +1446,7 @@ def get_all_warranties():
FROM warranties w
JOIN users u ON w.user_id = u.id
LEFT JOIN warranty_claims c ON w.id = c.warranty_id
+ WHERE w.archived_at IS NULL
GROUP BY w.id, u.id
ORDER BY u.username, CASE WHEN w.is_lifetime THEN 1 ELSE 0 END, w.expiration_date NULLS LAST, w.product_name
''')
@@ -1428,7 +1536,7 @@ def get_global_warranties():
conn = None
conn = get_db_connection()
with conn.cursor() as cur:
- # Get all warranties from all users with user information
+ # Get all warranties from all users with user information (exclude archived for default view)
cur.execute('''
SELECT
w.id, w.product_name, w.purchase_date, w.expiration_date, w.invoice_path, w.manual_path, w.other_document_path,
@@ -1445,6 +1553,7 @@ def get_global_warranties():
FROM warranties w
JOIN users u ON w.user_id = u.id
LEFT JOIN warranty_claims c ON w.id = c.warranty_id
+ WHERE w.archived_at IS NULL
GROUP BY w.id, u.id
ORDER BY u.username, CASE WHEN w.is_lifetime THEN 1 ELSE 0 END, w.expiration_date NULLS LAST, w.product_name
''')
@@ -1794,7 +1903,8 @@ def get_locales():
'zh_HK': '繁體中文',
'ja': '日本語',
'pt': 'Português',
- 'ko': '한국어'
+ 'ko': '한국어',
+ 'tr': 'Türkçe'
}
locales = []
diff --git a/frontend/about.html b/frontend/about.html
index 7a33405..d04e380 100644
--- a/frontend/about.html
+++ b/frontend/about.html
@@ -14,12 +14,12 @@
<link rel="manifest" href="manifest.json">
<!-- Stylesheets -->
- <link rel="stylesheet" href="style.css?v=20250119001"> <!-- Main stylesheet -->
+ <link rel="stylesheet" href="style.css?v=20250119004"> <!-- 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=20250119001"> <!-- Header specific styles -->
<!-- Mobile Header specific styles -->
- <link rel="stylesheet" href="mobile-header.css?v=20250119001">
+ <link rel="stylesheet" href="mobile-header.css?v=20250119002">
<!-- Scripts loaded in head -->
<script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early -->
@@ -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.11</div>
+ <div class="version" id="versionDisplay" data-i18n="about.version">Version v0.10.1.13</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>
@@ -416,7 +416,7 @@
// Update version display dynamically
const versionDisplay = document.getElementById('versionDisplay');
if (versionDisplay && window.i18next) {
- const currentVersion = '0.10.1.12'; // This should match version-checker.js
+ const currentVersion = '0.10.1.13'; // This should match version-checker.js
versionDisplay.textContent = window.i18next.t('about.version') + ' v' + currentVersion;
}
diff --git a/frontend/auth-redirect.html b/frontend/auth-redirect.html
index 5633dfa..860fd92 100644
--- a/frontend/auth-redirect.html
+++ b/frontend/auth-redirect.html
@@ -4,7 +4,7 @@
<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=20250119001">
+ <link rel="stylesheet" href="style.css?v=20250119004">
<script src="theme-loader.js?v=20250119001"></script>
<style>
body {
diff --git a/frontend/header-fix.css b/frontend/header-fix.css
index 59a63f0..8c96f11 100644
--- a/frontend/header-fix.css
+++ b/frontend/header-fix.css
@@ -66,6 +66,15 @@ header .container {
font-weight: 600 !important;
}
+/* Dark mode interaction styles for nav links */
+:root[data-theme="dark"] .nav-link:hover {
+ background-color: rgba(255, 255, 255, 0.1) !important;
+}
+
+:root[data-theme="dark"] .nav-link.active {
+ background-color: rgba(255, 255, 255, 0.1) !important;
+}
+
.nav-link i {
font-size: 1rem !important;
}
diff --git a/frontend/index.html b/frontend/index.html
index db14c25..289f052 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -22,7 +22,7 @@
<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=20250119001">
+ <link rel="stylesheet" href="style.css?v=20250119004">
<script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early -->
<!-- Font Awesome for icons -->
@@ -32,7 +32,7 @@
<!-- Load fix for auth buttons -->
<script src="fix-auth-buttons-loader.js?v=20250119001"></script>
<!-- Mobile Header specific styles -->
- <link rel="stylesheet" href="mobile-header.css?v=20250119001">
+ <link rel="stylesheet" href="mobile-header.css?v=20250119002">
<!-- i18next Local Scripts -->
<script src="js/lib/i18next.min.js?v=20250119001"></script>
@@ -174,103 +174,168 @@
</div>
<!-- Filters and Search -->
<div class="filter-controls">
- <div class="search-container" style="display: flex; width: 100%; gap: 8px; align-items: center; flex-wrap: nowrap;">
- <!-- Make search box much longer, buttons only as wide as needed -->
- <div class="search-box" style="flex: 2 1 400px; min-width: 200px; max-width: 1000px;">
+ <div class="search-container" style="display: flex; width: 100%; gap: 8px; align-items: center;">
+ <!-- Make search box width controlled by CSS for consistency -->
+ <div class="search-box">
<button id="searchBtn" class="search-btn" title="Search">
<i class="fas fa-search"></i>
</button>
- <input type="text" id="searchWarranties" data-i18n-placeholder="warranties.search_placeholder" placeholder="Find by name, vendors, notes, tag, or serial number..." style="width: 100%; min-width: 200px;">
+ <input type="text" id="searchWarranties" data-i18n-placeholder="warranties.search_placeholder" placeholder="Find by name, vendors, notes, tag, or serial number..." style="width: 100%;">
<button id="clearSearch" class="clear-search-btn" title="Clear search" style="display: none;">
<i class="fas fa-times"></i>
</button>
</div>
- <div style="display: flex; gap: 8px; flex-wrap: nowrap; flex-shrink: 0; min-width: 0;">
- <button id="exportBtn" class="export-btn" title="Export warranties" style="white-space: nowrap;">
+ <div class="filter-sort-container">
+ <button id="filterBtn" class="action-btn">
+ <i class="fas fa-filter"></i>
+ <span data-i18n="filters.filter">Filter</span>
+ <span id="filterIndicator" class="indicator" style="display: none;"></span>
+ </button>
+ <div id="filterPopover" class="popover">
+ <h4 data-i18n="filters.filter_by">Filter By</h4>
+ <div class="filter-group">
+ <label for="statusFilter" data-i18n="filters.status">Status</label>
+ <select id="statusFilter" class="filter-select">
+ <option value="all" data-i18n="filters.all_status">All Status</option>
+ <option value="active" data-i18n="warranties.active">Active</option>
+ <option value="expiring" data-i18n="warranties.expiring_soon">Expiring Soon</option>
+ <option value="expired" data-i18n="warranties.expired">Expired</option>
+ <option value="archived" data-i18n="warranties.archived">Archived</option>
+ </select>
+ </div>
+ <div class="filter-group">
+ <label for="tagFilter" data-i18n="filters.tags">Tag</label>
+ <select id="tagFilter" class="filter-select">
+ <option value="all" data-i18n="filters.all_tags">All Tags</option>
+ </select>
+ </div>
+ <div class="filter-group">
+ <label for="vendorFilter" data-i18n="filters.vendor">Vendor</label>
+ <select id="vendorFilter" class="filter-select">
+ <option value="all" data-i18n="filters.all_vendors">All Vendors</option>
+ </select>
+ </div>
+ <div class="filter-group">
+ <label for="warrantyTypeFilter" data-i18n="filters.warranty_type">Warranty Type</label>
+ <select id="warrantyTypeFilter" class="filter-select">
+ <option value="all" data-i18n="filters.all_types">All Types</option>
+ </select>
+ </div>
+ <div class="popover-actions">
+ <button id="clearFiltersBtn" class="btn btn-secondary" data-i18n="filters.clear">Clear</button>
+ <button id="applyFiltersBtn" class="btn btn-primary" data-i18n="filters.apply">Apply</button>
+ </div>
+ </div>
+
+ <button id="sortBtn" class="action-btn">
+ <i class="fas fa-sort-amount-down"></i>
+ <span data-i18n="filters.sort">Sort</span>
+ </button>
+ <div id="sortPopover" class="popover">
+ <h4 data-i18n="filters.sort_by">Sort By</h4>
+ <ul id="sortOptionsList" class="sort-options">
+ <li data-sort="expiration" class="active" data-i18n="filters.sort_expiration">Expiration Date</li>
+ <li data-sort="purchase" data-i18n="filters.sort_purchase">Purchase Date</li>
+ <li data-sort="age" data-i18n="filters.sort_age">Age</li>
+ <li data-sort="name" data-i18n="filters.sort_name">Product Name</li>
+ <li data-sort="vendor" data-i18n="filters.sort_vendor">Vendor</li>
+ <li data-sort="warranty_type" data-i18n="filters.sort_warranty_type">Warranty Type</li>
+ </ul>
+ <!-- Hidden select preserved for compatibility with existing JS -->
+ <select id="sortBy" class="filter-select" style="display: none;">
+ <option value="expiration" data-i18n="filters.sort_expiration">Expiration Date</option>
+ <option value="purchase" data-i18n="filters.sort_purchase">Purchase Date</option>
+ <option value="age" data-i18n="filters.sort_age">Age</option>
+ <option value="name" data-i18n="filters.sort_name">Product Name</option>
+ <option value="vendor" data-i18n="filters.sort_vendor">Vendor</option>
+ <option value="warranty_type" data-i18n="filters.sort_warranty_type">Warranty Type</option>
+ </select>
+ </div>
+
+
+ </div>
+ <div class="secondary-actions" style="display: flex; gap: 8px; flex-wrap: nowrap; flex-shrink: 1; min-width: 0;">
+ <div class="data-dropdown" style="position: relative;">
+ <button id="dataMenuBtn" class="action-btn" title="Data" style="white-space: nowrap;">
+ <i class="fas fa-database"></i> <span data-i18n="actions.data">Data</span> <i class="fas fa-caret-down"></i>
+ </button>
+ <div id="dataMenu" class="popover" style="min-width: 180px;">
+ <ul class="sort-options data-menu-options">
+ <li id="dataImportOption"><i class="fas fa-file-import"></i> <span data-i18n="actions.import">Import</span></li>
+ <li id="dataExportOption"><i class="fas fa-file-export"></i> <span data-i18n="actions.export">Export</span></li>
+ </ul>
+ </div>
+ </div>
+ <!-- Keep original buttons hidden to preserve existing JS behavior -->
+ <button id="exportBtn" class="export-btn" title="Export warranties" style="display:none;">
<i class="fas fa-file-export"></i> <span data-i18n="actions.export">Export</span>
</button>
- <button id="importBtn" class="import-btn" title="Import warranties from CSV" style="white-space: nowrap;">
+ <button id="importBtn" class="import-btn" title="Import warranties from CSV" style="display:none;">
<i class="fas fa-file-import"></i> <span data-i18n="actions.import">Import</span>
</button>
- <button id="globalManageTagsBtn" class="export-btn" title="Manage all tags" style="white-space: nowrap;">
- <i class="fas fa-tags"></i> <span data-i18n="actions.manage_tags">Manage Tags</span>
+ <button id="globalManageTagsBtn" class="action-btn export-btn" title="Tags" style="white-space: nowrap;">
+ <i class="fas fa-tags"></i> <span data-i18n="warranties.tags">Tags</span>
</button>
+
+ <!-- View Dropdown (moved after Tags) -->
+ <div class="data-dropdown" id="viewDropdownContainer" style="position: relative;">
+ <button id="viewMenuBtn" class="action-btn" title="View" style="white-space: nowrap;">
+ <i class="fas fa-eye"></i> <span data-i18n="filters.view">View</span> <i class="fas fa-caret-down"></i>
+ </button>
+ <div id="viewMenu" class="popover" style="min-width: 160px;">
+ <ul class="sort-options">
+ <li id="viewGridOption"><i class="fas fa-th-large"></i> <span>Grid</span></li>
+ <li id="viewListOption"><i class="fas fa-list"></i> <span>List</span></li>
+ <li id="viewTableOption"><i class="fas fa-table"></i> <span>Table</span></li>
+ </ul>
+ </div>
+ </div>
+
+ <!-- Scope Dropdown (moved after Tags) -->
+ <div class="data-dropdown" id="scopeDropdown" style="position: relative; display: none;">
+ <button id="scopeMenuBtn" class="action-btn" title="Scope" style="white-space: nowrap;">
+ <i class="fas fa-users"></i> <span data-i18n="filters.scope">Scope</span> <i class="fas fa-caret-down"></i>
+ </button>
+ <div id="scopeMenu" class="popover" style="min-width: 160px;">
+ <ul class="sort-options">
+ <li id="scopePersonalOption"><i class="fas fa-user"></i> <span>Personal</span></li>
+ <li id="scopeGlobalOption"><i class="fas fa-globe"></i> <span>Global</span></li>
+ </ul>
+ </div>
+ </div>
</div>
+
<input type="file" id="csvFileInput" accept=".csv" style="display: none;">
</div>
<div class="filter-options">
- <div class="filter-group">
- <label class="filter-label" data-i18n="filters.status">Status</label>
- <select id="statusFilter" class="filter-select">
- <option value="all" data-i18n="filters.all_status">All Status</option>
- <option value="active" data-i18n="warranties.active">Active</option>
- <option value="expiring" data-i18n="warranties.expiring_soon">Expiring Soon</option>
- <option value="expired" data-i18n="warranties.expired">Expired</option>
- </select>
- </div>
-
- <div class="filter-group">
- <label class="filter-label" data-i18n="filters.tags">Tag</label>
- <select id="tagFilter" class="filter-select">
- <option value="all" data-i18n="filters.all_tags">All Tags</option>
- <!-- Tag options will be populated by JavaScript -->
- </select>
- </div>
-
- <div class="filter-group">
- <label class="filter-label" data-i18n="filters.vendor">Vendor</label>
- <select id="vendorFilter" class="filter-select">
- <option value="all" data-i18n="filters.all_vendors">All Vendors</option>
- <!-- Vendor options will be populated by JavaScript -->
- </select>
- </div>
-
- <div class="filter-group">
- <label class="filter-label" data-i18n="filters.warranty_type">Warranty Type</label>
- <select id="warrantyTypeFilter" class="filter-select">
- <option value="all" data-i18n="filters.all_types">All Types</option>
- <!-- Warranty type options will be populated by JavaScript -->
- </select>
- </div>
-
- <div class="filter-group">
- <label class="filter-label" data-i18n="filters.sort_by">Sort By</label>
- <select id="sortBy" class="filter-select">
- <option value="expiration" data-i18n="filters.sort_expiration">Expiration Date</option>
- <option value="purchase" data-i18n="filters.sort_purchase">Purchase Date</option>
- <option value="age" data-i18n="filters.sort_age">Age</option>
- <option value="name" data-i18n="filters.sort_name">Product Name</option>
- <option value="vendor" data-i18n="filters.sort_vendor">Vendor</option>
- <option value="warranty_type" data-i18n="filters.sort_warranty_type">Warranty Type</option>
- </select>
- </div>
-
- <div class="view-switcher">
- <label class="filter-label" data-i18n="filters.view">View</label>
- <div class="view-buttons">
- <button id="gridViewBtn" class="view-btn active" title="Grid View">
- <i class="fas fa-th-large"></i>
- </button>
- <button id="listViewBtn" class="view-btn" title="List View">
- <i class="fas fa-list"></i>
- </button>
- <button id="tableViewBtn" class="view-btn" title="Table View">
- <i class="fas fa-table"></i>
- </button>
+ <div class="action-bar">
+
+ <div class="view-switcher" style="display: none;">
+ <label class="filter-label" data-i18n="filters.view">View</label>
+ <div class="view-buttons">
+ <button id="gridViewBtn" class="view-btn active" title="Grid View">
+ <i class="fas fa-th-large"></i>
+ </button>
+ <button id="listViewBtn" class="view-btn" title="List View">
+ <i class="fas fa-list"></i>
+ </button>
+ <button id="tableViewBtn" class="view-btn" title="Table View">
+ <i class="fas fa-table"></i>
+ </button>
+ </div>
</div>
- </div>
-
- <!-- Scope View Toggle -->
- <div class="admin-view-switcher" id="adminViewSwitcher" style="display: none;">
- <label class="filter-label" data-i18n="filters.scope">Scope</label>
- <div class="view-buttons">
- <button id="personalViewBtn" class="view-btn active" title="View your warranties only">
- <i class="fas fa-user"></i>
- </button>
- <button id="globalViewBtn" class="view-btn" title="View all users' warranties (read-only for others)">
- <i class="fas fa-globe"></i>
- </button>
+ <!-- Move scope switcher to bottom-right -->
+ <div class="admin-view-switcher" id="adminViewSwitcher" style="display: none; margin-left: auto;">
+ <label class="filter-label" data-i18n="filters.scope">Scope</label>
+ <div class="view-buttons" style="display: none;">
+ <button id="personalViewBtn" class="view-btn active" title="View your warranties only">
+ <i class="fas fa-user"></i>
+ </button>
+ <button id="globalViewBtn" class="view-btn" title="View all users' warranties (read-only for others)">
+ <i class="fas fa-globe"></i>
+ </button>
+ </div>
</div>
</div>
</div>
@@ -1047,6 +1112,25 @@
</div>
</div>
</div>
+
+ <!-- Confirm Archive Modal -->
+ <div id="archiveModal" class="modal-backdrop">
+ <div class="modal">
+ <div class="modal-header">
+ <h3 class="modal-title">Archive Warranty</h3>
+ <button class="close-btn" data-dismiss="modal">&times;</button>
+ </div>
+ <div class="modal-body">
+ <p>Are you sure you want to archive this warranty?</p>
+ <p>Archived warranties are not deleted. You can find them by selecting the "Archived" status in Filters.</p>
+ <p><strong>Product:</strong> <span id="archiveProductName"></span></p>
+ </div>
+ <div class="modal-footer">
+ <button class="btn btn-secondary" data-dismiss="modal">Cancel</button>
+ <button id="confirmArchiveBtn" class="btn btn-primary">Archive</button>
+ </div>
+ </div>
+ </div>
<!-- Tag Management Modal -->
<div id="tagManagementModal" class="modal-backdrop">
@@ -1231,6 +1315,286 @@
<script src="auth.js?v=20250119001"></script>
<script src="script.js?v=20250119001"></script>
+ <script>
+ // Lightweight UI logic for Filter/Sort popovers (no change to core logic)
+ document.addEventListener('DOMContentLoaded', function () {
+ var filterBtn = document.getElementById('filterBtn');
+ var sortBtn = document.getElementById('sortBtn');
+ var viewMenuBtn = document.getElementById('viewMenuBtn');
+ var viewMenu = document.getElementById('viewMenu');
+ var viewGridOption = document.getElementById('viewGridOption');
+ var viewListOption = document.getElementById('viewListOption');
+ var viewTableOption = document.getElementById('viewTableOption');
+ var currentViewLabel = document.getElementById('currentViewLabel');
+ var scopeDropdown = document.getElementById('scopeDropdown');
+ var scopeMenuBtn = document.getElementById('scopeMenuBtn');
+ var scopeMenu = document.getElementById('scopeMenu');
+ var scopePersonalOption = document.getElementById('scopePersonalOption');
+ var scopeGlobalOption = document.getElementById('scopeGlobalOption');
+ var currentScopeLabel = document.getElementById('currentScopeLabel');
+ var filterPopover = document.getElementById('filterPopover');
+ var sortPopover = document.getElementById('sortPopover');
+ var sortOptionsList = document.getElementById('sortOptionsList');
+ var sortBy = document.getElementById('sortBy');
+
+ var statusFilter = document.getElementById('statusFilter');
+ var tagFilter = document.getElementById('tagFilter');
+ var vendorFilter = document.getElementById('vendorFilter');
+ var warrantyTypeFilter = document.getElementById('warrantyTypeFilter');
+ var clearFiltersBtn = document.getElementById('clearFiltersBtn');
+ var applyFiltersBtn = document.getElementById('applyFiltersBtn');
+ var filterIndicator = document.getElementById('filterIndicator');
+
+ // Data dropdown
+ var dataMenuBtn = document.getElementById('dataMenuBtn');
+ var dataMenu = document.getElementById('dataMenu');
+ var dataImportOption = document.getElementById('dataImportOption');
+ var dataExportOption = document.getElementById('dataExportOption');
+ var legacyImportBtn = document.getElementById('importBtn');
+ var legacyExportBtn = document.getElementById('exportBtn');
+
+ if (dataMenuBtn && dataMenu) {
+ dataMenuBtn.addEventListener('click', function (e) {
+ e.stopPropagation();
+ dataMenu.classList.toggle('active');
+ if (dataMenu.classList.contains('active')) closeAllPopovers(dataMenu);
+ });
+ }
+
+ if (dataImportOption && legacyImportBtn) {
+ dataImportOption.addEventListener('click', function () {
+ legacyImportBtn.click();
+ if (dataMenu) dataMenu.classList.remove('active');
+ });
+ }
+
+ if (dataExportOption && legacyExportBtn) {
+ dataExportOption.addEventListener('click', function () {
+ legacyExportBtn.click();
+ if (dataMenu) dataMenu.classList.remove('active');
+ });
+ }
+
+ // Expose globally so core script can trigger it after async loads
+ window.updateFilterIndicator = function () {
+ try {
+ var hasActive = false;
+ if (statusFilter && statusFilter.value && statusFilter.value !== 'all') hasActive = true;
+ if (tagFilter && tagFilter.value && tagFilter.value !== 'all') hasActive = true;
+ if (vendorFilter && vendorFilter.value && vendorFilter.value !== 'all') hasActive = true;
+ if (warrantyTypeFilter && warrantyTypeFilter.value && warrantyTypeFilter.value !== 'all') hasActive = true;
+ if (filterIndicator) filterIndicator.style.display = hasActive ? 'inline-block' : 'none';
+ } catch (e) { /* no-op */ }
+ };
+
+ function closeAllPopovers(except) {
+ [filterPopover, sortPopover, viewMenu, scopeMenu, dataMenu].forEach(function (p) {
+ if (p && p !== except) p.classList.remove('active');
+ });
+ }
+
+ if (filterBtn && filterPopover) {
+ filterBtn.addEventListener('click', function (e) {
+ e.stopPropagation();
+ filterPopover.classList.toggle('active');
+ if (filterPopover.classList.contains('active')) closeAllPopovers(filterPopover);
+ });
+ }
+
+ if (sortBtn && sortPopover) {
+ sortBtn.addEventListener('click', function (e) {
+ e.stopPropagation();
+ sortPopover.classList.toggle('active');
+ if (sortPopover.classList.contains('active')) closeAllPopovers(sortPopover);
+ });
+ }
+
+ if (viewMenuBtn && viewMenu) {
+ viewMenuBtn.addEventListener('click', function (e) {
+ e.stopPropagation();
+ viewMenu.classList.toggle('active');
+ if (viewMenu.classList.contains('active')) {
+ closeAllPopovers(viewMenu);
+ // Sync highlight with the currently selected view when opening
+ try {
+ var currentType = 'grid';
+ var wl = document.getElementById('warrantiesList');
+ if (wl) {
+ if (wl.classList.contains('list-view')) currentType = 'list';
+ else if (wl.classList.contains('table-view')) currentType = 'table';
+ } else {
+ var prefixV = (window.getPreferenceKeyPrefix ? window.getPreferenceKeyPrefix() : 'user_');
+ var savedV = localStorage.getItem(prefixV + 'defaultView') || localStorage.getItem(prefixV + 'warrantyView') || 'grid';
+ currentType = savedV;
+ }
+ if (typeof setViewIconFrom === 'function') setViewIconFrom(currentType);
+ } catch (e) { /* no-op */ }
+ }
+ });
+ function setViewIconFrom(viewType) {
+ var icon = document.getElementById('currentViewIcon');
+ if (icon) {
+ icon.className = 'fas';
+ if (viewType === 'list') {
+ icon.classList.add('fa-list');
+ icon.setAttribute('aria-label', 'List');
+ } else if (viewType === 'table') {
+ icon.classList.add('fa-table');
+ icon.setAttribute('aria-label', 'Table');
+ } else {
+ icon.classList.add('fa-th-large');
+ icon.setAttribute('aria-label', 'Grid');
+ }
+ }
+ // Highlight active option in the dropdown
+ try {
+ if (viewGridOption) viewGridOption.classList.toggle('active', viewType === 'grid');
+ if (viewListOption) viewListOption.classList.toggle('active', viewType === 'list');
+ if (viewTableOption) viewTableOption.classList.toggle('active', viewType === 'table');
+ } catch (e) { /* no-op */ }
+ }
+ if (viewGridOption) viewGridOption.addEventListener('click', function () { if (window.switchView) window.switchView('grid'); setViewIconFrom('grid'); viewMenu.classList.remove('active'); });
+ if (viewListOption) viewListOption.addEventListener('click', function () { if (window.switchView) window.switchView('list'); setViewIconFrom('list'); viewMenu.classList.remove('active'); });
+ if (viewTableOption) viewTableOption.addEventListener('click', function () { if (window.switchView) window.switchView('table'); setViewIconFrom('table'); viewMenu.classList.remove('active'); });
+ // Initialize label from saved preference
+ try {
+ var prefix = (window.getPreferenceKeyPrefix ? window.getPreferenceKeyPrefix() : 'user_');
+ var savedView = localStorage.getItem(prefix + 'defaultView') || localStorage.getItem(prefix + 'warrantyView') || 'grid';
+ setViewIconFrom(savedView);
+ } catch (e) { /* no-op */ }
+ }
+
+ if (scopeMenuBtn && scopeMenu) {
+ scopeMenuBtn.addEventListener('click', function (e) {
+ e.stopPropagation();
+ scopeMenu.classList.toggle('active');
+ if (scopeMenu.classList.contains('active')) {
+ closeAllPopovers(scopeMenu);
+ // Sync highlight with the currently selected scope when opening
+ try {
+ var prefixS = (window.getPreferenceKeyPrefix ? window.getPreferenceKeyPrefix() : 'user_');
+ var savedS = localStorage.getItem(prefixS + 'viewScope') || 'personal';
+ if (typeof setScopeIconFrom === 'function') setScopeIconFrom(savedS);
+ } catch (e) { /* no-op */ }
+ }
+ });
+ function setScopeIconFrom(scope) {
+ var icon = document.getElementById('currentScopeIcon');
+ if (icon) {
+ icon.className = 'fas';
+ if (scope === 'global') {
+ icon.classList.add('fa-globe');
+ icon.setAttribute('aria-label', 'Global');
+ } else {
+ icon.classList.add('fa-user');
+ icon.setAttribute('aria-label', 'Personal');
+ }
+ }
+ // Highlight active option in the dropdown
+ try {
+ if (scopePersonalOption) scopePersonalOption.classList.toggle('active', scope === 'personal');
+ if (scopeGlobalOption) scopeGlobalOption.classList.toggle('active', scope === 'global');
+ } catch (e) { /* no-op */ }
+ }
+ if (scopePersonalOption) scopePersonalOption.addEventListener('click', function () { if (window.switchToPersonalView) window.switchToPersonalView(); setScopeIconFrom('personal'); scopeMenu.classList.remove('active'); });
+ if (scopeGlobalOption) scopeGlobalOption.addEventListener('click', function () { if (window.switchToGlobalView) window.switchToGlobalView(); setScopeIconFrom('global'); scopeMenu.classList.remove('active'); });
+ // Initialize scope label from saved preference
+ try {
+ var prefix2 = (window.getPreferenceKeyPrefix ? window.getPreferenceKeyPrefix() : 'user_');
+ var savedScope = localStorage.getItem(prefix2 + 'viewScope') || 'personal';
+ setScopeIconFrom(savedScope);
+ } catch (e) { /* no-op */ }
+ }
+
+ document.addEventListener('click', function (e) {
+ if (filterPopover && !filterPopover.contains(e.target) && e.target !== filterBtn) filterPopover.classList.remove('active');
+ if (sortPopover && !sortPopover.contains(e.target) && e.target !== sortBtn) sortPopover.classList.remove('active');
+ if (viewMenu && !viewMenu.contains(e.target) && e.target !== viewMenuBtn) viewMenu.classList.remove('active');
+ if (scopeMenu && !scopeMenu.contains(e.target) && e.target !== scopeMenuBtn) scopeMenu.classList.remove('active');
+ if (dataMenu && !dataMenu.contains(e.target) && e.target !== dataMenuBtn) dataMenu.classList.remove('active');
+ });
+
+ // Restore saved filters early so indicator reflects persisted state immediately
+ try {
+ var prefix = (window.getPreferenceKeyPrefix ? window.getPreferenceKeyPrefix() : 'user_');
+ var savedFiltersRaw = localStorage.getItem(prefix + 'warrantyFilters');
+ if (savedFiltersRaw) {
+ var savedFilters = JSON.parse(savedFiltersRaw) || {};
+ if (statusFilter && savedFilters.status) statusFilter.value = savedFilters.status;
+ if (tagFilter && savedFilters.tag) tagFilter.value = savedFilters.tag;
+ if (vendorFilter && savedFilters.vendor) vendorFilter.value = savedFilters.vendor;
+ if (warrantyTypeFilter && savedFilters.warranty_type) warrantyTypeFilter.value = savedFilters.warranty_type;
+ }
+ } catch (e) { /* no-op */ }
+
+ if (applyFiltersBtn) {
+ applyFiltersBtn.addEventListener('click', function () {
+ [statusFilter, tagFilter, vendorFilter, warrantyTypeFilter].forEach(function (el) {
+ if (el) el.dispatchEvent(new Event('change', { bubbles: true }));
+ });
+ // Persist filters
+ try {
+ var prefix = (window.getPreferenceKeyPrefix ? window.getPreferenceKeyPrefix() : 'user_');
+ var filtersToSave = {
+ status: statusFilter ? statusFilter.value : 'all',
+ tag: tagFilter ? tagFilter.value : 'all',
+ vendor: vendorFilter ? vendorFilter.value : 'all',
+ warranty_type: warrantyTypeFilter ? warrantyTypeFilter.value : 'all'
+ };
+ localStorage.setItem(prefix + 'warrantyFilters', JSON.stringify(filtersToSave));
+ } catch (e) { /* no-op */ }
+ window.updateFilterIndicator();
+ if (filterPopover) filterPopover.classList.remove('active');
+ });
+ }
+
+ if (clearFiltersBtn) {
+ clearFiltersBtn.addEventListener('click', function () {
+ if (statusFilter) statusFilter.value = 'all';
+ if (tagFilter) tagFilter.value = 'all';
+ if (vendorFilter) vendorFilter.value = 'all';
+ if (warrantyTypeFilter) warrantyTypeFilter.value = 'all';
+ [statusFilter, tagFilter, vendorFilter, warrantyTypeFilter].forEach(function (el) {
+ if (el) el.dispatchEvent(new Event('change', { bubbles: true }));
+ });
+ updateFilterIndicator();
+ });
+ }
+
+ if (sortOptionsList) {
+ sortOptionsList.addEventListener('click', function (e) {
+ var li = e.target && e.target.closest('li[data-sort]');
+ if (!li) return;
+ Array.prototype.forEach.call(sortOptionsList.querySelectorAll('li'), function (n) { n.classList.remove('active'); });
+ li.classList.add('active');
+ if (sortBy) {
+ sortBy.value = li.getAttribute('data-sort');
+ sortBy.dispatchEvent(new Event('change', { bubbles: true }));
+ // Persist sort
+ try {
+ var prefix = (window.getPreferenceKeyPrefix ? window.getPreferenceKeyPrefix() : 'user_');
+ localStorage.setItem(prefix + 'warrantySortBy', sortBy.value || 'expiration');
+ } catch (e) { /* no-op */ }
+ }
+ if (sortPopover) sortPopover.classList.remove('active');
+ });
+ }
+
+ // Initialize states
+ window.updateFilterIndicator();
+ if (sortBy && sortOptionsList) {
+ // Try to load saved sort preference
+ try {
+ var prefix = (window.getPreferenceKeyPrefix ? window.getPreferenceKeyPrefix() : 'user_');
+ var savedSort = localStorage.getItem(prefix + 'warrantySortBy');
+ if (savedSort) sortBy.value = savedSort;
+ } catch (e) { /* no-op */ }
+ var current = sortBy.value || 'expiration';
+ var activeLi = sortOptionsList.querySelector('li[data-sort="' + current + '"]');
+ if (activeLi) activeLi.classList.add('active');
+ }
+ });
+ </script>
<!-- Footer Width Fix -->
<script src="footer-fix.js?v=20250119001"></script>
diff --git a/frontend/js/i18n.js b/frontend/js/i18n.js
index 46d5c5a..6e7a662 100644
--- a/frontend/js/i18n.js
+++ b/frontend/js/i18n.js
@@ -7,7 +7,7 @@
window.i18n = {};
// Supported languages
-const SUPPORTED_LANGUAGES = ['en', 'fr', 'es', 'de', 'it', 'cs', 'nl', 'hi', 'fa', 'ar', 'ru', 'uk', 'zh_CN', 'zh_HK', 'ja', 'pt', 'ko'];
+const SUPPORTED_LANGUAGES = ['en', 'fr', 'es', 'de', 'it', 'cs', 'nl', 'hi', 'fa', 'ar', 'ru', 'uk', 'zh_CN', 'zh_HK', 'ja', 'pt', 'ko', 'tr'];
const DEFAULT_LANGUAGE = 'en';
const RTL_LANGUAGES = ['ar', 'fa']; // Arabic and Persian are RTL languages
@@ -131,17 +131,24 @@ async function initializeI18n() {
* Load translations for a specific language
*/
async function loadTranslations(language) {
+ console.log(`loadTranslations called for language: ${language}`);
const translations = {};
try {
// Load primary language
- const response = await fetch(`/locales/${language}/translation.json?v=${Date.now()}`);
+ const url = `/locales/${language}/translation.json?v=${Date.now()}`;
+ console.log(`Fetching translations from: ${url}`);
+ const response = await fetch(url);
+ console.log(`Fetch response status: ${response.status} for language: ${language}`);
+
if (response.ok) {
const data = await response.json();
translations[language] = { translation: data };
- console.log(`Loaded translations for ${language}:`, Object.keys(data).slice(0, 5));
+ const keyCount = Object.keys(data).length;
+ console.log(`Successfully loaded ${keyCount} translation keys for ${language}:`, Object.keys(data).slice(0, 5));
} else {
console.warn(`Failed to load translations for ${language}, status: ${response.status}`);
+ console.warn(`Response text:`, await response.text().catch(() => 'Could not read response text'));
}
} catch (error) {
console.error(`Error loading translations for ${language}:`, error);
@@ -150,17 +157,23 @@ async function loadTranslations(language) {
// Always load fallback language if different
if (language !== DEFAULT_LANGUAGE) {
try {
- const fallbackResponse = await fetch(`/locales/${DEFAULT_LANGUAGE}/translation.json?v=${Date.now()}`);
+ const fallbackUrl = `/locales/${DEFAULT_LANGUAGE}/translation.json?v=${Date.now()}`;
+ console.log(`Loading fallback language from: ${fallbackUrl}`);
+ const fallbackResponse = await fetch(fallbackUrl);
+ console.log(`Fallback fetch response status: ${fallbackResponse.status}`);
+
if (fallbackResponse.ok) {
const fallbackData = await fallbackResponse.json();
translations[DEFAULT_LANGUAGE] = { translation: fallbackData };
- console.log(`Loaded fallback translations for ${DEFAULT_LANGUAGE}`);
+ const fallbackKeyCount = Object.keys(fallbackData).length;
+ console.log(`Loaded ${fallbackKeyCount} fallback translation keys for ${DEFAULT_LANGUAGE}`);
}
} catch (error) {
console.error(`Error loading fallback translations:`, error);
}
}
+ console.log(`loadTranslations completed. Languages loaded: ${Object.keys(translations)}`);
return translations;
}
@@ -168,6 +181,18 @@ async function loadTranslations(language) {
* Get current language from storage or user preferences
*/
function getCurrentLanguage() {
+ // URL override (e.g., ?lang=tr)
+ try {
+ const params = new URLSearchParams(window.location.search);
+ const urlLang = params.get('lang');
+ if (urlLang && SUPPORTED_LANGUAGES.includes(urlLang)) {
+ setCookie('lang', urlLang, 365);
+ localStorage.setItem('preferred_language', urlLang);
+ return urlLang;
+ }
+ } catch (e) {
+ // Ignore URL parsing errors and continue
+ }
// Check cookie first
const cookieLang = getCookie('lang');
if (cookieLang && SUPPORTED_LANGUAGES.includes(cookieLang)) {
@@ -195,31 +220,40 @@ function getCurrentLanguage() {
* Change language and persist preference
*/
async function changeLanguage(language) {
+ console.log('changeLanguage called with:', language);
+
if (!SUPPORTED_LANGUAGES.includes(language)) {
console.warn('Unsupported language:', language);
return;
}
try {
+ console.log('Loading translations for language:', language);
// Load translations for the new language
const translations = await loadTranslations(language);
+ console.log('Translations loaded:', Object.keys(translations));
// Add new language resources to i18next
for (const [lng, resources] of Object.entries(translations)) {
+ console.log('Adding resource bundle for language:', lng);
i18next.addResourceBundle(lng, 'translation', resources.translation, true, true);
}
// Change language in i18next
+ console.log('Changing i18next language to:', language);
await i18next.changeLanguage(language);
+ console.log('i18next language changed successfully to:', i18next.language);
// Persist to cookie and localStorage
setCookie('lang', language, 365);
localStorage.setItem('preferred_language', language);
+ console.log('Language preference saved to cookie and localStorage:', language);
// Update user preference in backend if authenticated
if (localStorage.getItem('auth_token')) {
try {
await saveLanguagePreference(language);
+ console.log('Language preference saved to backend');
} catch (error) {
console.warn('Failed to save language preference to backend:', error);
}
@@ -227,9 +261,11 @@ async function changeLanguage(language) {
// Dispatch event for other components
window.dispatchEvent(new CustomEvent('languageChanged', { detail: { language } }));
+ console.log('languageChanged event dispatched for:', language);
} catch (error) {
console.error('Failed to change language:', error);
+ throw error; // Re-throw to let calling code handle it
}
}
@@ -240,7 +276,7 @@ async function saveLanguagePreference(language) {
const token = localStorage.getItem('auth_token');
if (!token) return;
- const response = await fetch('/api/user/language-preference', {
+ const response = await fetch('/api/auth/user/language-preference', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
@@ -271,20 +307,37 @@ function translatePage() {
// Translate elements with data-i18n attribute
document.querySelectorAll('[data-i18n]').forEach(element => {
- const key = element.getAttribute('data-i18n');
- const translation = window.i18n.t(key);
+ const raw = element.getAttribute('data-i18n');
+ let handled = false;
- if (translation && translation !== key) {
- if (element.tagName === 'INPUT' && (element.type === 'text' || element.type === 'email' || element.type === 'password')) {
- element.placeholder = translation;
- } else if (element.hasAttribute('title')) {
- element.title = translation;
+ // Support syntax like [placeholder]warranties.search_placeholder
+ const attrMatch = raw && raw.match(/^\s*\[(\w+)\]\s*(.+)$/);
+ if (attrMatch) {
+ const attrName = attrMatch[1];
+ const key = attrMatch[2];
+ const translation = window.i18n.t(key);
+ if (translation && translation !== key) {
+ element.setAttribute(attrName, translation);
+ translatedCount++;
+ handled = true;
+ }
+ }
+
+ if (!handled) {
+ const key = raw;
+ const translation = window.i18n.t(key);
+ if (translation && translation !== key) {
+ if (element.tagName === 'INPUT' && (element.type === 'text' || element.type === 'email' || element.type === 'password')) {
+ element.placeholder = translation;
+ } else if (element.hasAttribute('title')) {
+ element.title = translation;
+ } else {
+ element.textContent = translation;
+ }
+ translatedCount++;
} else {
- element.textContent = translation;
+ console.warn(`No translation found for key: ${key}`);
}
- translatedCount++;
- } else {
- console.warn(`No translation found for key: ${key}`);
}
});
diff --git a/frontend/login.html b/frontend/login.html
index 0cbe57e..502a63f 100644
--- a/frontend/login.html
+++ b/frontend/login.html
@@ -1,325 +1,90 @@
<!DOCTYPE html>
<html>
<head>
- <!-- Authentication redirect 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">
<title data-i18n="auth.login">Login - Warracker</title>
- <!-- Favicons -->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png?v=2">
<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=20250119001">
- <script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early -->
- <!-- Font Awesome for icons -->
+ <link rel="stylesheet" href="style.css?v=20250119004">
+ <script src="theme-loader.js?v=20250119001"></script>
<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=20250119001">
- <!-- i18next Local Scripts -->
<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=20250119001"></script>
- <!-- Load fix for auth buttons -->
- <script src="fix-auth-buttons-loader.js?v=20250119001"></script>
- <style>
- .auth-container {
- max-width: 400px;
- margin: 50px auto;
- padding: 30px;
- background-color: var(--card-bg);
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- }
-
- .auth-title {
- text-align: center;
- margin-bottom: 30px;
- color: var(--text-color);
- }
-
- .auth-form .form-group {
- margin-bottom: 20px;
- }
-
- .auth-links {
- margin-top: 20px;
- text-align: center;
- font-size: 0.9em;
- }
-
- .auth-links a {
- color: var(--primary-color);
- text-decoration: none;
- margin: 0 10px;
- }
-
- .auth-links a:hover {
- text-decoration: underline;
- }
-
- .auth-message {
- margin-top: 20px;
- padding: 10px;
- border-radius: 4px;
- text-align: center;
- display: none;
- }
-
- .auth-message.error {
- background-color: rgba(244, 67, 54, 0.1);
- color: #f44336;
- border: 1px solid rgba(244, 67, 54, 0.3);
- }
-
- .auth-message.success {
- background-color: rgba(76, 175, 80, 0.1);
- color: #4caf50;
- border: 1px solid rgba(76, 175, 80, 0.3);
- }
-
- .btn-block {
- width: 100%;
- }
-
- .auth-form .password-container {
- position: relative;
- }
-
- .auth-form .password-toggle {
- position: absolute;
- right: 10px;
- top: 50%;
- transform: translateY(-50%);
- background: none;
- border: none;
- color: var(--text-muted);
- cursor: pointer;
- }
-
- /* Provider-specific SSO button styles */
- .btn-google {
- background-color: #4285f4;
- border-color: #4285f4;
- color: white;
- }
-
- .btn-google:hover, .btn-google:focus {
- background-color: #357ae8;
- border-color: #357ae8;
- color: white;
- }
-
- .btn-github {
- background-color: #333;
- border-color: #333;
- color: white;
- }
-
- .btn-github:hover, .btn-github:focus {
- background-color: #24292e;
- border-color: #24292e;
- color: white;
- }
-
- .btn-microsoft {
- background-color: #0078d4;
- border-color: #0078d4;
- color: white;
- }
-
- .btn-microsoft:hover, .btn-microsoft:focus {
- background-color: #106ebe;
- border-color: #106ebe;
- color: white;
- }
-
- .btn-facebook {
- background-color: #1877f2;
- border-color: #1877f2;
- color: white;
- }
-
- .btn-facebook:hover, .btn-facebook:focus {
- background-color: #166fe5;
- border-color: #166fe5;
- color: white;
- }
-
- .btn-twitter {
- background-color: #1da1f2;
- border-color: #1da1f2;
- color: white;
- }
-
- .btn-twitter:hover, .btn-twitter:focus {
- background-color: #0d95e8;
- border-color: #0d95e8;
- color: white;
- }
-
- .btn-linkedin {
- background-color: #0077b5;
- border-color: #0077b5;
- color: white;
- }
-
- .btn-linkedin:hover, .btn-linkedin:focus {
- background-color: #005885;
- border-color: #005885;
- color: white;
- }
-
- .btn-apple {
- background-color: #000;
- border-color: #000;
- color: white;
- }
-
- .btn-apple:hover, .btn-apple:focus {
- background-color: #333;
- border-color: #333;
- color: white;
- }
-
- .btn-discord {
- background-color: #5865f2;
- border-color: #5865f2;
- color: white;
- }
-
- .btn-discord:hover, .btn-discord:focus {
- background-color: #4752c4;
- border-color: #4752c4;
- color: white;
- }
-
- .btn-gitlab {
- background-color: #fca326;
- border-color: #fca326;
- color: white;
- }
-
- .btn-gitlab:hover, .btn-gitlab:focus {
- background-color: #fc9403;
- border-color: #fc9403;
- color: white;
- }
-
- .btn-bitbucket {
- background-color: #0052cc;
- border-color: #0052cc;
- color: white;
- }
-
- .btn-bitbucket:hover, .btn-bitbucket:focus {
- background-color: #0047b3;
- border-color: #0047b3;
- color: white;
- }
-
- .btn-keycloak {
- background-color: #4d4d4d;
- border-color: #4d4d4d;
- color: white;
- }
-
- .btn-keycloak:hover, .btn-keycloak:focus {
- background-color: #333;
- border-color: #333;
- color: white;
- }
-
- .btn-okta {
- background-color: #007dc1;
- border-color: #007dc1;
- color: white;
- }
-
- .btn-okta:hover, .btn-okta:focus {
- background-color: #005a8b;
- border-color: #005a8b;
- color: white;
- }
- </style>
-
- <!-- Registration status check script -->
- <script src="registration-status.js?v=20250119001"></script>
+ <script src="registration-status.js?v=20250119001"></script>
</head>
-<body>
- <!-- Header -->
- <header>
- <div class="container">
- <div class="app-title">
- <i class="fas fa-shield-alt"></i>
- <h1>Warracker</h1>
+<body class="login-page-body">
+
+ <div class="login-wrapper">
+ <div class="login-showcase">
+ <div class="showcase-content">
+ <div class="showcase-logo">
+ <i class="fas fa-shield-alt"></i>
+ <h1>Warracker</h1>
+ </div>
+ <p class="showcase-description" data-i18n="about.description">
+ The easiest way to organize product warranties, monitor expiration dates, and store receipts or related documents.
+ </p>
+ <ul class="showcase-features">
+ <li><i class="fas fa-bell"></i> <span>Proactive Expiration Alerts</span></li>
+ <li><i class="fas fa-cloud-upload-alt"></i> <span>Secure Document Storage</span></li>
+ <li><i class="fas fa-users"></i> <span>Multi-User Support</span></li>
+ <li><i class="fas fa-search"></i> <span>Quick Search & Filter</span></li>
+ </ul>
</div>
</div>
- </header>
- <!-- Main Content -->
- <div class="container">
- <div class="auth-container">
- <h2 class="auth-title" data-i18n="auth.login">Login to Your Account</h2>
-
- <div id="authMessage" class="auth-message"></div>
-
- <form id="loginForm" class="auth-form">
- <div class="form-group">
- <label for="username" data-i18n="auth.username">Username or Email</label>
- <input type="text" id="username" name="username" class="form-control" data-i18n-placeholder="auth.username" placeholder="Username or Email" required>
- </div>
-
- <div class="form-group">
- <label for="password" data-i18n="auth.password">Password</label>
- <div class="password-container">
- <input type="password" id="password" name="password" class="form-control" required>
- <button type="button" class="password-toggle" title="Show/Hide Password">
- <i class="fas fa-eye"></i>
- </button>
+ <div class="login-form-container">
+ <div class="mobile-top-logo">
+ <img src="img/favicon-512x512.png" alt="Warracker">
+ <div class="mobile-top-logo-title"><span data-i18n="app_title">Warracker</span></div>
+ </div>
+ <div class="auth-container">
+ <h2 class="auth-title" data-i18n="auth.login">Login</h2>
+ <div id="authMessage" class="auth-message"></div>
+ <form id="loginForm" class="auth-form">
+ <div class="form-group">
+ <label for="username" data-i18n="auth.username">Username or Email</label>
+ <div class="input-group">
+ <i class="fas fa-user input-icon"></i>
+ <input type="text" id="username" name="username" class="form-control" placeholder="e.g., yourname or [email protected]" required>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="password" data-i18n="auth.password">Password</label>
+ <div class="input-group">
+ <i class="fas fa-lock input-icon"></i>
+ <input type="password" id="password" name="password" class="form-control" required>
+ <button type="button" class="password-toggle" title="Show/Hide Password">
+ <i class="fas fa-eye"></i>
+ </button>
+ </div>
</div>
+ <button type="submit" class="btn btn-primary btn-block">
+ <i class="fas fa-sign-in-alt"></i> <span data-i18n="auth.login">Login</span>
+ </button>
+ </form>
+ <div id="ssoSection" style="display: none;">
+ <div class="separator"><span>OR</span></div>
+ <a href="/api/oidc/login" id="oidcLoginButton" class="btn btn-secondary btn-block btn-sso" style="text-decoration: none;">
+ <i class="fab fa-openid" style="margin-right: 8px;"></i> <span>Login with SSO Provider</span>
+ </a>
+ </div>
+ <div class="auth-links">
+ <a href="register.html" data-i18n="auth.create_account">Create Account</a>
+ <a href="reset-password-request.html" data-i18n="auth.forgot_password">Forgot Password?</a>
</div>
-
- <button type="submit" class="btn btn-primary btn-block">
- <i class="fas fa-sign-in-alt"></i> <span data-i18n="auth.login">Login</span>
- </button>
- </form>
-
- <div style="text-align: center; margin: 20px 0; color: var(--text-muted);">
- <hr style="border-top: 1px solid var(--border-color); margin-bottom: 10px;">
- OR
- </div>
-
- <a href="/api/oidc/login" id="oidcLoginButton" class="btn btn-secondary btn-block" style="text-decoration: none; display: flex; align-items: center; justify-content: center;">
- <i class="fab fa-openid" style="margin-right: 8px;"></i> Login with SSO Provider
- </a>
-
- <div class="auth-links" style="margin-top: 30px;">
- <a href="register.html" data-i18n="auth.register">Create Account</a>
- <a href="reset-password-request.html" data-i18n="auth.forgot_password">Forgot Password?</a>
</div>
</div>
</div>
- <!-- Script for authentication -->
<script src="auth.js?v=20250119001"></script>
-
- <!-- Footer Width Fix -->
- <script src="footer-fix.js?v=20250119001"></script>
-
- <!-- Footer Content Manager -->
- <script src="footer-content.js?v=20250119001"></script>
-
- <!-- Powered by Warracker Footer -->
- <footer class="warracker-footer" id="warrackerFooter">
- <!-- Content will be dynamically generated by footer-content.js -->
- </footer>
-
<script>
document.addEventListener('DOMContentLoaded', function() {
// Check for OIDC errors in URL parameters and display them
@@ -382,42 +147,36 @@
.then(response => response.json())
.then(data => {
const oidcButton = document.getElementById('oidcLoginButton');
- const orSeparator = document.querySelector('.auth-form + div[style*="text-align: center"]');
+ const separator = document.querySelector('.separator');
const loginForm = document.getElementById('loginForm');
const authLinks = document.querySelector('.auth-links');
-
+ const authTitle = document.querySelector('.auth-title');
+ const ssoSection = document.getElementById('ssoSection');
+
if (!data.oidc_enabled) {
+ if (ssoSection) ssoSection.style.display = 'none';
if (oidcButton) oidcButton.style.display = 'none';
- if (orSeparator) orSeparator.style.display = 'none';
+ if (separator) separator.style.display = 'none';
return;
}
+ // OIDC is enabled: show the SSO section
+ if (ssoSection) ssoSection.style.display = 'block';
+
// Handle OIDC-only mode
if (data.oidc_only_mode) {
// Hide traditional login form and related elements
if (loginForm) loginForm.style.display = 'none';
- if (orSeparator) orSeparator.style.display = 'none';
+ if (separator) separator.style.display = 'none';
if (authLinks) {
// Hide register and forgot password links in OIDC-only mode
const registerLink = authLinks.querySelector('a[href="register.html"]');
const forgotPasswordLink = authLinks.querySelector('a[href="reset-password-request.html"]');
if (registerLink) registerLink.style.display = 'none';
if (forgotPasswordLink) forgotPasswordLink.style.display = 'none';
-
- // If all links are hidden, hide the entire auth-links section
- const visibleLinks = Array.from(authLinks.querySelectorAll('a')).filter(link =>
- link.style.display !== 'none'
- );
- if (visibleLinks.length === 0) {
- authLinks.style.display = 'none';
- }
}
-
// Update page title to reflect OIDC-only mode
- const authTitle = document.querySelector('.auth-title');
- if (authTitle) {
- authTitle.textContent = 'Login with SSO';
- }
+ if (authTitle) authTitle.textContent = 'Login with SSO';
}
// Customize button based on provider
@@ -425,7 +184,7 @@
const providerName = data.oidc_provider_display_name.toLowerCase();
let buttonText = `Login with ${data.oidc_provider_display_name}`;
let iconClass = 'fab fa-openid'; // Default icon
- let buttonClass = 'btn-secondary'; // Default class
+ let buttonClass = 'btn-sso'; // Default class
// Provider-specific customizations
switch (providerName) {
@@ -485,18 +244,22 @@
break;
}
- // Update button styling and content
- oidcButton.className = `btn ${buttonClass} btn-block`;
- oidcButton.innerHTML = `<i class="${iconClass}" style="margin-right: 8px;"></i> ${buttonText}`;
+ // Update button styling and content (preserve alignment and baseline styles)
+ const classList = ['btn', 'btn-secondary', 'btn-block', 'btn-sso'];
+ if (buttonClass && buttonClass !== 'btn-sso') classList.push(buttonClass);
+ oidcButton.className = classList.join(' ');
+ oidcButton.innerHTML = `<i class="${iconClass}"></i> ${buttonText}`;
}
})
.catch(error => {
console.error('Error fetching OIDC status:', error);
// Hide button on error as a safe default
const oidcButton = document.getElementById('oidcLoginButton');
- const orSeparator = document.querySelector('.auth-form + div[style*="text-align: center"]');
+ const separator = document.querySelector('.separator');
+ const ssoSection = document.getElementById('ssoSection');
+ if (ssoSection) ssoSection.style.display = 'none';
if (oidcButton) oidcButton.style.display = 'none';
- if (orSeparator) orSeparator.style.display = 'none';
+ if (separator) separator.style.display = 'none';
});
// Toggle password visibility
@@ -514,9 +277,7 @@
});
// Handle form submission
- const loginForm = document.getElementById('loginForm');
-
- loginForm.addEventListener('submit', async function(e) {
+ document.getElementById('loginForm').addEventListener('submit', async function(e) {
e.preventDefault();
const username = document.getElementById('username').value;
@@ -530,8 +291,7 @@
try {
// Show loading state
- const submitBtn = loginForm.querySelector('button[type="submit"]');
- const originalBtnText = submitBtn.innerHTML;
+ const submitBtn = this.querySelector('button[type="submit"]');
submitBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Logging in...';
submitBtn.disabled = true;
@@ -566,11 +326,11 @@
console.error('Login error:', error);
showMessage(error.message || 'Login failed. Please check your credentials.', 'error');
- // Reset button state explicitly
- const submitBtn = loginForm.querySelector('button[type="submit"]'); // Ensure we have the button reference
+ // Reset button state
+ const submitBtn = this.querySelector('button[type="submit"]');
if (submitBtn) {
- submitBtn.innerHTML = '<i class="fas fa-sign-in-alt"></i> Login'; // Set back to original text
- submitBtn.disabled = false; // Re-enable the button
+ submitBtn.innerHTML = '<i class="fas fa-sign-in-alt"></i> <span data-i18n="auth.login">Login</span>';
+ submitBtn.disabled = false;
}
}
});
@@ -579,17 +339,10 @@
function showMessage(message, type) {
const authMessage = document.getElementById('authMessage');
authMessage.textContent = message;
- authMessage.className = 'auth-message';
- authMessage.classList.add(type);
+ authMessage.className = 'auth-message ' + type;
authMessage.style.display = 'block';
}
});
-
- // Footer styling (this will be replaced by footer-fix.js but kept for compatibility)
- function applyFooterStyles() {
- // Footer-fix.js will handle this, but this is a fallback
- }
- document.addEventListener('DOMContentLoaded', applyFooterStyles);
</script>
</body>
-</html>
+</html>
\ No newline at end of file
diff --git a/frontend/mobile-header.css b/frontend/mobile-header.css
index 70fd79a..12d8c88 100644
--- a/frontend/mobile-header.css
+++ b/frontend/mobile-header.css
@@ -264,137 +264,304 @@
flex-wrap: wrap !important; /* Allow wrapping when needed */
}
- /* Search box takes most of the width */
+ /* On tablets (<=768px), force search box to full row; buttons come on next row */
.search-container .search-box {
- flex: 1 1 250px !important; /* Flexible, min 250px */
- min-width: 250px !important;
- max-width: none !important;
+ flex: 0 0 100% !important;
+ min-width: 100% !important;
+ max-width: 100% !important;
}
- /* Button container stays on the right */
- .search-container > div:last-child {
+ /* Place Filter/Sort/Data/Tags on the same row under the search */
+ .search-container .filter-sort-container,
+ .search-container .secondary-actions {
+ order: 2 !important;
display: flex !important;
- gap: 6px !important;
- flex-wrap: nowrap !important;
- flex-shrink: 0 !important;
- min-width: 0 !important;
+ gap: 8px !important; /* spacing between the buttons */
+ flex-wrap: wrap !important;
+ flex: 0 0 auto !important;
+ align-items: center !important;
+ width: 100% !important; /* ensure full-width row on tablets too */
+ }
+
+ /* Tablet (600-768px): place Filter/Sort next to Search on the first row */
+ @media (min-width: 600px) and (max-width: 768px) {
+ .search-container {
+ flex-direction: row !important;
+ align-items: center !important;
+ flex-wrap: wrap !important; /* keep secondary actions on next line */
+ }
+
+ /* Let search box share the row */
+ .search-container .search-box {
+ flex: 1 1 0 !important;
+ min-width: 220px !important;
+ max-width: none !important;
+ }
+
+ /* Keep Filter/Sort on the same line as Search */
+ .search-container .filter-sort-container {
+ order: 1 !important;
+ width: auto !important;
+ flex: 0 0 auto !important;
+ gap: 8px !important;
+ }
+
+ /* Prevent Filter/Sort buttons from stretching full-width on tablets */
+ .search-container .filter-sort-container .action-btn {
+ width: auto !important;
+ }
+
+ /* Move Data/Tags/View/Scope to the next line */
+ .search-container .secondary-actions {
+ order: 2 !important; /* second row */
+ flex: 0 0 100% !important;
+ width: 100% !important;
+ }
+ }
+
+ /* Stack View and Scope vertically like Filter/Sort on mobile */
+ #viewMenuBtn,
+ #scopeMenuBtn {
+ width: 100% !important; /* full width to match Filter/Sort */
+ margin-left: 0 !important;
+ margin-right: 0 !important;
}
- /* Action buttons styling for mobile */
+ /* Make their containers span full width so buttons can center within */
+ #viewDropdownContainer {
+ width: 100% !important;
+ display: block !important;
+ }
+ #scopeDropdown {
+ width: 100% !important;
+ /* Do not force display; JS controls visibility when global view is disabled */
+ }
+
+ /* Ensure action buttons match sizing on tablet width */
+ .filter-controls .action-btn,
+ .search-container #globalManageTagsBtn {
+ height: 36px !important;
+ padding: 6px 10px !important;
+ }
+
+ /* Hide legacy Import/Export buttons on mobile; use Data menu instead */
.search-container .export-btn,
- .search-container .import-btn,
+ .search-container .import-btn {
+ display: none !important;
+ }
+
+ /* Action button styling for the visible Tags button on mobile
+ Match look/behavior of other action buttons (Filter/Sort/Data) */
.search-container #globalManageTagsBtn {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
- gap: 4px !important;
- padding: 8px 12px !important;
+ gap: 6px !important;
+ padding: 6px 10px !important;
border-radius: var(--border-radius) !important;
- border: none !important;
- background-color: var(--primary-color) !important;
- color: white !important;
- font-size: 0.85rem !important;
+ border: 1px solid var(--border-color) !important;
+ background-color: var(--bg-color) !important;
+ color: var(--text-color) !important;
+ font-size: 0.9rem !important;
font-weight: 500 !important;
cursor: pointer !important;
transition: var(--transition) !important;
height: 36px !important;
- white-space: nowrap !important;
+ white-space: nowrap !Important;
min-width: auto !important;
width: auto !important;
max-width: none !important;
flex-shrink: 0 !important;
}
- /* Import button and manage tags button get secondary styling (green) */
- .search-container .import-btn,
+ /* Import button previously got secondary styling; keep only for Tags button */
.search-container #globalManageTagsBtn {
- background-color: var(--secondary-color) !important;
+ background-color: var(--bg-color) !important;
+ color: var(--text-color) !important;
}
/* Hover states for action buttons */
- .search-container .export-btn:hover {
- background-color: var(--primary-dark) !important;
- transform: none !important; /* Remove transform for mobile */
- }
-
- .search-container .import-btn:hover,
.search-container #globalManageTagsBtn:hover {
- background-color: #27ae60 !important; /* Darker green for secondary */
+ background-color: var(--light-gray) !important;
+ color: var(--primary-color) !important;
}
/* Icon spacing in action buttons */
- .search-container .export-btn i,
- .search-container .import-btn i,
.search-container #globalManageTagsBtn i {
font-size: 0.8rem !important;
margin-right: 4px !important;
}
/* Dark mode styles for action buttons */
- :root[data-theme="dark"] .search-container .export-btn {
- background-color: var(--primary-color) !important;
- color: white !important;
+ :root[data-theme="dark"] .search-container #globalManageTagsBtn {
+ background-color: var(--bg-color) !important;
+ color: var(--text-color) !important;
+ border-color: var(--border-color) !important;
}
- :root[data-theme="dark"] .search-container .import-btn,
- :root[data-theme="dark"] .search-container #globalManageTagsBtn {
- background-color: var(--secondary-color) !important;
- color: white !important;
+ :root[data-theme="dark"] .search-container #globalManageTagsBtn:hover {
+ background-color: rgba(255, 255, 255, 0.08) !important;
+ color: var(--primary-color) !important;
}
- :root[data-theme="dark"] .search-container .export-btn:hover {
- background-color: var(--primary-dark) !important;
+ /* Tablet layout: make View and Scope share the row equally */
+ @media (min-width: 481px) and (max-width: 768px) {
+ /* Keep Data, Tags, View, Scope inline on tablets */
+ .search-container .secondary-actions {
+ flex-wrap: nowrap !important;
+ gap: 8px !important;
+ }
+ .search-container .secondary-actions #viewDropdownContainer,
+ .search-container .secondary-actions #scopeDropdown {
+ width: auto !important;
+ flex: 0 1 auto !important;
+ display: block !important;
+ min-width: 0 !important;
+ }
+ #viewMenuBtn,
+ #scopeMenuBtn {
+ width: auto !important;
+ height: 36px !important;
+ margin-left: 0 !important;
+ margin-right: 0 !important;
+ flex: 0 1 auto !important;
+ }
}
- :root[data-theme="dark"] .search-container .import-btn:hover,
- :root[data-theme="dark"] .search-container #globalManageTagsBtn:hover {
- background-color: #27ae60 !important;
+ /* Stronger tablet override (600–768px): ensure all four controls fit one row */
+ @media (min-width: 600px) and (max-width: 768px) {
+ .search-container .secondary-actions {
+ order: 2 !important;
+ width: auto !important;
+ flex: 0 0 100% !important; /* stay as one row container */
+ display: flex !important;
+ flex-wrap: nowrap !important;
+ gap: 8px !important;
+ align-items: center !important;
+ }
+
+ .search-container .secondary-actions > .data-dropdown,
+ .search-container .secondary-actions > #globalManageTagsBtn,
+ .search-container .secondary-actions > #viewDropdownContainer,
+ .search-container .secondary-actions > #scopeDropdown {
+ flex: 0 1 auto !important;
+ width: auto !important;
+ min-width: 0 !important;
+ }
}
- /* Very small screens - stack the buttons below search */
+ /* Mobile L/M/S: keep Filter & Sort next to Search; pair secondary buttons 2-per-row */
@media (max-width: 480px) {
+ /* First row: Search full-width; Row 2: Filter | Sort | Data; Row 3: Tags | View | Scope */
.search-container {
- flex-direction: column !important;
- align-items: stretch !important;
- gap: 10px !important;
+ display: grid !important;
+ grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
+ grid-template-areas:
+ "search search search"
+ "filtersort filtersort data"
+ "tags view scope" !important;
+ grid-template-rows: auto auto !important;
+ align-items: center !important;
+ gap: 8px !important;
+ width: 100% !important;
}
.search-container .search-box {
- width: 100% !important;
- min-width: unset !important;
- flex: none !important;
+ grid-area: search !important; /* search takes full top row */
+ min-width: 120px !important;
+ max-width: none !important;
+ width: auto !important;
+ }
+
+ /* Ensure Filter/Sort do not stretch */
+ .search-container .filter-sort-container .action-btn {
+ width: auto !important;
+ min-width: 0 !important;
+ flex: 0 0 auto !important;
+ }
+
+ /* Flatten secondary-actions so its children participate in the parent grid */
+ .search-container .secondary-actions {
+ grid-column: 1 / -1 !important; /* second row grid area */
+ display: contents !important;
+ }
+
+ /* Keep Filter/Sort within a two-column subgrid to preserve popover anchoring */
+ .search-container .filter-sort-container {
+ grid-area: filtersort !important;
+ display: grid !important;
+ grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
+ gap: 6px !important;
+ align-items: center !important;
+ justify-content: stretch !important;
}
- .search-container > div:last-child {
+ /* Position Data, Tags, View, Scope */
+ .search-container .secondary-actions > .data-dropdown:first-child { grid-area: data !important; }
+ .search-container #globalManageTagsBtn { grid-area: tags !important; }
+ .search-container #viewDropdownContainer { grid-area: view !important; }
+ .search-container #scopeDropdown { grid-area: scope !important; }
+
+ /* Make the button inside each grid cell fill its container */
+ .search-container .secondary-actions .data-dropdown > .action-btn,
+ .search-container .secondary-actions #globalManageTagsBtn,
+ .search-container .secondary-actions #viewDropdownContainer > .action-btn,
+ .search-container .secondary-actions #scopeDropdown > .action-btn {
width: 100% !important;
- justify-content: space-between !important;
- flex-wrap: wrap !important;
- gap: 8px !important;
}
- .search-container .export-btn,
- .search-container .import-btn,
- .search-container #globalManageTagsBtn {
- flex: 1 1 calc(33.333% - 5px) !important;
- min-width: 50px !important;
- padding: 10px 8px !important;
+ /* Compact button sizing for 3-column rows */
+ .search-container .filter-sort-container .action-btn,
+ .search-container .secondary-actions .action-btn,
+ .search-container #globalManageTagsBtn,
+ #viewMenuBtn,
+ #scopeMenuBtn {
+ height: 32px !important;
+ padding: 6px 8px !important;
+ gap: 4px !important;
font-size: 0.9rem !important;
}
- /* Hide text on small screens for action buttons */
- .search-container .export-btn span,
- .search-container .import-btn span,
+ .search-container .secondary-actions .action-btn i,
+ .search-container .filter-sort-container .action-btn i,
+ #globalManageTagsBtn i {
+ font-size: 0.95rem !important;
+ }
+
+ /* Icon-only labels for all six buttons to ensure 3-per-row fit */
+ .search-container .secondary-actions .action-btn span,
.search-container #globalManageTagsBtn span {
- display: none;
+ display: none !important;
}
+ }
- .search-container .export-btn i,
- .search-container .import-btn i,
- .search-container #globalManageTagsBtn i {
- margin-right: 0 !important;
+ /* Auto-hide labels on Filter/Sort when space is tight (extend to 425px) */
+ @media (max-width: 425px) {
+ .search-container .filter-sort-container .action-btn span {
+ display: none !important; /* icons only */
+ }
+ .search-container .filter-sort-container .action-btn {
+ gap: 0 !important;
+ padding: 6px 8px !important;
+ min-width: 36px !important;
+ }
+ /* Hide Tags label as well on very small screens */
+ .search-container #globalManageTagsBtn span {
+ display: none !important;
+ }
+ .search-container #globalManageTagsBtn {
+ gap: 0 !important;
+ padding: 6px 8px !important;
+ min-width: 36px !important;
}
}
+ /* Ultra-small tweaks */
+ @media (max-width: 340px) {
+ .search-container { gap: 6px !important; }
+ .search-container .filter-sort-container .action-btn i { font-size: 0.95rem !important; }
+ }
+
/* ===== MOBILE STATUS DASHBOARD ===== */
/* Status cards 2x2 grid layout for mobile */
@@ -405,6 +572,29 @@
margin-bottom: 25px !important;
}
+ /* Align scope switcher with view switcher in mobile action bar */
+ .filter-options .action-bar {
+ align-items: flex-start !important;
+ }
+ .view-switcher,
+ .admin-view-switcher {
+ margin-top: 0 !important;
+ }
+ .admin-view-switcher {
+ align-self: flex-end !important; /* keep scope aligned to bottom-right of row */
+ }
+
+ /* Stack bottom View and Scope switchers vertically */
+ .filter-options .action-bar {
+ flex-direction: column !important;
+ align-items: stretch !important;
+ gap: 8px !important;
+ }
+ .filter-options .action-bar .admin-view-switcher {
+ margin-left: 0 !important;
+ align-self: auto !important;
+ }
+
/* Individual status card mobile optimization */
.status-card {
background-color: var(--card-bg) !important;
diff --git a/frontend/register.html b/frontend/register.html
index e470f95..7638a27 100644
--- a/frontend/register.html
+++ b/frontend/register.html
@@ -13,7 +13,7 @@
<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=20250119001">
+ <link rel="stylesheet" href="style.css?v=20250119004">
<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">
diff --git a/frontend/reset-password-request.html b/frontend/reset-password-request.html
index fad8a6b..9d94136 100644
--- a/frontend/reset-password-request.html
+++ b/frontend/reset-password-request.html
@@ -10,7 +10,7 @@
<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=20250119001">
+ <link rel="stylesheet" href="style.css?v=20250119004">
<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">
diff --git a/frontend/reset-password.html b/frontend/reset-password.html
index 19148fd..b4cc230 100644
--- a/frontend/reset-password.html
+++ b/frontend/reset-password.html
@@ -10,7 +10,7 @@
<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=20250119001">
+ <link rel="stylesheet" href="style.css?v=20250119004">
<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">
diff --git a/frontend/script.js b/frontend/script.js
index 4db0c87..d90afee 100644
--- a/frontend/script.js
+++ b/frontend/script.js
@@ -6,6 +6,7 @@ console.log('[DEBUG] script.js loaded and running');
// Global variables
let warranties = [];
let warrantiesLoaded = false; // Track if warranties have been loaded from API
+let lastLoadedArchived = false; // Track if the current warranties array came from archived endpoint
let currentTabIndex = 0;
let tabContents = []; // Initialize as empty array
let editMode = false;
@@ -163,75 +164,42 @@ async function initViewControls() {
if (response.ok) {
const result = await response.json();
- if (result.enabled && adminViewSwitcher) {
- // Global view is enabled, show view switcher
- adminViewSwitcher.style.display = 'flex';
-
- // Add event listeners for view buttons
- if (personalViewBtn) {
- personalViewBtn.addEventListener('click', () => switchToPersonalView());
- }
- if (globalViewBtn) {
- globalViewBtn.addEventListener('click', () => switchToGlobalView());
- }
-
- // Load and apply saved view scope preference
+ const scopeDropdown = document.getElementById('scopeDropdown');
+ // Keep bottom admin switcher hidden; control only the header scope dropdown
+ if (adminViewSwitcher) adminViewSwitcher.style.display = 'none';
+ if (result.enabled) {
+ if (scopeDropdown) scopeDropdown.style.display = 'block';
+ // Apply saved scope (update title and state)
const savedScope = loadViewScopePreference();
if (savedScope === 'global') {
- // Apply global view silently without saving preference again
isGlobalView = true;
- personalViewBtn.classList.remove('active');
- globalViewBtn.classList.add('active');
updateWarrantiesPanelTitle(true);
} else {
- // Apply personal view (default)
isGlobalView = false;
- personalViewBtn.classList.add('active');
- globalViewBtn.classList.remove('active');
updateWarrantiesPanelTitle(false);
}
- } else if (adminViewSwitcher) {
- // Global view is disabled, hide view switcher
- adminViewSwitcher.style.display = 'none';
-
- // If currently in global view, switch back to personal view
+ } else {
+ if (scopeDropdown) scopeDropdown.style.display = 'none';
if (isGlobalView) {
isGlobalView = false;
updateWarrantiesPanelTitle(false);
- // Reload warranties
await loadWarranties(true);
applyFilters();
}
}
} else {
console.error('Failed to check global view status');
- // Default to showing view switcher if check fails
- if (adminViewSwitcher) {
- adminViewSwitcher.style.display = 'flex';
-
- // Add event listeners for view buttons
- if (personalViewBtn) {
- personalViewBtn.addEventListener('click', () => switchToPersonalView());
- }
- if (globalViewBtn) {
- globalViewBtn.addEventListener('click', () => switchToGlobalView());
- }
- }
+ // Hide bottom switcher even on failure; show header dropdown for fallback
+ if (adminViewSwitcher) adminViewSwitcher.style.display = 'none';
+ const scopeDropdown = document.getElementById('scopeDropdown');
+ if (scopeDropdown) scopeDropdown.style.display = 'block';
}
} catch (error) {
console.error('Error checking global view status:', error);
- // Default to showing view switcher if check fails
- if (adminViewSwitcher) {
- adminViewSwitcher.style.display = 'flex';
-
- // Add event listeners for view buttons
- if (personalViewBtn) {
- personalViewBtn.addEventListener('click', () => switchToPersonalView());
- }
- if (globalViewBtn) {
- globalViewBtn.addEventListener('click', () => switchToGlobalView());
- }
- }
+ // Keep bottom switcher hidden; show header dropdown as fallback
+ if (adminViewSwitcher) adminViewSwitcher.style.display = 'none';
+ const scopeDropdown = document.getElementById('scopeDropdown');
+ if (scopeDropdown) scopeDropdown.style.display = 'block';
}
}
@@ -251,6 +219,15 @@ async function switchToPersonalView() {
// Update title
updateWarrantiesPanelTitle(false);
+ // Update header scope label
+ try {
+ const currentScopeIcon = document.getElementById('currentScopeIcon');
+ if (currentScopeIcon) {
+ currentScopeIcon.className = 'fas fa-user';
+ currentScopeIcon.setAttribute('aria-label', 'Personal');
+ }
+ } catch (e) { /* no-op */ }
+
// Reload warranties
try {
const token = window.auth.getToken();
@@ -301,6 +278,15 @@ async function switchToGlobalView() {
// Update title
updateWarrantiesPanelTitle(true);
+ // Update header scope label
+ try {
+ const currentScopeIcon = document.getElementById('currentScopeIcon');
+ if (currentScopeIcon) {
+ currentScopeIcon.className = 'fas fa-globe';
+ currentScopeIcon.setAttribute('aria-label', 'Global');
+ }
+ } catch (e) { /* no-op */ }
+
// Reload warranties
try {
const token = window.auth.getToken();
@@ -422,7 +408,7 @@ document.addEventListener('DOMContentLoaded', function() {
await loadTags();
} catch (error) {
console.error("Failed to load tags before opening modal:", error);
- showToast("Could not load tags. Please try again.", "error");
+ showToast(window.t('messages.could_not_load_tags'), "error");
hideLoadingSpinner();
return;
}
@@ -581,6 +567,23 @@ document.addEventListener('DOMContentLoaded', function() {
console.log("[runAuthenticatedTasks] Loading warranty data...");
await loadWarranties(true); // Pass true
console.log('[DEBUG] After loadWarranties, warranties array:', warranties);
+ // After warranties are loaded and filter dropdowns populated, load filter/sort prefs and apply
+ loadFilterAndSortPreferences();
+ // Reflect saved filters in UI selects if present
+ const statusFilterEl = document.getElementById('statusFilter');
+ const tagFilterEl = document.getElementById('tagFilter');
+ const vendorFilterEl = document.getElementById('vendorFilter');
+ const warrantyTypeFilterEl = document.getElementById('warrantyTypeFilter');
+ const sortByEl = document.getElementById('sortBy');
+ if (statusFilterEl && currentFilters.status) statusFilterEl.value = currentFilters.status;
+ if (tagFilterEl && currentFilters.tag) tagFilterEl.value = currentFilters.tag;
+ if (vendorFilterEl && currentFilters.vendor) vendorFilterEl.value = currentFilters.vendor;
+ if (warrantyTypeFilterEl && currentFilters.warranty_type) warrantyTypeFilterEl.value = currentFilters.warranty_type;
+ if (sortByEl && currentFilters.sortBy) sortByEl.value = currentFilters.sortBy;
+ // Update the filter indicator if available
+ if (typeof window.updateFilterIndicator === 'function') {
+ window.updateFilterIndicator();
+ }
} else {
console.log("[runAuthenticatedTasks] Warranties list element not found.");
}
@@ -642,6 +645,31 @@ let expiringSoonDays = 30; // Default value, will be updated from user preferenc
// API URL
const API_URL = '/api/warranties';
+async function toggleArchiveStatus(warrantyId, shouldArchive) {
+ try {
+ const token = window.auth.getToken();
+ if (!token) throw new Error('No auth token');
+ const response = await fetch(`/api/warranties/${warrantyId}/archive`, {
+ method: 'PATCH',
+ headers: {
+ 'Authorization': `Bearer ${token}`,
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify({ archived: !!shouldArchive })
+ });
+ if (!response.ok) {
+ const err = await response.json().catch(() => ({}));
+ throw new Error(err.error || `HTTP ${response.status}`);
+ }
+ // Reload appropriate list
+ // Always reload current view to ensure accurate list source
+ await loadWarranties(true);
+ showToast(shouldArchive ? (window.t ? window.t('messages.archived_success') : 'Archived') : (window.t ? window.t('messages.unarchived_success') : 'Unarchived'), 'success');
+ } catch (e) {
+ console.error('Failed to toggle archive status', e);
+ showToast(window.t ? window.t('messages.error_updating_archive_status') : 'Failed to update archive status', 'error');
+ }
+}
// Utility function to escape HTML
function escapeHtml(text) {
@@ -1471,6 +1499,24 @@ async function switchView(viewType, saveToApi = true) { // Added saveToApi param
if (warrantiesList && warrantiesLoaded) {
renderWarranties(filterWarranties()); // Assuming filterWarranties() returns the correct array
}
+
+ // Update header dropdown label if present
+ try {
+ const currentViewIcon = document.getElementById('currentViewIcon');
+ if (currentViewIcon) {
+ currentViewIcon.className = 'fas';
+ if (viewType === 'list') {
+ currentViewIcon.classList.add('fa-list');
+ currentViewIcon.setAttribute('aria-label', 'List');
+ } else if (viewType === 'table') {
+ currentViewIcon.classList.add('fa-table');
+ currentViewIcon.setAttribute('aria-label', 'Table');
+ } else {
+ currentViewIcon.classList.add('fa-th-large');
+ currentViewIcon.setAttribute('aria-label', 'Grid');
+ }
+ }
+ } catch (e) { /* no-op */ }
}
// Load view preference from localStorage
@@ -1937,9 +1983,13 @@ async function loadWarranties(isAuthenticated) { // Added isAuthenticated parame
// Use the appropriate API endpoint based on saved preference
const baseUrl = window.location.origin;
- const apiUrl = shouldUseGlobalView ? `${baseUrl}/api/warranties/global` : `${baseUrl}/api/warranties`;
+ // If status is 'archived', use archived endpoint (user-scoped only for now)
+ const isArchivedView = currentFilters && currentFilters.status === 'archived';
+ const apiUrl = isArchivedView
+ ? `${baseUrl}/api/warranties/archived`
+ : (shouldUseGlobalView ? `${baseUrl}/api/warranties/global` : `${baseUrl}/api/warranties`);
- console.log(`[DEBUG] Using API endpoint based on saved preference '${savedScope}': ${apiUrl}`);
+ console.log(`[DEBUG] Using API endpoint based on saved preference '${savedScope}', archivedView=${isArchivedView}: ${apiUrl}`);
// Check if auth is available and user is authenticated using the passed parameter
if (!isAuthenticated) {
@@ -1984,11 +2034,8 @@ async function loadWarranties(isAuthenticated) { // Added isAuthenticated parame
isGlobalView = shouldUseGlobalView;
console.log(`[DEBUG] Set isGlobalView to: ${isGlobalView}`);
// Process each warranty to calculate status and days remaining
- warranties = Array.isArray(data) ? data.map(warranty => {
- const processed = processWarrantyData(warranty);
- console.log('[DEBUG] Processed warranty:', processed);
- return processed;
- }) : [];
+ warranties = Array.isArray(data) ? data.map(warranty => processWarrantyData(warranty)) : [];
+ lastLoadedArchived = isArchivedView;
console.log('[DEBUG] Final warranties array:', warranties);
console.log('[DEBUG] Total warranties loaded:', warranties.length);
console.log('[DEBUG] Warranty IDs loaded:', warranties.map(w => w.id));
@@ -2007,7 +2054,8 @@ async function loadWarranties(isAuthenticated) { // Added isAuthenticated parame
populateVendorFilter(); // Added call to populate vendor filter
populateWarrantyTypeFilter(); // Added call to populate warranty type filter
- // REMOVED: applyFilters(); // Now called from authStateReady after data and prefs are loaded
+ // Ensure the UI reflects the freshly loaded data
+ applyFilters();
}
} catch (error) {
console.error('[DEBUG] Error loading warranties:', error);
@@ -2022,8 +2070,8 @@ function renderEmptyState(message = 'No warranties yet. Add your first warranty
warrantiesList.innerHTML = `
<div class="empty-state">
<i class="fas fa-box-open"></i>
- <h3>No warranties found</h3>
- <p>${message}</p>
+ <h3>${window.t ? window.t('messages.no_warranties_found') : 'No warranties found'}</h3>
+ <p>${message || (window.t ? window.t('messages.no_warranties_found_add_first') : 'No warranties yet. Add your first warranty to get started.')}</p>
</div>
`;
}
@@ -2168,8 +2216,10 @@ async function renderWarranties(warrantiesToRender) {
return;
}
+ const isArchivedView = currentFilters && currentFilters.status === 'archived';
+
if (!warrantiesToRender || warrantiesToRender.length === 0) {
- renderEmptyState(); // renderEmptyState should also check for warrantiesList or its specific container
+ renderEmptyState(isArchivedView ? (window.t ? window.t('messages.no_archived_warranties') : 'No archived warranties.') : undefined); // renderEmptyState should also check for warrantiesList or its specific container
return;
}
@@ -2210,7 +2260,7 @@ async function renderWarranties(warrantiesToRender) {
console.log('Sorted warranties:', sortedWarranties);
// Update the container class based on current view
- warrantiesList.className = `warranties-list ${currentView}-view`;
+ warrantiesList.className = `warranties-list ${currentView}-view ${isArchivedView ? 'archived-view' : ''}`;
// Show/hide table header for table view
if (tableViewHeader) {
@@ -2229,8 +2279,14 @@ async function renderWarranties(warrantiesToRender) {
const purchaseDate = warranty.purchaseDate;
const expirationDate = warranty.expirationDate;
const isLifetime = warranty.is_lifetime;
- const statusClass = warranty.status || 'unknown';
- const statusText = warranty.statusText || 'Unknown Status';
+ let statusClass = warranty.status || 'unknown';
+ let statusText = warranty.statusText || 'Unknown Status';
+ if (isArchivedView) {
+ const archivedTextRaw = window.i18next ? window.i18next.t('warranties.archived') : 'Archived';
+ const archivedLabel = archivedTextRaw && archivedTextRaw !== 'warranties.archived' ? archivedTextRaw : 'Archived';
+ statusClass = 'archived';
+ statusText = archivedLabel;
+ }
// Format warranty duration text
let warrantyDurationText = window.i18next ? window.i18next.t('warranties.na') : 'N/A';
if (isLifetime) {
@@ -2354,9 +2410,21 @@ async function renderWarranties(warrantiesToRender) {
<button class="${claimsButtonClass}" title="${claimsTitle}" data-id="${warranty.id}">
<i class="fas fa-clipboard-list"></i>
</button>
- <button class="action-btn edit-btn" title="Edit" data-id="${warranty.id}">
- <i class="fas fa-edit"></i>
- </button>
+ ${isArchivedView ? `
+ <button class="action-btn unarchive-btn" title="Unarchive" data-id="${warranty.id}">
+ <i class="fas fa-box-open"></i>
+ </button>
+ <button class="action-btn edit-btn" title="Edit (disabled in archived view)" data-id="${warranty.id}" disabled>
+ <i class="fas fa-edit"></i>
+ </button>
+ ` : `
+ <button class="action-btn edit-btn" title="Edit" data-id="${warranty.id}">
+ <i class="fas fa-edit"></i>
+ </button>
+ <button class="action-btn archive-btn" title="Archive" data-id="${warranty.id}">
+ <i class="fas fa-archive"></i>
+ </button>
+ `}
<button class="action-btn delete-btn" title="Delete" data-id="${warranty.id}">
<i class="fas fa-trash"></i>
</button>
@@ -2569,7 +2637,7 @@ async function renderWarranties(warrantiesToRender) {
if (canEdit) {
// Edit button event listener
const editBtn = cardElement.querySelector('.edit-btn');
- if (editBtn) {
+ if (editBtn && !editBtn.disabled) {
editBtn.addEventListener('click', async () => {
console.log('[DEBUG] Edit button clicked for warranty ID:', warranty.id);
// Find the current warranty data instead of using the potentially stale warranty object
@@ -2590,6 +2658,20 @@ async function renderWarranties(warrantiesToRender) {
openDeleteModal(warranty.id, warranty.product_name);
});
}
+
+ // Archive/Unarchive button event listeners
+ const archiveBtn = cardElement.querySelector('.archive-btn');
+ if (archiveBtn) {
+ archiveBtn.addEventListener('click', () => {
+ openArchiveModal(warranty.id, warranty.product_name);
+ });
+ }
+ const unarchiveBtn = cardElement.querySelector('.unarchive-btn');
+ if (unarchiveBtn) {
+ unarchiveBtn.addEventListener('click', async () => {
+ await toggleArchiveStatus(warranty.id, false);
+ });
+ }
}
// View notes button event listener
const notesLink = cardElement.querySelector('.notes-link');
@@ -2721,10 +2803,22 @@ function applyFilters() {
console.log('[FILTER DEBUG] Applying filters with:', currentFilters);
console.log('[FILTER DEBUG] Total warranties before filtering:', warranties.length);
+ // If user selected archived status, reload data from archived endpoint and return
+ if (currentFilters.status === 'archived') {
+ if (!lastLoadedArchived) {
+ loadWarranties(true);
+ return;
+ }
+ } else if (lastLoadedArchived) {
+ // If leaving archived view, reload normal source
+ loadWarranties(true);
+ return;
+ }
+
// Filter warranties based on currentFilters
const filtered = warranties.filter(warranty => {
// Status filter
- if (currentFilters.status !== 'all' && warranty.status !== currentFilters.status) {
+ if (currentFilters.status !== 'all' && currentFilters.status !== 'archived' && warranty.status !== currentFilters.status) {
return false;
}
@@ -2779,6 +2873,53 @@ function applyFilters() {
renderWarranties(filtered);
}
+// --- Persist and restore filters/sort ---
+function saveFilterPreferences() {
+ try {
+ const prefix = getPreferenceKeyPrefix();
+ const filtersToSave = {
+ status: currentFilters.status || 'all',
+ tag: currentFilters.tag || 'all',
+ vendor: currentFilters.vendor || 'all',
+ warranty_type: currentFilters.warranty_type || 'all'
+ };
+ localStorage.setItem(`${prefix}warrantyFilters`, JSON.stringify(filtersToSave));
+ } catch (e) {
+ console.warn('Failed to save filter preferences', e);
+ }
+}
+
+function saveSortPreference() {
+ try {
+ const prefix = getPreferenceKeyPrefix();
+ localStorage.setItem(`${prefix}warrantySortBy`, currentFilters.sortBy || 'expiration');
+ } catch (e) {
+ console.warn('Failed to save sort preference', e);
+ }
+}
+
+function loadFilterAndSortPreferences() {
+ try {
+ const prefix = getPreferenceKeyPrefix();
+ const savedFiltersRaw = localStorage.getItem(`${prefix}warrantyFilters`);
+ if (savedFiltersRaw) {
+ const savedFilters = JSON.parse(savedFiltersRaw);
+ if (savedFilters && typeof savedFilters === 'object') {
+ currentFilters.status = savedFilters.status || currentFilters.status;
+ currentFilters.tag = savedFilters.tag || currentFilters.tag;
+ currentFilters.vendor = savedFilters.vendor || currentFilters.vendor;
+ currentFilters.warranty_type = savedFilters.warranty_type || currentFilters.warranty_type;
+ }
+ }
+ const savedSort = localStorage.getItem(`${prefix}warrantySortBy`);
+ if (savedSort) {
+ currentFilters.sortBy = savedSort;
+ }
+ } catch (e) {
+ console.warn('Failed to load filter/sort preferences', e);
+ }
+}
+
async function openEditModal(warranty) {
// Close any existing modals first
closeModals();
@@ -3346,6 +3487,38 @@ function openDeleteModal(warrantyId, productName) {
}
}
+// Open Archive confirmation modal
+function openArchiveModal(warrantyId, productName) {
+ currentWarrantyId = warrantyId;
+ const archiveProductNameElement = document.getElementById('archiveProductName');
+ if (archiveProductNameElement) {
+ archiveProductNameElement.textContent = productName || '';
+ }
+ const archiveModal = document.getElementById('archiveModal');
+ if (archiveModal) {
+ archiveModal.classList.add('active');
+ }
+}
+
+// Confirm archive handler
+async function confirmArchive() {
+ if (!currentWarrantyId) {
+ showToast('No warranty selected', 'error');
+ return;
+ }
+ try {
+ await toggleArchiveStatus(currentWarrantyId, true);
+ closeModals();
+ // Guidance toast for where to find archived items
+ const guidance = 'You can find archived warranties by selecting "Archived" in Filters.';
+ showToast(guidance, 'info');
+ currentWarrantyId = null;
+ } catch (e) {
+ // toggleArchiveStatus already toasts on failure
+ console.error('Archive failed', e);
+ }
+}
+
// Function to close all modals
function closeModals() {
document.querySelectorAll('.modal-backdrop').forEach(modal => {
@@ -3762,6 +3935,25 @@ function initClaimsEventListeners() {
e.preventDefault();
const warrantyId = parseInt(e.target.closest('.claims-link').dataset.id);
openClaimsModal(warrantyId);
+ return;
+ }
+ // Archive button
+ if (e.target.closest('.archive-btn')) {
+ e.preventDefault();
+ const el = e.target.closest('.archive-btn');
+ const warrantyId = parseInt(el.dataset.id);
+ const card = el.closest('.warranty-card');
+ const titleEl = card ? card.querySelector('.product-name-header .warranty-title') : null;
+ const productName = titleEl ? titleEl.textContent.trim() : '';
+ openArchiveModal(warrantyId, productName);
+ return;
+ }
+ // Unarchive button
+ if (e.target.closest('.unarchive-btn')) {
+ e.preventDefault();
+ const warrantyId = parseInt(e.target.closest('.unarchive-btn').dataset.id);
+ toggleArchiveStatus(warrantyId, false);
+ return;
}
});
}
@@ -4531,11 +4723,11 @@ function initTagFunctionality() {
}
// Function to load all tags
-async function loadTags() {
+async function loadTags(force = false) {
console.log('[script.js] loadTags() called. Current page:', window.location.pathname);
// Check if tags are already loaded and reasonably populated
- if (allTags && allTags.length > 0) {
+ if (!force && allTags && allTags.length > 0) {
console.log('[script.js] Tags already loaded in allTags global. Skipping fetch. Count:', allTags.length);
// Optionally, re-dispatch the event if other components might need it on subsequent (though now less likely) calls
// document.dispatchEvent(new CustomEvent('allTagsLoaded', { detail: allTags }));
@@ -4840,7 +5032,7 @@ function createTag(name) {
});
if (response.status === 409) {
- reject(new Error('A tag with this name already exists'));
+ reject(new Error(window.t('messages.tag_already_exists')));
return;
}
if (response.status === 401) {
@@ -4903,6 +5095,7 @@ function openTagManagementModal() {
// Populate existing tags
renderExistingTags();
+ addTagManagementEventListeners();
// Show modal
tagManagementModal.classList.add('active');
@@ -4911,93 +5104,86 @@ function openTagManagementModal() {
// Render existing tags in the management modal
function renderExistingTags() {
if (!existingTagsContainer) return;
-
existingTagsContainer.innerHTML = '';
-
- if (allTags.length === 0) {
- existingTagsContainer.innerHTML = '<div class="no-tags">No tags created yet</div>';
- return;
- }
-
- allTags.forEach(tag => {
- const tagElement = document.createElement('div');
- tagElement.className = 'existing-tag';
-
- tagElement.innerHTML = `
- <div class="existing-tag-info">
- <div class="existing-tag-color" style="background-color: ${tag.color}"></div>
- <div class="existing-tag-name">${tag.name}</div>
- </div>
- <div class="existing-tag-actions">
- <button class="btn btn-sm btn-secondary edit-tag" data-id="${tag.id}">
- <i class="fas fa-edit"></i>
- </button>
- <button class="btn btn-sm btn-danger delete-tag" data-id="${tag.id}">
- <i class="fas fa-trash"></i>
- </button>
- </div>
- `;
-
- // Add event listeners for edit and delete
- tagElement.querySelector('.edit-tag').addEventListener('click', () => {
- editTag(tag);
- });
-
- tagElement.querySelector('.delete-tag').addEventListener('click', () => {
- deleteTag(tag.id);
+
+ const wrapper = document.createElement('div');
+ // Ensure horizontal scroll on small screens
+ wrapper.className = 'table-responsive';
+ const table = document.createElement('table');
+ table.className = 'tag-management-table';
+
+ // Header
+ const thead = document.createElement('thead');
+ thead.innerHTML = `
+ <tr>
+ <th class="tag-color-header">Color</th>
+ <th>Name</th>
+ <th class="tag-actions-header">Actions</th>
+ </tr>
+ `;
+ table.appendChild(thead);
+
+ const tbody = document.createElement('tbody');
+
+ if (!allTags || allTags.length === 0) {
+ const emptyRow = document.createElement('tr');
+ emptyRow.innerHTML = `<td colspan="3"><div class="no-tags">${window.t ? window.t('messages.no_tags_created_yet') : 'No tags created yet'}</div></td>`;
+ tbody.appendChild(emptyRow);
+ } else {
+ allTags.forEach(tag => {
+ const row = document.createElement('tr');
+ row.className = 'existing-tag-row';
+ row.dataset.id = String(tag.id);
+
+ row.innerHTML = `
+ <td>
+ <div class="tag-color-swatch-container">
+ <div class="tag-color-swatch" style="background-color: ${tag.color}" aria-label="${escapeHtml(tag.name)}"></div>
+ <input type="color" class="tag-color-input-hidden" value="${tag.color}" aria-label="Pick color" />
+ </div>
+ </td>
+ <td>
+ <span class="tag-name-display">${escapeHtml(tag.name)}</span>
+ <input type="text" class="form-control tag-name-input" value="${escapeHtml(tag.name)}" />
+ </td>
+ <td class="tag-actions">
+ <div class="view-actions">
+ <button class="btn btn-sm btn-secondary edit-tag" title="Edit"><i class="fas fa-edit"></i></button>
+ <button class="btn btn-sm btn-danger delete-tag" title="Delete"><i class="fas fa-trash"></i></button>
+ </div>
+ <div class="edit-actions">
+ <button class="btn btn-sm btn-primary save-tag" title="Save"><i class="fas fa-check"></i></button>
+ <button class="btn btn-sm btn-secondary cancel-edit" title="Cancel"><i class="fas fa-times"></i></button>
+ </div>
+ </td>
+ `;
+
+ tbody.appendChild(row);
});
-
- existingTagsContainer.appendChild(tagElement);
- });
+ }
+
+ table.appendChild(tbody);
+ wrapper.appendChild(table);
+ existingTagsContainer.appendChild(wrapper);
+
+ // Ensure delegation is attached once
+ addTagManagementEventListeners();
}
// Edit a tag
-function editTag(tag) {
- const tagInfoElement = document.querySelector(`.existing-tag .existing-tag-info:has(+ .existing-tag-actions button[data-id="${tag.id}"])`);
-
- if (!tagInfoElement) {
- // Alternative selector for browsers that don't support :has
- const tagElement = document.querySelector(`.existing-tag`);
- const buttons = tagElement?.querySelectorAll(`.existing-tag-actions button[data-id="${tag.id}"]`);
- if (buttons?.length > 0) {
- const parent = buttons[0].closest('.existing-tag');
- if (parent) {
- const infoElement = parent.querySelector('.existing-tag-info');
- if (infoElement) {
- tagInfoElement = infoElement;
- }
- }
- }
-
- if (!tagInfoElement) return;
- }
-
- const originalHTML = tagInfoElement.innerHTML;
-
- tagInfoElement.innerHTML = `
- <input type="text" class="form-control edit-tag-name" value="${tag.name}" style="width: 60%;">
- <input type="color" class="edit-tag-color" value="${tag.color}" style="width: 40px; height: 38px;">
- <button class="btn btn-sm btn-primary save-edit" data-id="${tag.id}">Save</button>
- <button class="btn btn-sm btn-secondary cancel-edit">Cancel</button>
- `;
-
- // Add event listeners
- tagInfoElement.querySelector('.save-edit').addEventListener('click', () => {
- const newName = tagInfoElement.querySelector('.edit-tag-name').value.trim();
- const newColor = tagInfoElement.querySelector('.edit-tag-color').value;
-
- if (!newName) {
- showToast(window.t('messages.tag_name_required'), 'error');
- return;
- }
-
- updateTag(tag.id, newName, newColor);
- });
-
- tagInfoElement.querySelector('.cancel-edit').addEventListener('click', () => {
- // Restore original HTML
- tagInfoElement.innerHTML = originalHTML;
- });
+function editTag(row) {
+ // Switch row into edit mode (toggle inputs/buttons)
+ const nameDisplay = row.querySelector('.tag-name-display');
+ const nameInput = row.querySelector('.tag-name-input');
+ const viewActions = row.querySelector('.view-actions');
+ const editActions = row.querySelector('.edit-actions');
+ if (!nameDisplay || !nameInput || !viewActions || !editActions) return;
+
+ nameDisplay.style.display = 'none';
+ nameInput.style.display = 'block';
+ viewActions.style.display = 'none';
+ editActions.style.display = 'flex';
+ row.classList.add('editing');
}
// Update a tag
@@ -5024,61 +5210,52 @@ function updateTag(id, name, color) {
if (response.status === 409) {
throw new Error('A tag with this name already exists');
}
- throw new Error('Failed to update tag');
+ throw new Error(window.t('messages.failed_to_update_tag'));
}
return response.json();
})
.then(data => {
- // Update tag in allTags array
- const index = allTags.findIndex(tag => tag.id === id);
- if (index !== -1) {
- allTags[index].name = name;
- allTags[index].color = color;
- }
-
- // Update tag in selectedTags if present
- const selectedIndex = selectedTags.findIndex(tag => tag.id === id);
- if (selectedIndex !== -1) {
- selectedTags[selectedIndex].name = name;
- 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;
+ // Refresh lists to ensure consistency and exit edit mode
+ return loadTags(true).then(() => {
+ // Update local selections and warranties to reflect new tag data immediately
+ try {
+ if (data && typeof data.id !== 'undefined') {
+ // Update selected tags in Add Warranty flow
+ if (Array.isArray(selectedTags) && selectedTags.length > 0) {
+ selectedTags = selectedTags.map(t => t.id === data.id ? { id: data.id, name: data.name, color: data.color } : t);
}
- });
+ // Update selected tags in Edit Warranty flow
+ if (Array.isArray(editSelectedTags) && editSelectedTags.length > 0) {
+ editSelectedTags = editSelectedTags.map(t => t.id === data.id ? { id: data.id, name: data.name, color: data.color } : t);
+ }
+ // Update tags inside existing warranties so cards reflect changes
+ if (Array.isArray(warranties) && warranties.length > 0) {
+ warranties.forEach(w => {
+ if (Array.isArray(w.tags)) {
+ w.tags.forEach(tag => {
+ if (tag.id === data.id) {
+ tag.name = data.name;
+ tag.color = data.color;
+ }
+ });
+ }
+ });
+ }
+ }
+ } catch (e) {
+ console.warn('[script.js] Non-fatal error while updating local tag state after update:', e);
}
+
+ renderExistingTags();
+ renderSelectedTags();
+ renderEditSelectedTags();
+ populateTagFilter();
+ renderWarranties(warranties);
+ if (document.getElementById('summary-tags')) {
+ updateSummary();
+ }
+ showToast(window.t('messages.tag_updated_successfully'), 'success');
});
-
- // Rerender existing tags and selected tags
- renderExistingTags();
- renderSelectedTags();
- renderEditSelectedTags();
-
- // Update summary if needed
- if (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 => {
console.error('Error updating tag:', error);
@@ -5086,6 +5263,89 @@ function updateTag(id, name, color) {
});
}
+// Centralized event delegation for tag management table
+function addTagManagementEventListeners() {
+ if (!tagManagementModal) return;
+ const container = existingTagsContainer;
+ if (!container) return;
+
+ // Avoid attaching multiple times
+ if (container.dataset.tmListenersAttached === 'true') return;
+ container.dataset.tmListenersAttached = 'true';
+
+ container.addEventListener('click', (e) => {
+ const row = e.target.closest('tr.existing-tag-row');
+ if (!row) return;
+ const id = parseInt(row.dataset.id, 10);
+ if (Number.isNaN(id)) return;
+
+ if (e.target.closest('.edit-tag')) {
+ editTag(row);
+ return;
+ }
+ if (e.target.closest('.cancel-edit')) {
+ // Exit edit mode: revert inputs/buttons visibility
+ const nameDisplay = row.querySelector('.tag-name-display');
+ const nameInput = row.querySelector('.tag-name-input');
+ const viewActions = row.querySelector('.view-actions');
+ const editActions = row.querySelector('.edit-actions');
+ if (nameDisplay && nameInput && viewActions && editActions) {
+ nameDisplay.style.display = '';
+ nameInput.style.display = 'none';
+ viewActions.style.display = '';
+ editActions.style.display = 'none';
+ }
+ row.classList.remove('editing');
+ return;
+ }
+ if (e.target.closest('.save-tag')) {
+ const nameInput = row.querySelector('.tag-name-input');
+ const colorInput = row.querySelector('.tag-color-input-hidden');
+ const newName = (nameInput && nameInput.value ? nameInput.value.trim() : '');
+ const newColor = colorInput ? colorInput.value : undefined;
+ if (!newName) {
+ showToast(window.t('messages.tag_name_required'), 'error');
+ return;
+ }
+ updateTag(id, newName, newColor);
+ row.classList.remove('editing');
+ return;
+ }
+ if (e.target.closest('.delete-tag')) {
+ deleteTag(id);
+ return;
+ }
+ });
+
+ // Color picker change via delegation
+ container.addEventListener('input', (e) => {
+ if (e.target.matches('.tag-color-input-hidden')) {
+ const row = e.target.closest('tr.existing-tag-row');
+ const swatch = row ? row.querySelector('.tag-color-swatch') : null;
+ if (swatch) swatch.style.backgroundColor = e.target.value;
+ }
+ });
+
+ // Auto-save color changes without requiring Edit/Save click
+ container.addEventListener('change', (e) => {
+ if (e.target.matches('.tag-color-input-hidden')) {
+ const row = e.target.closest('tr.existing-tag-row');
+ if (!row) return;
+ const id = parseInt(row.dataset.id, 10);
+ if (Number.isNaN(id)) return;
+ const nameInput = row.querySelector('.tag-name-input');
+ const nameDisplay = row.querySelector('.tag-name-display');
+ const currentName = (nameInput && nameInput.style.display !== 'none' ? nameInput.value : (nameDisplay ? nameDisplay.textContent : '')).trim();
+ const newColor = e.target.value;
+ if (!currentName) {
+ showToast(window.t ? window.t('messages.tag_name_required') : 'Tag name is required', 'error');
+ return;
+ }
+ updateTag(id, currentName, newColor);
+ }
+ });
+}
+
// Delete a tag
function deleteTag(id) {
if (!confirm('Are you sure you want to delete this tag? It will be removed from all warranties.')) {
@@ -5168,7 +5428,7 @@ function setupUIEventListeners() {
await loadTags();
} catch (error) {
console.error("Failed to load tags before opening modal:", error);
- showToast("Could not load tags. Please try again.", "error");
+ showToast(window.t('messages.could_not_load_tags'), "error");
hideLoadingSpinner();
return;
}
@@ -5271,6 +5531,7 @@ function setupUIEventListeners() {
statusFilter.addEventListener('change', () => {
currentFilters.status = statusFilter.value;
applyFilters();
+ saveFilterPreferences();
});
}
@@ -5278,6 +5539,7 @@ function setupUIEventListeners() {
tagFilter.addEventListener('change', () => {
currentFilters.tag = tagFilter.value;
applyFilters();
+ saveFilterPreferences();
});
}
@@ -5285,6 +5547,7 @@ function setupUIEventListeners() {
vendorFilter.addEventListener('change', () => {
currentFilters.vendor = vendorFilter.value;
applyFilters();
+ saveFilterPreferences();
});
}
@@ -5292,6 +5555,7 @@ function setupUIEventListeners() {
warrantyTypeFilter.addEventListener('change', () => {
currentFilters.warranty_type = warrantyTypeFilter.value;
applyFilters();
+ saveFilterPreferences();
});
}
@@ -5299,6 +5563,7 @@ function setupUIEventListeners() {
sortBySelect.addEventListener('change', () => {
currentFilters.sortBy = sortBySelect.value;
applyFilters();
+ saveSortPreference();
});
}
@@ -5402,6 +5667,10 @@ function setupUIEventListeners() {
// Confirm delete button
const confirmDeleteBtn = document.getElementById('confirmDeleteBtn');
if (confirmDeleteBtn) confirmDeleteBtn.addEventListener('click', deleteWarranty);
+
+ // Confirm archive button
+ const confirmArchiveBtn = document.getElementById('confirmArchiveBtn');
+ if (confirmArchiveBtn) confirmArchiveBtn.addEventListener('click', confirmArchive);
// Load saved view preference
// loadViewPreference(); // Disabled: now called after authStateReady
@@ -6268,7 +6537,7 @@ function setupModalTriggers() {
// --- Edit Modal Triggers (Keep existing logic) ---
// Close edit/delete modals when clicking outside or on close button
- document.querySelectorAll('#editModal, #deleteModal, [data-dismiss="modal"]').forEach(element => {
+ document.querySelectorAll('#editModal, #deleteModal, #archiveModal, [data-dismiss="modal"]').forEach(element => {
element.addEventListener('click', (e) => {
// Check if the click is on the backdrop itself OR a dismiss button
if (e.target === element || e.target.matches('[data-dismiss="modal"]')) {
@@ -6353,7 +6622,7 @@ async function handleImport(file) {
// ***** FIX: Reload the tags list *****
console.log("Import successful, reloading tags...");
- await loadTags(); // Fetch the updated list of all tags
+ await loadTags(true); // Fetch the updated list of all tags
// ***** END FIX *****
// Add a small delay to ensure backend has processed the data
diff --git a/frontend/settings-new.html b/frontend/settings-new.html
index 2c69380..b07dacb 100644
--- a/frontend/settings-new.html
+++ b/frontend/settings-new.html
@@ -17,7 +17,7 @@
<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=20250119001">
+ <link rel="stylesheet" href="style.css?v=20250119004">
<!-- 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 -->
@@ -27,7 +27,7 @@
<!-- Load header fix styles last to override any conflicting styles -->
<link rel="stylesheet" href="header-fix.css?v=20250119001">
<!-- Mobile Header specific styles -->
- <link rel="stylesheet" href="mobile-header.css?v=20250119001">
+ <link rel="stylesheet" href="mobile-header.css?v=20250119002">
<!-- Load fix for auth buttons -->
<script src="fix-auth-buttons-loader.js?v=20250119001"></script>
@@ -217,6 +217,7 @@
<option value="ja">日本語</option>
<option value="pt">Português</option>
<option value="ko">한국어</option>
+ <option value="tr">Türkçe</option>
</select>
</div>
</div>
diff --git a/frontend/settings-new.js b/frontend/settings-new.js
index e226130..8123f40 100644
--- a/frontend/settings-new.js
+++ b/frontend/settings-new.js
@@ -176,12 +176,28 @@ async function loadCurrenciesForSettings() {
* Initialize language selector
*/
function initLanguageSelector() {
- if (!languageSelect) return;
+ console.log('initLanguageSelector called');
+ console.log('languageSelect element exists:', !!languageSelect);
+
+ if (!languageSelect) {
+ console.error('Language select element not found!');
+ return;
+ }
+
+ // Check if already initialized
+ if (languageSelect.hasAttribute('data-initialized')) {
+ console.log('Language selector already initialized, skipping');
+ return;
+ }
// Get current language
const currentLang = window.i18n?.getCurrentLanguage() || 'en';
+ console.log('Setting language selector to current language:', currentLang);
languageSelect.value = currentLang;
+ // Mark as initialized
+ languageSelect.setAttribute('data-initialized', 'true');
+
// Add event listener for language changes
languageSelect.addEventListener('change', async function() {
const selectedLanguage = this.value;
@@ -189,6 +205,7 @@ function initLanguageSelector() {
if (window.i18n?.changeLanguage) {
try {
+ showToast('Changing language...', 'info');
await window.i18n.changeLanguage(selectedLanguage);
showToast(window.t('messages.saved') || 'Language changed successfully', 'success');
@@ -200,8 +217,43 @@ function initLanguageSelector() {
console.error('Failed to change language:', error);
showToast(window.t('messages.error') || 'Failed to change language', 'error');
}
+ } else {
+ console.warn('i18n changeLanguage function not available');
+ showToast('Language system not ready. Please try again.', 'error');
}
});
+
+ console.log('Language selector initialized successfully with current language:', currentLang);
+}
+
+/**
+ * Initialize language selector after i18n is ready
+ */
+function initLanguageSelectorWhenReady() {
+ console.log('initLanguageSelectorWhenReady called');
+ console.log('window.i18n available:', !!window.i18n);
+ console.log('window.i18n.getCurrentLanguage available:', !!(window.i18n && window.i18n.getCurrentLanguage));
+
+ if (window.i18n && window.i18n.getCurrentLanguage) {
+ // i18n is already ready
+ console.log('i18n already ready, initializing language selector');
+ initLanguageSelector();
+ } else {
+ // Wait for i18n to be ready
+ console.log('Waiting for i18n to be ready...');
+ window.addEventListener('i18nReady', function(event) {
+ console.log('i18n is now ready, initializing language selector');
+ initLanguageSelector();
+ }, { once: true }); // Use once: true to ensure this only runs once
+
+ // Also try again after a short delay as backup
+ setTimeout(() => {
+ if (window.i18n && window.i18n.getCurrentLanguage && !languageSelect.hasAttribute('data-initialized')) {
+ console.log('Backup initialization: i18n ready, initializing language selector');
+ initLanguageSelector();
+ }
+ }, 2000);
+ }
}
/**
@@ -294,6 +346,21 @@ document.addEventListener('DOMContentLoaded', function() {
// DEBUG: Check current user data
const debugCurrentUser = window.auth && window.auth.getCurrentUser ? window.auth.getCurrentUser() : null;
console.log('DEBUG: Current user data:', debugCurrentUser);
+
+ // Also listen for i18nReady event to ensure language selector gets initialized
+ console.log('Setting up i18nReady event listener from DOMContentLoaded');
+ window.addEventListener('i18nReady', function(event) {
+ console.log('i18nReady event received in DOMContentLoaded listener, initializing language selector');
+ // Small delay to ensure all DOM elements are ready
+ setTimeout(() => {
+ if (!document.getElementById('languageSelect').hasAttribute('data-initialized')) {
+ console.log('Language selector not yet initialized, doing it now');
+ initLanguageSelector();
+ } else {
+ console.log('Language selector already initialized');
+ }
+ }, 100);
+ }, { once: true });
if (debugCurrentUser) {
console.log('DEBUG: User has is_owner field:', 'is_owner' in debugCurrentUser, 'Value:', debugCurrentUser.is_owner);
}
@@ -379,8 +446,8 @@ document.addEventListener('DOMContentLoaded', function() {
function initPage() {
console.log('Initializing settings page');
- // Initialize language selector
- initLanguageSelector();
+ // Initialize language selector when i18n is ready
+ initLanguageSelectorWhenReady();
// Check authentication
if (window.auth) {
@@ -1625,8 +1692,12 @@ async function savePreferences() {
}, 1000);
} catch (error) {
console.error('Failed to change language after saving preferences:', error);
+ showToast('Failed to change language. Please try again.', 'error');
}
}
+ } else if (preferencesToSave.preferred_language) {
+ console.warn('i18n changeLanguage function not available when saving preferences');
+ showToast('Language system not ready. Settings saved but language not changed. Please refresh and try again.', 'warning');
}
} else {
console.error('Preferences save failed. Response status:', response.status);
@@ -2339,7 +2410,7 @@ function deleteUser() {
})
.catch(error => {
console.error('Error during user deletion:', error);
- showToast('Error during user deletion: ' + error.message, 'error');
+ showToast(window.t('messages.error_during_user_deletion', { error: error.message }), 'error');
hideLoading();
// Try the direct API call as a fallback
@@ -2362,7 +2433,7 @@ function deleteUser() {
}, 500);
}
} else {
- showToast(`Failed to delete user ${user.username} with direct API call.`, 'error');
+ showToast(window.t('messages.failed_to_delete_user_with_direct_api_call', { username: user.username }), 'error');
}
})
.catch(error => {
@@ -2954,7 +3025,7 @@ function showUsersList() {
.catch(error => {
checkingToast.remove();
console.error('Error checking if user exists:', error);
- showToast('Error checking if user exists: ' + error.message, 'error');
+ showToast(window.t('messages.error_checking_if_user_exists', { error: error.message }), 'error');
// Ask if they want to try deletion anyway
if (confirm(`Error checking if user ${user.username} exists. Try deletion anyway?`)) {
@@ -3169,7 +3240,7 @@ function testUserDeletion(userId) {
}, 500);
}
} else {
- showToast(`Failed to delete user ${user.username} with direct API call.`, 'error');
+ showToast(window.t('messages.failed_to_delete_user_with_direct_api_call', { username: user.username }), 'error');
}
})
.catch(error => {
@@ -3432,7 +3503,7 @@ async function saveSiteSettings() {
if (response.ok) {
showToast(result.message || 'Site settings saved successfully', 'success');
} else {
- showToast(result.message || 'Failed to save site settings', 'error');
+ showToast(result.message || window.t('messages.failed_to_save_site_settings'), 'error');
}
} catch (error) {
console.error('Error saving site settings:', error);
@@ -5010,7 +5081,7 @@ async function testFileUpload() {
} catch (error) {
console.error('❌ Error testing file upload:', error);
- showToast(`File upload test error: ${error.message}`, 'error');
+ showToast(window.t('messages.file_upload_test_error', { error: error.message }), 'error');
} finally {
hideLoading();
}
diff --git a/frontend/status.html b/frontend/status.html
index dc3374e..767a950 100644
--- a/frontend/status.html
+++ b/frontend/status.html
@@ -19,7 +19,7 @@
<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=20250119001">
+ <link rel="stylesheet" href="style.css?v=20250119004">
<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">
diff --git a/frontend/style.css b/frontend/style.css
index de2cdeb..24ea404 100644
--- a/frontend/style.css
+++ b/frontend/style.css
@@ -110,6 +110,15 @@
box-sizing: border-box;
}
+/* Responsive media defaults */
+img,
+video,
+canvas,
+svg {
+ max-width: 100%;
+ height: auto;
+}
+
:root[data-theme="dark"] {
--bg-color: #1a1a1a;
--card-bg: #2d2d2d;
@@ -198,6 +207,18 @@ body {
padding: 20px;
}
+@media (max-width: 425px) {
+ .container { padding: 12px; }
+}
+
+@media (max-width: 375px) {
+ .container { padding: 10px; }
+}
+
+@media (max-width: 320px) {
+ .container { padding: 8px; }
+}
+
/* ===== HEADER ===== */
header {
background-color: var(--card-bg);
@@ -242,6 +263,18 @@ header .container {
}
}
+@media (max-width: 425px) {
+ .panel-header h2 { font-size: 1.25rem; }
+}
+
+@media (max-width: 375px) {
+ .panel-header h2 { font-size: 1.15rem; }
+}
+
+@media (max-width: 320px) {
+ .panel-header h2 { font-size: 1.05rem; }
+}
+
/* ===== FORM PANEL ===== */
.form-panel {
background-color: var(--card-bg);
@@ -719,6 +752,14 @@ input.invalid {
/* height: auto; */ /* Remove to allow grid stretch */
}
+@media (max-width: 375px) {
+ .warranty-card { border-radius: 6px; }
+}
+
+@media (max-width: 320px) {
+ .warranty-card { border-radius: 4px; }
+}
+
.warranty-card:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
@@ -736,6 +777,17 @@ input.invalid {
border-left: 4px solid var(--secondary-color);
}
+/* Neutral styling for archived view */
+.archived-view .warranty-card {
+ border-left: 4px solid var(--medium-gray);
+}
+
+.table-view.archived-view .warranty-card,
+.archived-view .table-view .warranty-card {
+ border-left: none;
+ background-color: rgba(128, 128, 128, 0.08);
+}
+
.warranty-header {
display: flex;
justify-content: space-between;
@@ -746,6 +798,11 @@ input.invalid {
position: relative;
}
+/* Neutralize header background in archived view */
+.archived-view .warranty-card .warranty-header {
+ background-color: rgba(128, 128, 128, 0.06);
+}
+
.warranty-title {
margin: 0;
font-size: 1.1rem;
@@ -894,8 +951,8 @@ input.invalid {
background-color: var(--modal-background, #ffffff) !important;
border-radius: 8px !important;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
- width: 90% !important;
- max-width: 600px !important;
+ width: 92% !important;
+ max-width: 560px !important;
max-height: 90vh !important;
display: flex !important;
flex-direction: column !important;
@@ -910,7 +967,7 @@ input.invalid {
position: relative !important; /* Override fixed positioning */
top: auto !important; /* Remove top positioning */
left: auto !important; /* Remove left positioning */
- width: 90% !important; /* Set proper width */
+ width: 92% !important; /* Set proper width */
height: auto !important; /* Set auto height */
background-color: var(--modal-background, #ffffff) !important;
margin: 0 !important; /* Remove conflicting margins */
@@ -988,6 +1045,94 @@ input.invalid {
flex-grow: 1; /* Allow body to take available space */
background-color: var(--card-bg); /* Ensure background */
}
+/* Mobile-friendly layout for Manage Tags */
+@media (max-width: 600px) {
+ #tagManagementModal .modal {
+ width: 96% !important;
+ max-width: 520px !important;
+ border-radius: 10px !important;
+ }
+ #tagManagementModal .modal-header,
+ #tagManagementModal .modal-footer {
+ padding: 12px !important;
+ }
+ #tagManagementModal .modal-title {
+ font-size: 1.05rem !important;
+ }
+ #tagManagementModal .modal-body {
+ padding: 12px !important;
+ }
+ #tagManagementModal .tag-form {
+ display: grid !important;
+ grid-template-columns: 1fr auto auto !important;
+ gap: 8px !important;
+ align-items: center !important;
+ }
+ #tagManagementModal .tag-form .form-control { width: 100% !important; }
+ #tagManagementModal .tag-form input[type="color"] {
+ width: 42px !important;
+ height: 36px !important;
+ padding: 0 !important;
+ border-radius: 6px !important;
+ }
+ #tagManagementModal .tag-form .btn {
+ height: 36px !important;
+ padding: 6px 10px !important;
+ white-space: nowrap !important;
+ }
+ #tagManagementModal h4 { margin-top: 14px !important; }
+ #existingTags {
+ display: grid !important;
+ grid-template-columns: 1fr 1fr !important;
+ gap: 8px !important;
+ }
+}
+
+/* Medium mobile (≤425px): tighten Manage Tags layout */
+@media (max-width: 425px) {
+ #tagManagementModal .modal { width: 96% !important; }
+ #tagManagementModal .modal-title { font-size: 1.05rem !important; }
+ #tagManagementModal .modal-body { padding: 12px !important; }
+ #existingTags { grid-template-columns: 1fr !important; }
+ .tag-management-table { font-size: 0.92rem !important; }
+ .tag-management-table th, .tag-management-table td { padding: 8px 10px !important; white-space: normal !important; word-break: break-word !important; }
+ .tag-actions .btn { padding: 5px 8px !important; }
+ .tag-color-swatch { width: 26px !important; height: 26px !important; }
+
+ /* Card-style rows: prevent horizontal scroll and keep actions visible */
+ .tag-management-table thead { display: none !important; }
+ .tag-management-table { border-collapse: separate !important; border-spacing: 0 !important; }
+ .tag-management-table tr { display: block !important; width: 100% !important; border: 1px solid var(--border-color) !important; border-radius: 8px !important; margin-bottom: 10px !important; padding: 10px !important; }
+ .tag-management-table td { display: block !important; width: 100% !important; border: none !important; padding: 6px 0 !important; }
+ .tag-name-input, .tag-name-display { width: 100% !important; }
+ .tag-actions { display: flex !important; justify-content: flex-end !important; gap: 8px !important; margin-top: 6px !important; }
+ /* Only show edit-actions when row is in editing state */
+ .tag-actions .view-actions { display: flex !important; gap: 8px !important; justify-content: flex-end !important; }
+ .tag-actions .edit-actions { display: none !important; }
+ .existing-tag-row.editing .tag-actions .edit-actions { display: flex !important; }
+ .existing-tag-row.editing .tag-actions .view-actions { display: none !important; }
+}
+
+@media (max-width: 380px) {
+ #tagManagementModal .tag-form {
+ grid-template-columns: 1fr auto !important;
+ grid-auto-rows: minmax(36px, auto) !important;
+ }
+ #tagManagementModal .tag-form input[type="color"] { grid-column: 2 / 3 !important; }
+ #tagManagementModal .tag-form .btn { grid-column: 1 / -1 !important; }
+ #existingTags { grid-template-columns: 1fr !important; }
+}
+
+/* 375px medium mobile tuning for Manage Tags */
+@media (max-width: 375px) {
+ #tagManagementModal .modal { width: 96% !important; }
+ #tagManagementModal .modal-title { font-size: 1rem !important; }
+ #tagManagementModal .modal-body { padding: 10px !important; }
+ .tag-management-table th, .tag-management-table td { padding: 8px 10px !important; }
+ .tag-actions .btn { padding: 5px 8px !important; }
+ .tag-color-swatch { width: 26px !important; height: 26px !important; }
+ #existingTags { grid-template-columns: 1fr !important; }
+}
.modal-footer {
padding: 1rem;
@@ -1987,7 +2132,8 @@ input.invalid {
align-items: center;
gap: 12px;
margin-bottom: 12px;
- flex-wrap: wrap;
+ /* Keep a single row on desktop */
+ flex-wrap: nowrap;
justify-content: flex-start;
}
@@ -2067,6 +2213,14 @@ input.invalid {
margin-bottom: 0;
}
+/* Bottom action bar layout: align scope to bottom-right */
+.filter-options .action-bar {
+ display: flex;
+ width: 100%;
+ align-items: center;
+ gap: 12px;
+}
+
.filter-group {
display: flex;
flex-direction: column;
@@ -2075,6 +2229,162 @@ input.invalid {
max-width: 220px;
}
+/* --- Popover UI for Filter / Sort / Data --- */
+.filter-sort-container {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ flex-wrap: nowrap;
+}
+
+/* Generic popover container (hidden by default) */
+.popover {
+ position: absolute;
+ top: calc(100% + 8px);
+ left: 0;
+ display: none;
+ background-color: var(--card-bg);
+ color: var(--text-color);
+ border: 1px solid var(--border-color);
+ border-radius: var(--border-radius);
+ box-shadow: var(--shadow);
+ padding: 12px;
+ z-index: 1000;
+ min-width: 220px;
+}
+
+.popover.active {
+ display: block;
+}
+
+/* List styling inside Sort/Data menus */
+.sort-options {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+
+.sort-options li {
+ padding: 8px 10px;
+ cursor: pointer;
+ border-radius: var(--border-radius);
+ transition: var(--transition);
+ white-space: nowrap;
+}
+
+.sort-options li:hover {
+ background-color: var(--light-gray);
+}
+
+.sort-options li.active {
+ background-color: rgba(var(--primary-rgb), 0.12);
+ color: var(--primary-dark);
+ font-weight: 600;
+}
+
+/* Small active filter indicator next to Filter button */
+.indicator {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: var(--secondary-color);
+ margin-left: 6px;
+ display: inline-block;
+}
+
+/* Ensure Data menu positions relative to its trigger */
+.data-dropdown {
+ position: relative;
+}
+
+@media (max-width: 768px) {
+ .popover {
+ left: 0;
+ right: 0;
+ width: 100%;
+ }
+}
+
+/* --- Unify action buttons inside filter-controls (Filter / Sort / Data / Tags) --- */
+.filter-controls .action-btn {
+ width: auto;
+ height: 36px;
+ padding: 6px 10px;
+ border: 1px solid var(--border-color);
+ border-radius: var(--border-radius);
+ background-color: var(--bg-color);
+ color: var(--text-color);
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 6px;
+ white-space: nowrap;
+}
+
+.filter-controls .action-btn i {
+ font-size: 0.95rem;
+}
+
+.filter-controls .action-btn:hover {
+ background-color: var(--light-gray);
+ color: var(--primary-color);
+}
+
+/* Make the Tags button match the same chip style within filter-controls */
+.filter-controls #globalManageTagsBtn {
+ background-color: var(--bg-color);
+ color: var(--text-color);
+ border: 1px solid var(--border-color);
+ height: 36px;
+ padding: 6px 10px;
+ line-height: 1.2;
+}
+
+.filter-controls #globalManageTagsBtn:hover {
+ background-color: var(--light-gray);
+ color: var(--primary-color);
+ transform: none; /* prevent hover shrink/lift inherited from .export-btn */
+}
+
+.filter-controls #globalManageTagsBtn i {
+ font-size: 0.95rem; /* match other action buttons */
+}
+
+/* --- Modernized actions inside filter popover --- */
+.popover-actions {
+ display: flex;
+ gap: 10px;
+ justify-content: flex-end;
+ margin-top: 12px;
+}
+
+.popover .btn {
+ padding: 8px 14px;
+ font-size: 0.92rem;
+ border-radius: 10px;
+ width: auto;
+}
+
+.popover .btn-secondary {
+ background: transparent;
+ color: var(--text-color);
+ border: 1px solid var(--border-color);
+}
+
+.popover .btn-secondary:hover {
+ background-color: var(--light-gray);
+}
+
+.popover .btn-primary {
+ background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
+ box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.25);
+}
+
+.popover .btn-primary:hover {
+ filter: brightness(1.02);
+}
+
@media (max-width: 900px) {
.filter-options {
gap: 12px 8px;
@@ -2090,6 +2400,23 @@ input.invalid {
flex-direction: column;
align-items: stretch;
gap: 10px;
+ flex-wrap: wrap;
+ }
+ .filter-sort-container {
+ width: 100%;
+ flex-wrap: wrap;
+ }
+ /* Ensure secondary actions (Data, Tags, View, Scope) wrap nicely on tablets/phones */
+ .search-container .secondary-actions {
+ width: 100%;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ }
+ .filter-sort-container .action-btn,
+ .data-dropdown > .action-btn,
+ #globalManageTagsBtn {
+ width: 100%;
}
.search-box {
min-width: 0;
@@ -2107,6 +2434,45 @@ input.invalid {
}
}
+/* Tablet-only override: keep Data, Tags, View, Scope inline (600px–768px) */
+@media (min-width: 600px) and (max-width: 768px) {
+ .search-container .secondary-actions {
+ width: 100%;
+ display: flex;
+ flex-wrap: nowrap;
+ gap: 8px;
+ justify-content: flex-start;
+ align-items: center;
+ }
+
+ .filter-sort-container .action-btn,
+ .data-dropdown > .action-btn,
+ #globalManageTagsBtn,
+ .search-container .export-btn,
+ .search-container .import-btn {
+ width: auto;
+ min-width: 0;
+ flex: 0 0 auto;
+ }
+}
+
+/* Desktop layout: keep only Search + Filter + Sort on first row; move others to second row */
+@media (min-width: 769px) {
+ .filter-controls .search-container { flex-wrap: wrap; }
+ /* First group: search box and filter/sort */
+ .filter-controls .search-box { flex: 1 1 0; min-width: 320px; max-width: none; }
+ .filter-controls .filter-sort-container { flex: 0 0 auto; min-width: 0; }
+ /* Second group container (Data, Tags, View, Scope) should break to new line and span full width */
+ .filter-controls .search-container .secondary-actions {
+ flex: 0 0 100%;
+ width: 100%;
+ display: flex;
+ gap: 8px;
+ justify-content: flex-start;
+ align-items: center;
+ }
+}
+
.search-container {
display: flex;
align-items: center;
@@ -2152,7 +2518,7 @@ input.invalid {
#globalManageTagsBtn:hover {
background-color: #27ae60;
- transform: translateY(-1px);
+ transform: none; /* override any class-based transforms */
}
#globalManageTagsBtn i {
@@ -2165,6 +2531,9 @@ input.invalid {
margin-bottom: 0;
display: flex;
align-items: center;
+ /* Keep search width consistent regardless of Scope dropdown visibility */
+ flex: 1 1 0;
+ max-width: none;
}
.filter-controls .search-box i {
@@ -2201,6 +2570,26 @@ input.invalid {
}
}
+/* Extra-small mobile adjustments for 425px, 375px, 320px */
+@media (max-width: 425px) {
+ .filter-controls .action-btn { height: 38px; padding: 6px 8px; }
+ .filter-sort-container { gap: 8px; }
+ .panel-header-actions { width: 100%; justify-content: space-between; }
+}
+
+@media (max-width: 375px) {
+ .filter-controls .action-btn span { display: none; }
+ .filter-controls .action-btn { gap: 4px; }
+ #globalManageTagsBtn { min-width: 0; width: 100%; }
+}
+
+@media (max-width: 320px) {
+ .filter-sort-container { gap: 6px; }
+ .filter-controls .action-btn i { font-size: 0.9rem; }
+ .search-box { height: 40px; }
+ .search-btn, .clear-search-btn { font-size: 1rem; }
+}
+
.filter-options {
display: flex;
flex-wrap: wrap;
@@ -2472,6 +2861,21 @@ input.invalid {
align-items: stretch; /* Explicitly set to ensure equal heights */
}
+/* Grid responsiveness: ensure cards fit smaller screens */
+@media (max-width: 768px) {
+ .warranties-list.grid-view {
+ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
+ gap: 16px;
+ }
+}
+
+@media (max-width: 480px) {
+ .warranties-list.grid-view {
+ grid-template-columns: 1fr; /* Single column on phones */
+ gap: 12px;
+ }
+}
+
/* Make cards in grid view dynamic height based on content */
.grid-view .warranty-card {
display: flex;
@@ -2655,54 +3059,166 @@ input.invalid {
width: auto; /* Allow natural width */
}
-.table-view .document-links-row a:last-child {
- /* margin-bottom: 0 !important; */ /* Not needed */
+/* === MODERN TAG MANAGEMENT MODAL STYLES === */
+#tagManagementModal .modal-body {
+ padding: 20px;
}
-.table-view .serial-numbers {
- margin: 0;
+.tag-management-table {
+ width: 100%;
+ border-collapse: collapse;
+ margin-top: 20px;
}
-/* Table Headers */
-.table-view-header {
- display: none;
+/* Make wide tables usable on small screens */
+.table-responsive {
+ width: 100%;
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
}
-.table-view-header.visible {
- display: table-header-group;
+@media (max-width: 480px) {
+ .tag-management-table th,
+ .tag-management-table td {
+ padding: 8px 10px;
+ white-space: nowrap; /* avoid awkward wrapping; let container scroll */
+ }
}
-.table-view-header th {
- text-align: left;
+.tag-management-table th, .tag-management-table td {
padding: 12px 15px;
- background-color: var(--light-gray);
+ text-align: left;
+ border-bottom: 1px solid var(--border-color);
+ vertical-align: middle;
+}
+
+.tag-management-table th {
font-weight: 600;
color: var(--text-color);
- border-bottom: 2px solid var(--border-color);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+ font-size: 0.9rem;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
}
-/* Set specific widths for table headers to match cells */
-.table-view-header th:nth-child(1) {
- width: 25%; /* Product column */
+.tag-management-table .tag-color-header {
+ width: 80px;
}
-.table-view-header th:nth-child(2),
-.table-view-header th:nth-child(3) {
- width: 15%; /* Purchase date and expiration columns */
+.tag-management-table .tag-actions-header {
+ width: 120px;
+ text-align: center;
}
-.table-view-header th:nth-child(4) {
- width: 15%; /* Status column */
- text-align: center; /* Center align status header */
+.existing-tag-row:hover {
+ background-color: rgba(0, 0, 0, 0.03);
}
-.table-view-header th:nth-child(5) {
- width: 20%; /* Actions column */
- text-align: center; /* Center align actions header */
-}
+.tag-color-swatch-container {
+ position: relative;
+ width: 30px;
+ height: 30px;
+}
+
+.tag-color-swatch {
+ width: 30px;
+ height: 30px;
+ border-radius: 50%;
+ border: 2px solid var(--border-color);
+ cursor: pointer;
+ transition: transform 0.2s ease;
+}
+
+.tag-color-swatch:hover {
+ transform: scale(1.1);
+}
+
+.tag-color-input-hidden {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ opacity: 0;
+ cursor: pointer;
+}
+
+.tag-name-display {
+ font-weight: 500;
+}
+
+.tag-name-input {
+ display: none;
+ width: 100%;
+}
+
+.tag-actions {
+ text-align: center;
+}
+
+.tag-actions .btn {
+ padding: 6px 10px;
+}
+
+.tag-actions .edit-actions {
+ display: none;
+ gap: 8px;
+ justify-content: center;
+}
+
+.no-tags {
+ text-align: center;
+ padding: 20px;
+ color: var(--text-muted);
+}
+
+.table-view .document-links-row a:last-child {
+ /* margin-bottom: 0 !important; */ /* Not needed */
+}
+
+.table-view .serial-numbers {
+ margin: 0;
+}
+
+/* Table Headers */
+.table-view-header {
+ display: none;
+}
+
+.table-view-header.visible {
+ display: table-header-group;
+}
+
+.table-view-header th {
+ text-align: left;
+ padding: 12px 15px;
+ background-color: var(--light-gray);
+ font-weight: 600;
+ color: var(--text-color);
+ border-bottom: 2px solid var(--border-color);
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+/* Set specific widths for table headers to match cells */
+.table-view-header th:nth-child(1) {
+ width: 25%; /* Product column */
+}
+
+.table-view-header th:nth-child(2),
+.table-view-header th:nth-child(3) {
+ width: 15%; /* Purchase date and expiration columns */
+}
+
+.table-view-header th:nth-child(4) {
+ width: 15%; /* Status column */
+ text-align: center; /* Center align status header */
+}
+
+.table-view-header th:nth-child(5) {
+ width: 20%; /* Actions column */
+ text-align: center; /* Center align actions header */
+}
/* Responsive adjustments */
@media (max-width: 768px) {
@@ -2762,6 +3278,25 @@ input.invalid {
width: 100%;
padding: 12px 15px;
}
+
+ /* Tighten paddings at smaller phones */
+ @media (max-width: 425px) {
+ .table-view .warranty-content,
+ .table-view .warranty-status-row,
+ .table-view .document-links-row { padding: 10px 12px; }
+ }
+
+ @media (max-width: 375px) {
+ .table-view .warranty-content,
+ .table-view .warranty-status-row,
+ .table-view .document-links-row { padding: 8px 10px; }
+ }
+
+ @media (max-width: 320px) {
+ .table-view .warranty-content,
+ .table-view .warranty-status-row,
+ .table-view .document-links-row { padding: 6px 8px; }
+ }
.table-view .warranty-status-row {
text-align: center;
@@ -2849,6 +3384,14 @@ input.invalid {
position: relative;
}
+@media (max-width: 375px) {
+ .product-name-header { padding: 12px; }
+}
+
+@media (max-width: 320px) {
+ .product-name-header { padding: 10px; }
+}
+
/* Default color for active warranties */
.warranty-card .product-name-header {
background-color: var(--secondary-color);
@@ -2864,6 +3407,37 @@ input.invalid {
background-color: var(--danger-color);
}
+/* Neutralize top header bar in archived view (all layouts) */
+.archived-view .warranty-card .product-name-header {
+ background-color: var(--medium-gray) !important;
+ color: var(--text-color);
+}
+
+/* Ensure table view also stays neutral in archived view */
+.archived-view.table-view .warranty-card .product-name-header,
+.archived-view .table-view .warranty-card .product-name-header {
+ background-color: rgba(128, 128, 128, 0.12) !important;
+ color: var(--text-color);
+}
+
+/* Ensure heading text and action icons are readable in archived view */
+.archived-view .warranty-card .product-name-header .warranty-title {
+ color: var(--text-color) !important;
+}
+
+.archived-view .warranty-card .warranty-actions .action-btn {
+ color: var(--text-color) !important;
+}
+
+.archived-view .warranty-card .warranty-actions .action-btn:hover {
+ background-color: rgba(0, 0, 0, 0.08);
+ color: var(--text-color) !important;
+}
+
+:root[data-theme="dark"] .archived-view .warranty-card .warranty-actions .action-btn:hover {
+ background-color: rgba(255, 255, 255, 0.12);
+}
+
.product-name-header .warranty-title {
margin: 0;
font-size: 1.2rem;
@@ -3103,6 +3677,11 @@ input.invalid {
color: var(--danger-color);
}
+.warranty-status-row.status-archived {
+ background-color: rgba(128, 128, 128, 0.12);
+ color: var(--dark-gray);
+}
+
/* List view status row styling */
.list-view .warranty-status-row {
text-align: center;
@@ -4837,3 +5416,414 @@ html.dark-mode .warracker-footer a:hover {
box-shadow: 0 0 0 0 rgba(155, 89, 182, 0);
}
}
+
+/* === MODERN LOGIN PAGE STYLES === */
+
+.login-page-body {
+ overflow-x: hidden;
+ overflow-y: auto;
+ background-color: var(--bg-color);
+ min-height: 100vh;
+}
+
+.login-wrapper {
+ display: flex;
+ width: 100%;
+ min-height: 100vh;
+}
+
+.login-showcase {
+ flex-basis: 50%;
+ background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9), rgba(var(--primary-rgb), 0.7)), url('https://images.unsplash.com/photo-1586920740199-47ce3734a7a2?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
+ background-size: cover;
+ color: white;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 40px;
+ text-align: left;
+}
+
+.showcase-content {
+ max-width: 450px;
+}
+
+.showcase-logo {
+ display: flex;
+ align-items: center;
+ margin-bottom: 20px;
+}
+
+.showcase-logo i {
+ font-size: 3rem;
+ margin-right: 15px;
+}
+
+.showcase-logo h1 {
+ font-size: 2.8rem;
+ font-weight: 700;
+}
+
+.showcase-description {
+ font-size: 1.1rem;
+ line-height: 1.6;
+ margin-bottom: 30px;
+ opacity: 0.9;
+}
+
+.showcase-features {
+ list-style: none;
+ padding: 0;
+}
+
+.showcase-features li {
+ display: flex;
+ align-items: center;
+ margin-bottom: 15px;
+ font-size: 1rem;
+ opacity: 0.95;
+}
+
+.showcase-features i {
+ width: 20px;
+ margin-right: 12px;
+ color: rgba(255, 255, 255, 0.9);
+}
+
+.login-form-container {
+ flex-basis: 50%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 40px;
+ overflow: visible;
+ background-color: var(--card-bg);
+}
+
+.login-form-container .auth-container {
+ max-width: 400px;
+ width: 100%;
+ box-shadow: none;
+ padding: 0;
+ margin: 0;
+ background-color: transparent;
+}
+
+.login-page-body .auth-title {
+ font-size: 1.8rem;
+ font-weight: 600;
+ color: var(--text-color);
+}
+
+.login-page-body .input-group {
+ position: relative;
+}
+
+.login-page-body .input-icon {
+ position: absolute;
+ left: 15px;
+ top: 50%;
+ transform: translateY(-50%);
+ color: var(--dark-gray);
+ transition: color 0.2s ease;
+}
+
+.login-page-body .form-control:focus + .input-icon,
+.login-page-body .input-group:focus-within .input-icon {
+ color: var(--primary-color);
+}
+
+.login-page-body .auth-form .form-control {
+ padding-left: 45px;
+ height: 50px;
+ background-color: var(--bg-color);
+ border: 1px solid var(--border-color);
+ border-radius: 8px;
+ color: var(--text-color);
+ caret-color: var(--text-color);
+}
+
+.login-page-body .auth-form .form-control::placeholder {
+ color: var(--dark-gray);
+ opacity: 0.8;
+}
+
+.login-page-body .auth-form .password-toggle {
+ position: absolute;
+ right: 15px;
+ top: 50%;
+ transform: translateY(-50%);
+ background: none;
+ border: none;
+ color: var(--dark-gray);
+ cursor: pointer;
+}
+
+.login-page-body .separator {
+ text-align: center;
+ margin: 25px 0;
+ color: var(--dark-gray);
+ display: flex;
+ align-items: center;
+}
+.login-page-body .separator::before, .login-page-body .separator::after {
+ content: '';
+ flex: 1;
+ border-bottom: 1px solid var(--border-color);
+}
+.login-page-body .separator span {
+ padding: 0 10px;
+ font-size: 0.9rem;
+}
+
+.login-page-body .btn-sso {
+ display: flex !important;
+ align-items: center;
+ justify-content: center;
+ gap: 10px;
+}
+.login-page-body .btn-sso i {
+ font-size: 1.2rem;
+}
+
+/* Hidden by default; shown only on small screens */
+.login-page-body .mobile-top-logo {
+ display: none;
+}
+
+/* Login page message and links */
+.login-page-body .auth-message {
+ margin-top: 20px;
+ padding: 10px;
+ border-radius: 4px;
+ text-align: center;
+ display: none;
+}
+.login-page-body .auth-message.error {
+ background-color: rgba(244, 67, 54, 0.1);
+ color: #f44336;
+ border: 1px solid rgba(244, 67, 54, 0.3);
+}
+.login-page-body .auth-message.success {
+ background-color: rgba(76, 175, 80, 0.1);
+ color: #4caf50;
+ border: 1px solid rgba(76, 175, 80, 0.3);
+}
+.login-page-body .auth-links {
+ margin-top: 20px;
+ text-align: center;
+ font-size: 0.9em;
+}
+.login-page-body .auth-links a {
+ color: var(--primary-color);
+ text-decoration: none;
+ margin: 0 10px;
+}
+.login-page-body .auth-links a:hover {
+ text-decoration: underline;
+}
+
+/* Provider-specific SSO button styles for modern login */
+.login-page-body .btn-google {
+ background-color: #4285f4;
+ border-color: #4285f4;
+ color: white;
+}
+
+.login-page-body .btn-google:hover, .login-page-body .btn-google:focus {
+ background-color: #357ae8;
+ border-color: #357ae8;
+ color: white;
+}
+
+.login-page-body .btn-github {
+ background-color: #333;
+ border-color: #333;
+ color: white;
+}
+
+.login-page-body .btn-github:hover, .login-page-body .btn-github:focus {
+ background-color: #24292e;
+ border-color: #24292e;
+ color: white;
+}
+
+.login-page-body .btn-microsoft {
+ background-color: #0078d4;
+ border-color: #0078d4;
+ color: white;
+}
+
+.login-page-body .btn-microsoft:hover, .login-page-body .btn-microsoft:focus {
+ background-color: #106ebe;
+ border-color: #106ebe;
+ color: white;
+}
+
+.login-page-body .btn-facebook {
+ background-color: #1877f2;
+ border-color: #1877f2;
+ color: white;
+}
+
+.login-page-body .btn-facebook:hover, .login-page-body .btn-facebook:focus {
+ background-color: #166fe5;
+ border-color: #166fe5;
+ color: white;
+}
+
+.login-page-body .btn-twitter {
+ background-color: #1da1f2;
+ border-color: #1da1f2;
+ color: white;
+}
+
+.login-page-body .btn-twitter:hover, .login-page-body .btn-twitter:focus {
+ background-color: #0d95e8;
+ border-color: #0d95e8;
+ color: white;
+}
+
+.login-page-body .btn-linkedin {
+ background-color: #0077b5;
+ border-color: #0077b5;
+ color: white;
+}
+
+.login-page-body .btn-linkedin:hover, .login-page-body .btn-linkedin:focus {
+ background-color: #005885;
+ border-color: #005885;
+ color: white;
+}
+
+.login-page-body .btn-apple {
+ background-color: #000;
+ border-color: #000;
+ color: white;
+}
+
+.login-page-body .btn-apple:hover, .login-page-body .btn-apple:focus {
+ background-color: #333;
+ border-color: #333;
+ color: white;
+}
+
+.login-page-body .btn-discord {
+ background-color: #5865f2;
+ border-color: #5865f2;
+ color: white;
+}
+
+.login-page-body .btn-discord:hover, .login-page-body .btn-discord:focus {
+ background-color: #4752c4;
+ border-color: #4752c4;
+ color: white;
+}
+
+.login-page-body .btn-gitlab {
+ background-color: #fca326;
+ border-color: #fca326;
+ color: white;
+}
+
+.login-page-body .btn-gitlab:hover, .login-page-body .btn-gitlab:focus {
+ background-color: #fc9403;
+ border-color: #fc9403;
+ color: white;
+}
+
+.login-page-body .btn-bitbucket {
+ background-color: #0052cc;
+ border-color: #0052cc;
+ color: white;
+}
+
+.login-page-body .btn-bitbucket:hover, .login-page-body .btn-bitbucket:focus {
+ background-color: #0047b3;
+ border-color: #0047b3;
+ color: white;
+}
+
+.login-page-body .btn-keycloak {
+ background-color: #4d4d4d;
+ border-color: #4d4d4d;
+ color: white;
+}
+
+.login-page-body .btn-keycloak:hover, .login-page-body .btn-keycloak:focus {
+ background-color: #333;
+ border-color: #333;
+ color: white;
+}
+
+.login-page-body .btn-okta {
+ background-color: #007dc1;
+ border-color: #007dc1;
+ color: white;
+}
+
+.login-page-body .btn-okta:hover, .login-page-body .btn-okta:focus {
+ background-color: #005a8b;
+ border-color: #005a8b;
+ color: white;
+}
+
+[data-theme="dark"] .login-page-body .login-showcase {
+ background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.8), #1a1a1a 85%), url('https://images.unsplash.com/photo-1586920740199-47ce3734a7a2?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
+ background-size: cover;
+}
+
+[data-theme="dark"] .login-page-body .auth-form .form-control {
+ background-color: var(--bg-color);
+ color: var(--text-color);
+}
+
+[data-theme="dark"] .login-page-body .auth-form .form-control::placeholder {
+ color: var(--medium-gray);
+}
+
+@media (max-width: 992px) {
+ .login-page-body .login-showcase {
+ display: none;
+ }
+ .login-page-body .login-form-container {
+ flex-basis: 100%;
+ }
+}
+
+@media (max-width: 480px) {
+ .login-page-body .login-form-container {
+ padding: 16px;
+ }
+ .login-page-body .auth-title {
+ font-size: 1.5rem;
+ }
+}
+
+/* Mobile top logo for small screens */
+@media (max-width: 768px) {
+ .login-page-body .login-form-container {
+ flex-direction: column;
+ align-items: center;
+ padding-bottom: 32px;
+ }
+ .login-page-body .mobile-top-logo {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin: 20px 0 10px 0;
+ flex-direction: column;
+ }
+ .login-page-body .mobile-top-logo img {
+ width: 120px;
+ height: 120px;
+ object-fit: contain;
+ border-radius: 16px;
+ }
+ .login-page-body .mobile-top-logo-title {
+ margin-top: 6px;
+ font-size: 1.1rem;
+ font-weight: 600;
+ color: var(--text-color);
+ }
+}
diff --git a/frontend/sw.js b/frontend/sw.js
index 65e5255..412f42f 100644
--- a/frontend/sw.js
+++ b/frontend/sw.js
@@ -1,13 +1,13 @@
-const CACHE_NAME = 'warracker-cache-v20250918001';
+const CACHE_NAME = 'warracker-cache-v20250119005';
const urlsToCache = [
'./',
'./index.html',
'./settings-new.html',
'./status.html',
- './style.css?v=20250119001',
+ './style.css?v=20250119004',
'./settings-styles.css?v=20250119001',
'./header-fix.css?v=20250119001',
- './mobile-header.css?v=20250119001',
+ './mobile-header.css?v=20250119002',
'./script.js?v=20250119001',
'./auth.js?v=20250119001',
'./settings-new.js?v=20250119001',
diff --git a/frontend/version-checker.js b/frontend/version-checker.js
index 1d9a5b7..3f50043 100644
--- a/frontend/version-checker.js
+++ b/frontend/version-checker.js
@@ -1,6 +1,6 @@
// Version checker for Warracker
document.addEventListener('DOMContentLoaded', () => {
- const currentVersion = '0.10.1.12'; // Current version of the application
+ const currentVersion = '0.10.1.13'; // Current version of the application
const 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.json
index bc24b42..328746f 100644
--- a/locales/ar/translation.json
+++ b/locales/ar/translation.json
@@ -485,7 +485,106 @@
"tag_deleted_successfully": "تم حذف العلامة بنجاح",
"failed_to_create_tag": "فشل في إنشاء العلامة",
"failed_to_update_tag": "فشل في تحديث العلامة",
- "failed_to_delete_tag": "فشل في حذف العلامة"
+ "failed_to_delete_tag": "فشل في حذف العلامة",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -504,7 +603,8 @@
"zh_HK": "繁體中文",
"ja": "日本語",
"pt": "Português",
- "ko": "한국어"
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "حالة النظام",
@@ -564,5 +664,36 @@
"license": "الترخيص",
"copyright": "حقوق الطبع والنشر",
"developed_by": "طور بواسطة"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
diff --git a/locales/cs/translation.json b/locales/cs/translation.json
index b642242..4b46b64 100644
--- a/locales/cs/translation.json
+++ b/locales/cs/translation.json
@@ -84,6 +84,7 @@
"warranty_duration_option": "Doba záruky",
"exact_expiration_option": "Přesné datum vypršení",
"warranties_period": "Záruční doba",
+ "warranty_period": "Záruční doba",
"expiration_date_label": "Datum vypršení",
"currency": "Měna",
"add_tags": "Přidat tagy",
@@ -483,7 +484,106 @@
"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"
+ "failed_to_delete_tag": "Chyba při mazání tagu",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "Angličtina",
@@ -502,7 +602,8 @@
"zh_HK": "Čínština (tradiční)",
"ja": "Japonština",
"pt": "Portugalština",
- "ko": "Korejština"
+ "ko": "Korejština",
+ "tr": "Türkçe"
},
"status": {
"title": "Stav systému",
@@ -562,5 +663,36 @@
"license": "Licence",
"copyright": "Autorská práva",
"developed_by": "Vyvinuto"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
\ No newline at end of file
diff --git a/locales/de/translation.json b/locales/de/translation.json
index a41870a..a535c11 100644
--- a/locales/de/translation.json
+++ b/locales/de/translation.json
@@ -477,7 +477,106 @@
"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"
+ "failed_to_delete_tag": "Fehler beim Löschen des Tags",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "Englisch",
@@ -496,7 +595,8 @@
"zh_HK": "Chinesisch (traditionell)",
"ja": "Japanisch",
"pt": "Portugiesisch",
- "ko": "Koreanisch"
+ "ko": "Koreanisch",
+ "tr": "Türkçe"
},
"status": {
"title": "Systemstatus",
@@ -556,5 +656,36 @@
"license": "Lizenz",
"copyright": "Copyright",
"developed_by": "Entwickelt von"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
\ No newline at end of file
diff --git a/locales/en/translation.json b/locales/en/translation.json
index e05c52f..8c2b897 100644
--- a/locales/en/translation.json
+++ b/locales/en/translation.json
@@ -480,7 +480,106 @@
"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"
+ "failed_to_delete_tag": "Failed to delete tag",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -499,7 +598,8 @@
"zh_HK": "繁體中文",
"ja": "日本語",
"pt": "Português",
- "ko": "한국어"
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "System Status",
diff --git a/locales/es/translation.json b/locales/es/translation.json
index afbf6bc..9fa0d7f 100644
--- a/locales/es/translation.json
+++ b/locales/es/translation.json
@@ -479,7 +479,106 @@
"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"
+ "failed_to_delete_tag": "Error al eliminar etiqueta",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -498,7 +597,8 @@
"zh_HK": "繁體中文",
"ja": "日本語",
"pt": "Português",
- "ko": "한국어"
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "Estado del Sistema",
@@ -558,5 +658,36 @@
"license": "Licencia",
"copyright": "Derechos de Autor",
"developed_by": "Desarrollado por"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
diff --git a/locales/fa/translation.json b/locales/fa/translation.json
index 5119918..0a7b994 100644
--- a/locales/fa/translation.json
+++ b/locales/fa/translation.json
@@ -478,7 +478,106 @@
"tag_deleted_successfully": "برچسب با موفقیت حذف شد",
"failed_to_create_tag": "ایجاد برچسب ناموفق بود",
"failed_to_update_tag": "به‌روزرسانی برچسب ناموفق بود",
- "failed_to_delete_tag": "حذف برچسب ناموفق بود"
+ "failed_to_delete_tag": "حذف برچسب ناموفق بود",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "انگلیسی",
@@ -497,7 +596,8 @@
"zh_HK": "چینی سنتی",
"ja": "ژاپنی",
"pt": "پرتغالی",
- "ko": "کره‌ای"
+ "ko": "کره‌ای",
+ "tr": "Türkçe"
},
"status": {
"title": "وضعیت سیستم",
@@ -557,5 +657,36 @@
"license": "مجوز",
"copyright": "حق نشر",
"developed_by": "توسعه یافته توسط"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
\ No newline at end of file
diff --git a/locales/fr/translation.json b/locales/fr/translation.json
index cbdc80b..e0b968d 100644
--- a/locales/fr/translation.json
+++ b/locales/fr/translation.json
@@ -479,7 +479,106 @@
"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"
+ "failed_to_delete_tag": "Échec de la suppression du tag",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -498,7 +597,8 @@
"zh_HK": "繁體中文",
"ja": "日本語",
"pt": "Português",
- "ko": "한국어"
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "État du Système",
@@ -558,5 +658,36 @@
"license": "Licence",
"copyright": "Droits d'Auteur",
"developed_by": "Développé par"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
\ No newline at end of file
diff --git a/locales/hi/translation.json b/locales/hi/translation.json
index eab76f3..ae534fa 100644
--- a/locales/hi/translation.json
+++ b/locales/hi/translation.json
@@ -476,7 +476,106 @@
"tag_deleted_successfully": "टैग सफलतापूर्वक हटाया गया",
"failed_to_create_tag": "टैग बनाने में विफल",
"failed_to_update_tag": "टैग अपडेट करने में विफल",
- "failed_to_delete_tag": "टैग हटाने में विफल"
+ "failed_to_delete_tag": "टैग हटाने में विफल",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "अंग्रेज़ी",
@@ -495,7 +594,8 @@
"zh_HK": "पारंपरिक चीनी",
"ja": "जापानी",
"pt": "पुर्तगाली",
- "ko": "कोरियाई"
+ "ko": "कोरियाई",
+ "tr": "Türkçe"
},
"status": {
"title": "सिस्टम स्थिति",
@@ -555,5 +655,36 @@
"license": "लाइसेंस",
"copyright": "कॉपीराइट",
"developed_by": "द्वारा विकसित"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
\ No newline at end of file
diff --git a/locales/it/translation.json b/locales/it/translation.json
index 692ecdc..7365b71 100644
--- a/locales/it/translation.json
+++ b/locales/it/translation.json
@@ -290,7 +290,7 @@
"add_tag": "Aggiungi tag",
"unknown_status": "Stato sconosciuto",
"expiring_soon_days": "In scadenza ({{days}} {{dayText}})",
- "days_remaining": "{{count}} giorni rimanenti",
+ "days_remaining": "{{days}} {{dayText}} rimanenti",
"day_one": "giorno",
"day_other": "giorni",
"month_one": "mese",
@@ -532,7 +532,106 @@
"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"
+ "failed_to_delete_tag": "Errore nell'eliminazione del tag",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -551,7 +650,8 @@
"zh_HK": "繁體中文",
"ja": "日本語",
"pt": "Português",
- "ko": "한국어"
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "Stato del Sistema",
@@ -611,5 +711,36 @@
"license": "Licenza",
"copyright": "Copyright",
"developed_by": "Sviluppato da"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
diff --git a/locales/ja/translation.json b/locales/ja/translation.json
index dfd7cbf..8a2b6b2 100644
--- a/locales/ja/translation.json
+++ b/locales/ja/translation.json
@@ -478,7 +478,106 @@
"tag_deleted_successfully": "タグが正常に削除されました",
"failed_to_create_tag": "タグの作成に失敗しました",
"failed_to_update_tag": "タグの更新に失敗しました",
- "failed_to_delete_tag": "タグの削除に失敗しました"
+ "failed_to_delete_tag": "タグの削除に失敗しました",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -496,7 +595,9 @@
"zh_CN": "简体中文",
"zh_HK": "繁體中文",
"ja": "日本語",
- "pt": "Português"
+ "pt": "Português",
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "システムステータス",
@@ -556,5 +657,36 @@
"license": "ライセンス",
"copyright": "著作権",
"developed_by": "開発者"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
diff --git a/locales/ko/translation.json b/locales/ko/translation.json
index 15e6ee1..00a62c2 100644
--- a/locales/ko/translation.json
+++ b/locales/ko/translation.json
@@ -478,7 +478,106 @@
"tag_deleted_successfully": "태그가 성공적으로 삭제되었습니다",
"failed_to_create_tag": "태그 생성에 실패했습니다",
"failed_to_update_tag": "태그 업데이트에 실패했습니다",
- "failed_to_delete_tag": "태그 삭제에 실패했습니다"
+ "failed_to_delete_tag": "태그 삭제에 실패했습니다",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -497,7 +596,8 @@
"zh_HK": "繁體中文",
"ja": "日本語",
"pt": "Português",
- "ko": "한국어"
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "시스템 상태",
@@ -557,5 +657,36 @@
"license": "라이선스",
"copyright": "저작권",
"developed_by": "개발자"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
\ No newline at end of file
diff --git a/locales/nl/translation.json b/locales/nl/translation.json
index 0f4f8e2..1b072bb 100644
--- a/locales/nl/translation.json
+++ b/locales/nl/translation.json
@@ -477,7 +477,106 @@
"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"
+ "failed_to_delete_tag": "Fout bij verwijderen tag",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "Engels",
@@ -496,7 +595,8 @@
"zh_HK": "Chinees (traditioneel)",
"ja": "Japans",
"pt": "Portugees",
- "ko": "Koreaans"
+ "ko": "Koreaans",
+ "tr": "Türkçe"
},
"status": {
"title": "Systeemstatus",
@@ -556,5 +656,36 @@
"license": "Licentie",
"copyright": "Copyright",
"developed_by": "Ontwikkeld door"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
\ No newline at end of file
diff --git a/locales/pt/translation.json b/locales/pt/translation.json
index 7abc738..a75f874 100644
--- a/locales/pt/translation.json
+++ b/locales/pt/translation.json
@@ -478,7 +478,106 @@
"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"
+ "failed_to_delete_tag": "Falha ao excluir tag",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -496,7 +595,9 @@
"zh_CN": "简体中文",
"zh_HK": "繁體中文",
"ja": "日本語",
- "pt": "Português"
+ "pt": "Português",
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "Status do Sistema",
diff --git a/locales/tr/translation.json b/locales/tr/translation.json
new file mode 100644
index 0000000..cf951b7
--- /dev/null
+++ b/locales/tr/translation.json
@@ -0,0 +1,688 @@
+{
+ "app_title": "Warracker",
+ "subtitle": "Garanti Takipçisi",
+ "nav": {
+ "home": "Ana Sayfa",
+ "status": "Durum",
+ "settings": "Ayarlar",
+ "about": "Hakkında"
+ },
+ "messages": {
+ "no_warranties_found": "Kayıtlı garanti bulunamadı",
+ "no_warranties_found_add_first": "Henüz garanti yok. İlk garantinizi ekleyerek başlayın.",
+ "success": "Başarılı",
+ "error": "Hata",
+ "could_not_load_tags": "Etiketler yüklenemedi. Lütfen tekrar deneyin.",
+ "no_warranty_selected": "Garanti seçilmedi",
+ "archived_warranties_guidance": "Arşivlenmiş garantileri Filtreler'de \"Arşivlenmiş\" seçerek bulabilirsiniz.",
+ "no_file_selected": "Dosya seçilmedi.",
+ "invalid_csv_file_type": "Geçersiz dosya türü. Lütfen bir .csv dosyası seçin.",
+ "auth_error_login_again": "Kimlik doğrulama hatası. Lütfen tekrar giriş yapın.",
+ "import_failed": "İçe aktarma başarısız: {{error}}",
+ "import_error_details": "İçe aktarma sırasında bir hata oluştu. Ayrıntılar için konsolu kontrol edin.",
+ "date_format_updated": "Tarih formatı güncellendi.",
+ "currency_symbol_updated": "Para birimi sembolü güncellendi.",
+ "no_warranty_for_note_update": "Not güncellemesi için garanti seçilmedi",
+ "cannot_save_notes_invalid_duration": "Notlar kaydedilemez: Garantinin geçersiz bir süresi var. Önce geçerli bir süre belirlemek için tam garanti ayrıntılarını düzenleyin.",
+ "note_updated": "Not güncellendi",
+ "paperless_duplicate_linked": "Paperless-ngx'te yinelenen belge tespit edildi. Mevcut belgeye bağlandı.",
+ "paperless_not_enabled": "Paperless-ngx entegrasyonu etkinleştirilmedi",
+ "paperless_not_configured": "Paperless-ngx düzgün yapılandırılmadı. Lütfen ayarları kontrol edin.",
+ "paperless_connection_failed": "Paperless-ngx bağlantısı başarısız: {{error}}",
+ "allow_popups": "Belgeleri görüntülemek için lütfen pop-up'lara izin verin",
+ "opening_document_in_warracker": "Warracker'da belge açılıyor...",
+ "allow_popups_paperless": "Paperless-ngx'te belgeleri görüntülemek için lütfen pop-up'lara izin verin",
+ "opening_document_in_paperless": "Paperless-ngx'te belge açılıyor...",
+ "error_opening_document": "Belge açma hatası: {{error}}",
+ "opened_with_fallback_url": "Yedek URL ile açıldı - lütfen Paperless-ngx'e erişilebilir olup olmadığını kontrol edin",
+ "opened_with_generic_fallback_url": "Genel yedek URL ile açıldı",
+ "document_linked_refreshing": "Belge başarıyla bağlandı! Yenileniyor...",
+ "failed_to_link_document": "Belge bağlanamadı: {{message}}",
+ "error_searching_document": "Belge arama hatası",
+ "autolinked_documents": "{{count}} belge otomatik olarak bağlandı: {{docInfo}}",
+ "paperless_upload_autolink_failed": "Belge Paperless-ngx'e yüklendi ancak otomatik olarak bağlanamadı. Daha sonra manuel olarak bağlayabilirsiniz.",
+ "paperless_upload_autolink_failed_errors": "Belge yüklendi ancak hatalar nedeniyle otomatik bağlantı başarısız oldu. Daha sonra manuel olarak bağlayabilirsiniz.",
+ "document_linked_successfully": "Belge başarıyla bağlandı: {{documentType}}",
+ "failed_to_open_claims_modal": "Hasar talepleri modalı açılamadı",
+ "failed_to_save_claim": "Hasar talebi kaydedilemedi",
+ "failed_to_delete_claim": "Hasar talebi silinemedi",
+ "authentication_required": "Kimlik doğrulama gerekli",
+ "warranty_deleted_successfully": "Garanti başarıyla silindi",
+ "failed_to_delete_warranty": "Garanti silinemedi",
+ "warranty_updated_successfully": "Garanti başarıyla güncellendi",
+ "failed_to_update_warranty": "Garanti güncellenemedi",
+ "confirm_delete_tag": "Bu etiketi silmek istediğinizden emin misiniz? Tüm garantilerden kaldırılacak.",
+ "tag_already_exists": "Bu adda bir etiket zaten mevcut",
+ "failed_to_update_tag": "Etiket güncellenemedi",
+ "failed_to_load_fresh_user_data": "Yeni kullanıcı verileri yüklenemedi",
+ "could_not_connect_fetch_user_data": "Kullanıcı verilerini almak için bağlanılamadı. Önbellek bilgileri gösteriliyor.",
+ "fill_in_first_and_last_name": "Lütfen Adınız ve Soyadınızı doldurun",
+ "email_address_cannot_be_empty": "E-posta adresi boş olamaz.",
+ "enter_valid_email_address": "Lütfen geçerli bir e-posta adresi girin.",
+ "failed_to_update_profile": "Profil güncellenemedi: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Tercihler yerel olarak kaydedildi, ancak sunucu ile senkronizasyon başarısız: {{error}}",
+ "preferences_saved_locally": "Tercihler yerel olarak kaydedildi.",
+ "fill_in_all_password_fields": "Lütfen tüm parola alanlarını doldurun",
+ "new_passwords_do_not_match": "Yeni parolalar eşleşmiyor",
+ "password_at_least_8_characters": "Parola en az 8 karakter uzunluğunda olmalıdır",
+ "failed_to_change_password": "Şifre değiştirilemedi: {{error}}",
+ "failed_to_update_user": "Kullanıcı güncellenemedi",
+ "failed_to_update_user_try_again": "Kullanıcı güncellenemedi. Lütfen tekrar deneyin.",
+ "failed_to_delete_user_check_console": "Kullanıcı silinemedi. Ayrıntılar için konsolu kontrol edin.",
+ "error_during_user_deletion": "Kullanıcı silme sırasında hata: {{error}}",
+ "trying_direct_api_call_for_user_id": "{{userId}} kullanıcı kimliği için doğrudan API çağrısı deneniyor...",
+ "user_id_deleted_successfully_with_direct_api_call": "{{userId}} kullanıcı kimliği doğrudan API çağrısıyla başarıyla silindi!",
+ "failed_to_delete_user_with_direct_api_call": "{{username}} kullanıcısı doğrudan API çağrısıyla silinemedi.",
+ "error_with_direct_api_call": "Doğrudan API çağrısında hata: {{error}}",
+ "error_checking_if_user_exists": "Kullanıcının mevcut olup olmadığı kontrol edilirken hata oluştu: {{error}}",
+ "select_user_to_transfer_ownership": "Lütfen sahipliği devretmek için bir kullanıcı seçin",
+ "transfer_ownership_modal_elements_not_found": "Hata: Sahiplik devri modal öğeleri bulunamadı",
+ "failed_to_transfer_ownership": "Sahiplik devredilemedi",
+ "failed_to_transfer_ownership_try_again": "Sahiplik devredilemedi. Lütfen tekrar deneyin.",
+ "checking_user": "Kullanıcı kontrol ediliyor...",
+ "user_with_id_username_not_found": "ID/kullanıcı adı \"{{userId}}\" olan kullanıcı bulunamadı",
+ "deleting_user": "{{username}} kullanıcısı (ID: {{id}}) siliniyor...",
+ "user_deleted_successfully_username": "{{username}} kullanıcısı başarıyla silindi!",
+ "failed_to_delete_user_check_console_username": "{{username}} kullanıcısı silinemedi. Ayrıntılar için konsolu kontrol edin.",
+ "trying_direct_api_call_for_user_username": "{{username}} kullanıcısı için doğrudan API çağrısı deneniyor...",
+ "user_deleted_successfully_with_direct_api_call_username": "{{username}} kullanıcısı doğrudan API çağrısıyla başarıyla silindi!",
+ "failed_to_delete_user_with_direct_api_call_username": "{{username}} kullanıcısı doğrudan API çağrısıyla silinemedi.",
+ "invalid_email_base_url_format": "Geçersiz E-posta Taban URL biçimi. http:// veya https:// ile başlamalıdır",
+ "failed_to_save_site_settings_try_again": "Site ayarları kaydedilemedi. Lütfen tekrar deneyin.",
+ "failed_to_save_oidc_settings_try_again": "OIDC ayarları kaydedilemedi. Lütfen tekrar deneyin.",
+ "error_checking_api_endpoint": "API uç noktası kontrol edilirken hata oluştu: {{error}}",
+ "error_colon": "Hata: {{error}}",
+ "error_checking_scheduler_status": "Zamanlayıcı durumu kontrol edilirken hata oluştu: {{error}}",
+ "error_saving_notification_settings": "Bildirim ayarları kaydedilirken hata oluştu: {{error}}",
+ "error_saving_apprise_settings": "Apprise ayarları kaydedilirken hata oluştu: {{error}}",
+ "failed_to_send_test_notification": "Test bildirimi gönderilemedi: {{message}}",
+ "error_sending_test_notification": "Test bildirimi gönderilirken hata oluştu: {{error}}",
+ "error_validating_urls": "URL'ler doğrulanırken hata oluştu: {{error}}",
+ "failed_to_trigger_notifications": "Bildirimler tetiklenemedi: {{message}}",
+ "error_triggering_notifications": "Bildirimler tetiklenirken hata oluştu: {{error}}",
+ "error_updating_apprise_setting": "Apprise ayarı güncellenirken hata oluştu: {{error}}",
+ "error_loading_paperless_settings": "Paperless-ngx ayarları yüklenirken hata oluştu: {{error}}",
+ "error_saving_paperless_settings": "Paperless-ngx ayarları kaydedilirken hata oluştu: {{error}}",
+ "error_testing_connection": "Bağlantı test edilirken hata oluştu: {{error}}",
+ "debug_information_logged_to_console": "Hata ayıklama bilgileri konsola kaydedildi",
+ "debug_error": "Hata ayıklama hatası: {{error}}",
+ "file_upload_test_successful": "Dosya yükleme testi başarılı!",
+ "file_upload_test_failed": "Dosya yükleme testi başarısız",
+ "file_upload_test_error": "Dosya yükleme testi hatası: {{error}}",
+ "warning": "Uyarı",
+ "loading": "Yükleniyor...",
+ "saved": "Değişiklikler başarıyla kaydedildi",
+ "deleted": "Öğe başarıyla silindi",
+ "confirm_delete": "Bu öğeyi silmek istediğinizden emin misiniz?",
+ "no_results": "Sonuç bulunamadı",
+ "file_too_large": "Dosya çok büyük",
+ "invalid_file_type": "Geçersiz dosya türü",
+ "fill_first_last_name": "Lütfen Adınız ve Soyadınızı doldurun",
+ "email_cannot_be_empty": "E-posta adresi boş olamaz.",
+ "enter_valid_email": "Lütfen geçerli bir e-posta adresi girin.",
+ "profile_updated_successfully": "Profil başarıyla güncellendi",
+ "preferences_saved_successfully": "Tercihler başarıyla kaydedildi.",
+ "fill_password_fields": "Lütfen tüm parola alanlarını doldurun",
+ "passwords_do_not_match": "Yeni parolalar eşleşmiyor",
+ "password_min_length": "Parola en az 8 karakter uzunluğunda olmalıdır",
+ "type_delete_to_confirm": "Onaylamak için lütfen DELETE yazın",
+ "account_deleted_successfully": "Hesap başarıyla silindi",
+ "account_cannot_delete_offline": "Hesap çevrimdışı modda silinemez",
+ "failed_delete_account": "Hesap silinemedi. Lütfen tekrar deneyin.",
+ "user_updated_successfully": "Kullanıcı başarıyla güncellendi",
+ "user_deleted_successfully": "Kullanıcı başarıyla silindi",
+ "user_id_missing": "Kullanıcı kimliği eksik",
+ "failed_load_users": "Kullanıcılar yüklenemedi",
+ "error_loading_users": "Kullanıcıları yükleme hatası",
+ "select_user_transfer_ownership": "Lütfen sahipliği devredeceğiniz bir kullanıcı seçin",
+ "ownership_transferred_successfully": "Sahiplik başarıyla devredildi! Sayfa yenileniyor...",
+ "failed_load_site_settings": "Site ayarları yüklenemedi. Lütfen tekrar deneyin.",
+ "invalid_email_base_url": "Geçersiz E-posta Taban URL biçimi. http:// veya https:// ile başlamalıdır",
+ "no_site_settings_to_save": "Kaydedilecek site ayarı yok.",
+ "site_settings_saved_successfully": "Site ayarları başarıyla kaydedildi",
+ "failed_save_site_settings": "Site ayarları kaydedilemedi",
+ "oidc_settings_saved_successfully": "OIDC ayarları başarıyla kaydedildi.",
+ "failed_save_oidc_settings": "OIDC ayarları kaydedilemedi.",
+ "api_endpoint_accessible": "API uç noktası erişilebilir",
+ "api_endpoint_not_accessible": "API uç noktası erişilebilir değil. Durum: ",
+ "only_admins_send_notifications": "Yalnızca yöneticiler garanti bildirimleri gönderebilir",
+ "notifications_triggered_successfully": "Bildirimler başarıyla tetiklendi",
+ "notification_settings_saved_successfully": "Bildirim ayarları başarıyla kaydedildi",
+ "apprise_settings_saved_successfully": "Apprise ayarları başarıyla kaydedildi",
+ "test_notification_sent_successfully": "Test bildirimi başarıyla gönderildi",
+ "no_urls_to_validate": "Doğrulanacak URL yok",
+ "paperless_settings_saved_successfully": "Paperless-ngx ayarları başarıyla kaydedildi!",
+ "enter_valid_paperless_url": "Lütfen geçerli bir URL girin (ör. https://paperless.alanadiniz.com)",
+ "enter_paperless_url_first": "Lütfen önce bir Paperless-ngx URL'si girin",
+ "paperless_connection_test_successful": "Paperless-ngx bağlantı testi başarılı!",
+ "paperless_connection_test_failed": "Paperless-ngx bağlantı testi başarısız",
+ "enter_api_token_test_connection": "Bağlantıyı test etmek için lütfen bir API belirteci girin",
+ "failed_load_user_data": "Kullanıcı verileri yüklenemedi. Lütfen tekrar deneyin.",
+ "could_not_connect_user_data": "Kullanıcı verilerini almak için bağlanılamadı. Önbelleğe alınmış bilgiler görüntüleniyor.",
+ "preferences_saved_locally_failed_sync": "Tercihler yerel olarak kaydedildi, ancak sunucuyla senkronizasyon başarısız: ",
+ "correct_errors_in_tab": "Lütfen devam etmeden önce vurgulanan sekmedeki hataları düzeltin.",
+ "please_fill_out_this_field": "Lütfen bu alanı doldurun.",
+ "warranty_added_successfully": "Garanti başarıyla eklendi",
+ "tag_name_required": "Etiket adı gerekli",
+ "tag_creation_function_not_found": "Etiket oluşturma işlevi bulunamadı",
+ "tag_created_successfully": "Etiket başarıyla oluşturuldu",
+ "tag_updated_successfully": "Etiket başarıyla güncellendi",
+ "tag_deleted_successfully": "Etiket başarıyla silindi",
+ "failed_to_create_tag": "Etiket oluşturulamadı",
+ "failed_to_delete_tag": "Etiket silinemedi"
+ },
+ "settings": {
+ "title": "Ayarlar",
+ "account_settings": "Hesap Ayarları",
+ "preferences": "Tercihler",
+ "language": "Dil",
+ "select_language": "Tercih ettiğiniz dili seçin",
+ "dark_mode": "Koyu Mod",
+ "dark_mode_desc": "Açık ve koyu tema arasında geçiş yapın",
+ "default_view": "Varsayılan Görünüm",
+ "default_view_desc": "Garanti görünümü tercihinizi seçin",
+ "grid_view": "Izgara Görünümü",
+ "list_view": "Liste Görünümü",
+ "table_view": "Tablo Görünümü",
+ "currency_symbol": "Para Birimi Sembolü",
+ "currency_symbol_desc": "Fiyatlar için gösterilecek sembolü seçin",
+ "currency_position": "Para Birimi Konumu",
+ "currency_position_desc": "Sembolün sayıların solunda mı sağında mı olacağını seçin",
+ "expiring_soon_days": "Yakında Sona Erecek Günler",
+ "expiring_soon_days_desc": "Uyarıları göstermek için son kullanımdan önceki gün sayısı",
+ "date_format": "Tarih Biçimi",
+ "date_format_desc": "Tarihlerin nasıl görüntüleneceğini seçin",
+ "save_preferences": "Tercihleri Kaydet",
+ "notification_settings": "Bildirim Ayarları",
+ "notification_channel": "Bildirim Kanalı",
+ "notification_channel_desc": "Bildirimleri nasıl almak istediğinizi seçin",
+ "notification_disabled": "Devre Dışı",
+ "notification_email": "E-posta",
+ "notification_apprise": "Apprise",
+ "notification_both": "Her ikisi de",
+ "email_settings": "E-posta Ayarları",
+ "notification_frequency": "Bildirim Sıklığı",
+ "notification_frequency_desc": "E-postaları ne sıklıkta alacağınız",
+ "daily": "Günlük",
+ "weekly": "Haftalık",
+ "monthly": "Aylık",
+ "notification_time": "Bildirim Saati",
+ "timezone": "Saat Dilimi",
+ "timezone_desc": "Bildirimler için yerel saat diliminiz",
+ "apprise_settings": "Apprise Ayarları",
+ "apprise_frequency": "Apprise Bildirim Sıklığı",
+ "apprise_frequency_desc": "Apprise bildirimlerini alma sıklığı",
+ "apprise_time": "Apprise Bildirim Saati",
+ "apprise_timezone": "Apprise Saat Dilimi",
+ "apprise_timezone_desc": "Apprise bildirimleri için yerel saat diliminiz",
+ "save_notification_settings": "Bildirim Ayarlarını Kaydet",
+ "security": "Güvenlik",
+ "change_password": "Parolayı Değiştir",
+ "change_password_desc": "Hesap parolanızı güncelleyin",
+ "change": "Değiştir",
+ "current_password": "Mevcut Parola",
+ "new_password": "Yeni Parola",
+ "confirm_password": "Yeni Parolayı Onayla",
+ "update_password": "Parolayı Güncelle",
+ "cancel": "İptal",
+ "danger_zone": "Tehlikeli Bölge",
+ "delete_account": "Hesabı Sil",
+ "delete_account_desc": "Hesabınızı ve tüm verileri kalıcı olarak silin",
+ "currency": "Para Birimi",
+ "save_changes": "Değişiklikleri Kaydet",
+ "current_user": "Profil Düzenlemesi:",
+ "your_email": "E-posta adresiniz:",
+ "first_name": "Adı",
+ "last_name": "Soyadı",
+ "email": "E-posta",
+ "save_profile": "Değişiklikleri Kaydet",
+ "admin_settings": "Yönetici Ayarları",
+ "admin_actions": "Yönetici Eylemleri",
+ "refresh_data": "Verileri Yenile",
+ "check_admin_status": "Yönetici Durumunu Kontrol Et",
+ "show_users_list": "Kullanıcı Listesini Göster",
+ "test_api": "API Test Et",
+ "send_notifications": "Garanti Bildirimleri Gönder",
+ "check_scheduler": "Zamanlayıcı Durumunu Kontrol Et",
+ "site_settings": "Site Ayarları",
+ "registration_enabled": "Kayıt Etkinleştirildi",
+ "registration_enabled_desc": "Yeni kullanıcıların kayıt olmasına izin ver",
+ "email_base_url": "E-posta Temel URL",
+ "global_view_enabled": "Genel Görünüm Etkinleştirildi",
+ "global_view_admin_only": "Genel Görünüm Sadece Yönetici",
+ "save_site_settings": "Site Ayarlarını Kaydet",
+ "oidc_configuration": "OIDC SSO Yapılandırması",
+ "enable_oidc": "OIDC SSO Etkinleştir",
+ "oidc_provider_name": "OIDC Sağlayıcı Adı",
+ "client_id": "İstemci Kimliği",
+ "client_secret": "İstemci Gizli Anahtarı",
+ "issuer_url": "Veren URL",
+ "scope": "Kapsam",
+ "save_oidc_settings": "OIDC Ayarlarını Kaydet",
+ "oidc_sso_desc": "Kullanıcıların bir OIDC sağlayıcısı aracılığıyla oturum açmasına izin ver.",
+ "oidc_only_mode": "Yalnızca OIDC Oturum Açma Modu",
+ "oidc_only_mode_desc": "Geleneksel kullanıcı adı/şifre giriş formunu gizleyin ve yalnızca OIDC girişine izin verin. <strong>Uyarı:</strong> Bu seçeneği etkinleştirmeden önce OIDC'nin düzgün yapılandırıldığından emin olun.",
+ "oidc_provider_name_desc": "OIDC istemcisi için dahili ad (ör. 'oidc').",
+ "client_secret_desc": "Hassas değer. Veritabanında saklanır. Değişikliklerin etkili olması için bir uygulama yeniden başlatması gerekir.",
+ "issuer_url_desc": "OIDC sağlayıcınızın temel URL'si.",
+ "scope_desc": "Boşlukla ayrılmış OIDC kapsamları.",
+ "oidc_restart_message": "OIDC ayarlarının tam olarak etkili olması için uygulamanın yeniden başlatılması gerekir.",
+ "api_token": "API Anahtarı",
+ "view_documents": "Belgeleri Warracker'da Görüntüle",
+ "connection_testing": "Bağlantı Testi",
+ "apprise_notifications": "Apprise Bildirimleri",
+ "enable_apprise": "Apprise Bildirimlerini Etkinleştir",
+ "loading": "Yükleniyor...",
+ "time_of_day_notification": "Bildirim alma saati (24 saat formatında)",
+ "paperless_ngx_settings": "Paperless-ngx Ayarları",
+ "paperless_ngx_about_title": "Paperless-ngx Entegrasyonu Hakkında:",
+ "paperless_ngx_about_desc": "Bu isteğe bağlı özellik, garanti belgelerinizi yerel olarak yerine kendi barındırdığınız Paperless-ngx örneğinizde saklamanıza olanak tanır. Etkinleştirildiğinde, kullanıcılar her belgeyi nerede saklayacaklarını seçebilirler: yerel olarak veya Paperless-ngx'te.",
+ "paperless_ngx_desc": "Paperless-ngx belge yönetim sistemi ile entegrasyonu yapılandırın",
+ "enable_paperless": "Paperless-ngx Entegrasyonunu Etkinleştir",
+ "paperless_url": "Paperless-ngx URL'si",
+ "paperless_url_desc": "Paperless-ngx örneğinizin temel URL'si",
+ "paperless_token": "API Anahtarı",
+ "paperless_token_desc": "Paperless-ngx API kimlik doğrulama anahtarınız",
+ "paperless_token_desc_generate": "Paperless-ngx örneğinizden bir API anahtarı oluşturun (Ayarlar → API Anahtarları).",
+ "paperless_view_in_app": "Belgeleri uygulamada görüntüle",
+ "paperless_view_in_app_desc": "Belgeleri yeni bir sekmede yerine uygulama içinde açın",
+ "debug_config": "Hata Ayıklama Yapılandırması",
+ "test_upload": "Yüklemeyi Test Et",
+ "save_paperless_settings": "Paperless-ngx Ayarlarını Kaydet",
+ "apprise_desc": "Birden çok hizmete gelişmiş bildirim teslimi için Apprise'ı yapılandırın",
+ "apprise_desc_system_wide": "Sistem genelinde Apprise bildirimlerini etkinleştirin veya devre dışı bırakın",
+ "apprise_not_available_title": "Apprise Mevcut Değil:",
+ "apprise_not_available_desc": "Apprise bildirim kitaplığı yüklü veya mevcut değil. Bildirim özellikleri devre dışı bırakıldı.",
+ "apprise_url": "Apprise URL'si",
+ "apprise_url_desc": "Apprise bildirim hizmeti URL'niz",
+ "apprise_mode": "Bildirim Modu",
+ "apprise_mode_desc": "Apprise bildirimlerinin ne zaman gönderileceğini seçin",
+ "apprise_mode_global": "Genel Özet",
+ "apprise_mode_individual": "Kullanıcı Başına",
+ "test_paperless": "Paperless Bağlantısını Test Et",
+ "test_apprise": "Apprise Bağlantısını Test Et",
+ "apprise_warranty_scope": "Garanti Kapsamı",
+ "apprise_warranty_scope_desc": "Bildirimlere hangi garantilerin dahil edileceğini seçin",
+ "all_warranties": "Tüm Garantiler",
+ "personal_warranties": "Yalnızca Kişisel Garantiler",
+ "all_users_warranties": "Tüm Kullanıcıların Garantileri",
+ "admin_warranties_only": "Yalnızca Yöneticinin Garantileri",
+ "apprise_notification_days": "Bildirim Günleri",
+ "apprise_notification_days_desc": "Sona ermeden önce bildirim gönderilecek günler (virgülle ayrılmış, ör. sona ermeden 7 gün ve 30 gün önce için \"7,30\")",
+ "apprise_check_frequency": "Kontrol Sıklığı",
+ "apprise_check_frequency_desc": "Sistemin süresi dolan garantileri ne sıklıkta kontrol ettiği (genel ayar)",
+ "apprise_title_prefix": "Mesaj Başlığı Öneki",
+ "apprise_title_prefix_desc": "Bildirim başlıklarına eklenen önek (ör. \"[Warracker]\" \"[Warracker] Garantiler Yakında Sona Eriyor\" ile sonuçlanır)",
+ "apprise_test_url": "Test URL'si (İsteğe Bağlı)",
+ "apprise_test_url_desc": "İsteğe bağlı: Yalnızca test bildirimleri göndermek için URL (ana yapılandırmaya kaydedilmez)",
+ "save_apprise_settings": "Apprise Ayarlarını Kaydet",
+ "validate_urls": "URL'leri Doğrula",
+ "send_expiration_notifications_now": "Sona Erme Bildirimlerini Şimdi Gönder",
+ "apprise_current_status": "Mevcut Durum",
+ "apprise_urls_configured": "Yapılandırılmış URL'ler:",
+ "apprise_supported_services": "Desteklenen Hizmetler",
+ "apprise_supported_services_desc": "Apprise, Discord, Slack, Telegram, E-posta (Gmail, Outlook), Webhook'lar, Microsoft Teams, Matrix, Pushover, Ntfy, Gotify ve daha fazlası dahil olmak üzere 80'den fazla bildirim hizmetini destekler.",
+ "view_full_list_of_supported_services": "Desteklenen Hizmetlerin Tam Listesini Görüntüle",
+ "ownership_management": "Sahiplik Yönetimi",
+ "transfer_ownership": "Sahipliği Devret",
+ "warning_title": "Uyarı:",
+ "transfer_ownership_warning": "Uygulama sahipliğini başka bir yönetici kullanıcıya devredin. Bu eylem geri alınamaz.",
+ "transfer_ownership_desc": "Sahiplik devredildikten sonra, normal bir yönetici olacaksınız ve yeni sahip, uygulama üzerinde nihai kontrole sahip olacak.",
+ "select_new_owner": "Yeni Sahip Seç (yönetici olmalı)",
+ "select_admin_user": "Bir yönetici kullanıcı seçin...",
+ "transfer_ownership_button": "Sahipliği Devret",
+ "transfer_ownership_irreversible": "Bu eylem geri alınamaz.",
+ "transfer_ownership_confirmation": "Uygulama sahipliğini devretmek üzeresiniz",
+ "after_this_transfer": "Bu devirden sonra:",
+ "transfer_ownership_consequence_1": "Normal bir yönetici olacaksınız",
+ "transfer_ownership_consequence_2": "Yeni sahip, uygulama üzerinde nihai kontrole sahip olacak",
+ "transfer_ownership_consequence_3": "Yalnızca yeni sahip tekrar sahipliği devredebilir",
+ "transfer_ownership_type_to_confirm": "Onaylamak için lütfen aşağıdaki alana \"TRANSFER\" yazın:"
+ },
+ "languages": {
+ "en": "İngilizce",
+ "fr": "Fransızca",
+ "es": "İspanyolca",
+ "de": "Almanca",
+ "it": "İtalyanca",
+ "cs": "Çekçe",
+ "nl": "Hollandaca",
+ "hi": "Hintçe",
+ "fa": "Farsça",
+ "ar": "Arapça",
+ "ru": "Rusça",
+ "uk": "Ukraynaca",
+ "zh_CN": "Basitleştirilmiş Çince",
+ "zh_HK": "Geleneksel Çince",
+ "ja": "Japonca",
+ "pt": "Portekizce",
+ "ko": "Korece",
+ "tr": "Türkçe"
+ },
+ "auth": {
+ "login": "Giriş",
+ "logout": "Çıkış",
+ "register": "Kayıt Ol",
+ "username": "Kullanıcı Adı",
+ "password": "Parola",
+ "email": "E-posta",
+ "first_name": "Adı",
+ "last_name": "Soyadı",
+ "forgot_password": "Parolayı Unuttunuz mu?",
+ "reset_password": "Parolayı Sıfırla",
+ "confirm_password": "Parolayı Onayla",
+ "create_account_title": "Hesabınızı Oluşturun",
+ "first_name_optional": "Adı (İsteğe Bağlı)",
+ "last_name_optional": "Soyadı (İsteğe Bağlı)",
+ "username_hint": "Kullanıcı adı benzersiz olmalı ve giriş için kullanılacaktır.",
+ "email_address": "E-posta Adresi",
+ "toggle_password": "Parolayı Göster/Gizle",
+ "password_hint_simple": "Parola en az 8 karakter olmalı ve büyük harf, küçük harf ve sayı içermelidir.",
+ "password_requirements": "Parola Gereksinimleri:",
+ "req_length": "En az 8 karakter",
+ "req_uppercase": "En az 1 büyük harf",
+ "req_lowercase": "En az 1 küçük harf",
+ "req_number": "En az 1 sayı",
+ "req_special": "En az 1 özel karakter",
+ "create_account": "Hesap Oluştur",
+ "already_have_account": "Zaten bir hesabınız var mı?",
+ "reset_password_title": "Warracker - Parola Sıfırla",
+ "reset_your_password": "Parolayınızı Sıfırlayın",
+ "reset_password_info": "Aşağıya e-posta adresinizi girin, size parolanızı sıfırlamak için bir bağlantı gönderelim.",
+ "send_reset_link": "Sıfırlama Bağlantısı Gönder",
+ "back_to_login": "Girişe Dön",
+ "set_new_password_title": "Warracker - Yeni Parola Belirle",
+ "set_new_password": "Yeni Parola Belirle",
+ "new_password": "Yeni Parola",
+ "confirm_new_password": "Yeni Parolayı Onayla",
+ "invalid_or_expired_link": "Geçersiz veya Süresi Dolmuş Bağlantı",
+ "invalid_link_info": "Tıkladığınız parola sıfırlama bağlantısı geçersiz veya süresi dolmuş.",
+ "request_new_reset_link": "Yeni Sıfırlama Bağlantısı İste"
+ },
+ "warranties": {
+ "title": "Garantileriniz",
+ "title_global": "Tüm Kullanıcıların Garantileri",
+ "add_new": "Yeni Garanti Ekle",
+ "edit": "Garantiyi Düzenle",
+ "delete": "Garantiyi Sil",
+ "product_name": "Ürün Adı",
+ "purchase_date": "Satın Alma Tarihi",
+ "warranty_duration": "Garanti Süresi",
+ "years": "Yıl",
+ "months": "Ay",
+ "days": "Gün",
+ "vendor": "Satıcı",
+ "serial_numbers": "Seri Numaraları",
+ "purchase_price": "Satın Alma Fiyatı",
+ "notes": "Notlar",
+ "tags": "Etiketler",
+ "status": "Durum",
+ "expiration_date": "Son Kullanma Tarihi",
+ "active": "Aktif",
+ "expired": "Süresi Dolmuş",
+ "expiring_soon": "Yakında Sona Erecek",
+ "lifetime": "Ömür Boyu",
+ "no_warranties": "Henüz garanti yok. Başlamak için ilk garantinizi ekleyin.",
+ "search_placeholder": "Ada, satıcılara, notlara, etikete veya seri numarasına göre bulun...",
+ "warranty_type": "Garanti Türü",
+ "other_document": "Diğer Belge",
+ "product": "Ürün",
+ "expiration": "Son Kullanma",
+ "actions": "Eylemler",
+ "no_warranties_title": "Henüz garanti yok",
+ "no_warranties_desc": "Başlamak için ilk garantinizi ekleyin",
+ "add_warranty": "Garanti Ekle",
+ "warranty_entry_method": "Garanti Giriş Yöntemi",
+ "warranty_duration_option": "Garanti Süresi",
+ "exact_expiration_option": "Tam Son Kullanma Tarihi",
+ "warranty_period": "Garanti Süresi",
+ "expiration_date_label": "Son Kullanma Tarihi",
+ "currency": "Para Birimi",
+ "add_tags": "Etiket Ekle",
+ "add_tags_desc": "Etiketler, garantilerinizi düzenlemenize ve filtrelemenize yardımcı olur",
+ "save_changes": "Değişiklikleri Kaydet",
+ "confirm_delete": "Silmeyi Onayla",
+ "manage_tags": "Etiketleri Yönet",
+ "add_tag": "Etiket Ekle",
+ "unknown_status": "Bilinmeyen Durum",
+ "expiring_soon_days": "Yakında Sona Eriyor ({{days}} {{dayText}})",
+ "days_remaining": "{{days}} {{dayText}} kaldı",
+ "day_one": "gün",
+ "day_other": "gün",
+ "month_one": "ay",
+ "month_other": "ay",
+ "year_one": "yıl",
+ "year_other": "yıl",
+ "na": "Yok",
+ "age": "Yaş",
+ "warranty": "Garanti",
+ "warranty_ends": "Garanti Bitişi",
+ "price": "Fiyat",
+ "serial_number": "Seri Numarası",
+ "type": "Tür",
+ "owner": "Sahip",
+ "product_website": "Ürün Web Sitesi",
+ "documents": "Belgeler",
+ "summary": "Özet",
+ "product_url_optional": "Ürün URL'si (İsteğe Bağlı)",
+ "enter_serial_number": "Seri numarasını girin",
+ "vendor_optional": "Satıcı (İsteğe Bağlı)",
+ "vendor_placeholder": "ör. Amazon, Best Buy, vb.",
+ "lifetime_warranty": "Ömür Boyu Garanti",
+ "warranty_type_optional": "Garanti Türü (İsteğe Bağlı)",
+ "select_warranty_type": "Garanti türünü seçin...",
+ "standard": "Standart",
+ "extended": "Uzatılmış",
+ "manufacturer": "Üretici",
+ "third_party": "Üçüncü Taraf",
+ "store": "Mağaza",
+ "premium": "Premium",
+ "limited": "Sınırlı",
+ "full": "Tam",
+ "parts_only": "Yalnızca Parçalar",
+ "labor_only": "Yalnızca İşçilik",
+ "international": "Uluslararası",
+ "accidental_damage": "Kaza Hasarı",
+ "other_custom": "Diğer (Özel)",
+ "enter_custom_warranty_type": "Özel garanti türünü girin",
+ "purchase_price_optional": "Satın Alma Fiyatı (İsteğe Bağlı)",
+ "notes_optional": "Notlar (İsteğe Bağlı)",
+ "add_any_notes": "Bu garanti hakkında herhangi bir not ekleyin...",
+ "product_photo_optional": "Ürün Fotoğrafı (İsteğe Bağlı)",
+ "choose_photo": "Fotoğraf Seç",
+ "invoice_receipt": "Fatura/Fiş",
+ "store_locally": "Yerel Olarak Sakla",
+ "store_in_paperless": "Paperless-ngx'te Sakla",
+ "choose_file": "Dosya Seç",
+ "browse_paperless": "Paperless-ngx Belgelerine Göz At",
+ "product_manual_optional": "Ürün Kılavuzu (İsteğe Bağlı)",
+ "files_zip_rar_optional": "Dosyalar (ZIP/RAR, İsteğe Bağlı)",
+ "search_or_add_new_tag": "Etiket arayın veya yeni ekleyin...",
+ "product_information": "Ürün Bilgisi",
+ "product_url": "Ürün URL",
+ "warranty_details": "Garanti Ayrıntıları",
+ "product_photo": "Ürün Fotoğrafı",
+ "product_manual": "Ürün Kılavuzu",
+ "files": "Dosyalar",
+ "selected_tags": "Seçilen Etiketler",
+ "previous_tab": "Önceki",
+ "next_tab": "Sonraki",
+ "delete_photo": "Fotoğrafı Sil",
+ "delete_invoice": "Faturasını Sil",
+ "delete_manual": "Kılavuzu Sil",
+ "delete_files": "Dosyaları Sil",
+ "current_photo": "Mevcut fotoğraf:",
+ "current_invoice": "Mevcut fatura:",
+ "current_manual": "Mevcut kılavuz:",
+ "current_document": "Mevcut belge:",
+ "upload_new_photo_replace": "(Değiştirmek için yeni bir fotoğraf yükleyin)",
+ "no_photo_uploaded": "Fotoğraf yüklenmedi",
+ "no_invoice_uploaded": "Fatura yüklenmedi",
+ "no_manual_uploaded": "Kılavuz yüklenmedi",
+ "no_document_uploaded": "Başka belge yüklenmedi",
+ "photo_will_be_deleted": "Fotoğraf kaydetmede silinecek",
+ "invoice_will_be_deleted": "Fatura kaydetmede silinecek",
+ "manual_will_be_deleted": "Kılavuz kaydetmede silinecek",
+ "document_will_be_deleted": "Diğer belge kaydetmede silinecek",
+ "confirm_delete_message": "Bu garantiyi silmek istediğinizden emin misiniz? Bu eylem geri alınamaz.",
+ "new_tag_name": "Yeni etiket adı",
+ "existing_tags": "Mevcut Etiketler",
+ "edit_warranty": "Garantiyi Düzenle",
+ "warranty_type_standard": "Standart",
+ "warranty_type_extended": "Uzatılmış",
+ "warranty_type_manufacturer": "Üretici",
+ "warranty_type_third_party": "Üçüncü Taraf",
+ "warranty_type_store": "Mağaza",
+ "warranty_type_premium": "Premium",
+ "warranty_type_limited": "Sınırlı",
+ "warranty_type_full": "Tam",
+ "warranty_type_parts_only": "Yalnızca Parçalar",
+ "warranty_type_labor_only": "Yalnızca İşçilik",
+ "warranty_type_international": "Uluslararası",
+ "warranty_type_accidental_damage": "Kaza Hasarı",
+ "warranty_type_other": "Diğer (Özel)",
+ "warranty_type_custom_placeholder": "Özel garanti türünü girin",
+ "notes_placeholder": "Bu garanti hakkında ek notlar...",
+ "tags_help_text": "Etiketler garantilerinizi düzenlemek ve filtrelemek için yardımcı olur",
+ "search_add_tag_placeholder": "Etiket arayın veya yeni ekleyin...",
+ "upload_new_file_replace": "Değiştirmek için yeni bir dosya yükleyin",
+ "current_other_document": "Mevcut diğer belge",
+ "no_other_document_uploaded": "Başka belge yüklenmedi",
+ "other_document_will_be_deleted": "Diğer belge kaydetmede silinecek",
+ "files_optional": "Dosyalar (ZIP/RAR, İsteğe Bağlı)",
+ "invoice_receipt_short": "Fatura",
+ "product_manual_short": "Kılavuz",
+ "files_short": "Dosyalar",
+ "product_url_placeholder": "https://ornek.com/urun",
+ "years_placeholder": "Yıl",
+ "months_placeholder": "Ay",
+ "days_placeholder": "Gün",
+ "add_any_notes_placeholder": "Bu garanti hakkında herhangi bir not ekleyin...",
+ "add_serial_number": "Başka bir seri numarası ekle"
+ },
+ "actions": {
+ "save": "Kaydet",
+ "cancel": "İptal",
+ "delete": "Sil",
+ "edit": "Düzenle",
+ "export": "Dışa Aktar",
+ "import": "İçe Aktar",
+ "refresh": "Yenile",
+ "search": "Ara",
+ "clear": "Temizle",
+ "upload": "Yükle",
+ "download": "İndir",
+ "manage_tags": "Etiketleri Yönet",
+ "close": "Kapat",
+ "save_changes": "Değişiklikleri Kaydet"
+ },
+ "filters": {
+ "all_status": "Tüm Durumlar",
+ "all_tags": "Tüm Etiketler",
+ "all_vendors": "Tüm Satıcılar",
+ "all_types": "Tüm Tipler",
+ "sort_by": "Sırala",
+ "sort_expiration": "Son Kullanma Tarihi",
+ "sort_purchase": "Satın Alma Tarihi",
+ "sort_age": "Yaş",
+ "sort_name": "Ürün Adı",
+ "sort_vendor": "Satıcı",
+ "sort_warranty_type": "Garanti Türü",
+ "status": "Durum",
+ "tags": "Etiketler",
+ "vendor": "Satıcı",
+ "warranty_type": "Garanti Türü",
+ "view": "Görünüm",
+ "scope": "Kapsam"
+ },
+ "status": {
+ "title": "Sistem Durumu",
+ "dashboard_title": "Garanti Durum Panosu",
+ "global_dashboard_title": "Genel Garanti Durum Panosu",
+ "overview": "Genel Bakış",
+ "statistics": "İstatistikler",
+ "total_warranties": "Toplam Garantiler",
+ "active_warranties": "Aktif Garantiler",
+ "expiring_soon": "Yakında Sona Erecek",
+ "expired_warranties": "Süresi Dolan Garantiler",
+ "warranty_distribution": "Garanti Dağılımı",
+ "expiration_timeline": "Sona Erme Zaman Çizelgesi",
+ "recent_activity": "Son Etkinlik",
+ "recent_expirations": "Yakın Zamanda Sona Eren veya Erecek Garantiler",
+ "recent_expirations_empty": "Yakın zamanda sona eren veya erecek garanti yok.",
+ "system_health": "Sistem Sağlığı",
+ "database_status": "Veritabanı Durumu",
+ "connected": "Bağlı",
+ "version": "Sürüm",
+ "uptime": "Çalışma Süresi"
+ },
+ "about": {
+ "title": "Warracker Hakkında",
+ "description": "Tüm ürün garantilerinizi güvenli, kullanıcı dostu bir platformda izlemenize, düzenlemenize ve yönetmenize yardımcı olan kapsamlı bir garanti yönetim sistemi.",
+ "version": "Sürüm",
+ "update_status": "Güncelleme Durumu",
+ "checking_updates": "Güncellemeler kontrol ediliyor...",
+ "view_release_notes": "Sürüm Notlarını Görüntüle",
+ "project_info": "Proje Bilgileri",
+ "project_description": "Warracker, modern web teknolojileriyle oluşturulmuş açık kaynaklı bir garanti yönetim sistemidir. Ürün garantilerini yönetmek, son kullanma tarihlerini izlemek ve önemli belgeleri düzenlemek için güvenli ve sezgisel bir yol sağlar.",
+ "github_repository": "GitHub Deposu",
+ "releases": "Sürümler",
+ "community_support": "Topluluk ve Destek",
+ "community_description": "Destek, tartışmalar ve güncellemeler için topluluğumuza katılın. Hataları bildirin, özellikler isteyin veya diğer kullanıcılardan ve katkıda bulunanlardan yardım alın.",
+ "discord_community": "Discord Topluluğu",
+ "report_issues": "Sorunları Bildir",
+ "developer_info": "Geliştirici Bilgileri",
+ "developer_description": "Warracker, Sassanix tarafından geliştirilmekte ve sürdürülmektedir. Proje açık kaynaklıdır ve topluluktan gelen katkıları memnuniyetle karşılar.",
+ "sassanix": "Sassanix",
+ "agpl_license": "AGPL-3.0 Lisansı",
+ "support_project": "Projeyi Destekle",
+ "support_description": "Warracker'ı faydalı buluyorsanız, gelişimini desteklemeyi düşünün!",
+ "new_version_available": "Yeni sürüm {{version}} mevcut!",
+ "latest_version": "En son sürümü kullanıyorsunuz",
+ "update_check_failed": "Güncelleme kontrolü başarısız",
+ "features": "Özellikler",
+ "feature_track": "Ürün garantilerini takip edin",
+ "feature_notifications": "Son kullanma bildirimleri alın",
+ "feature_documents": "Garanti belgelerini saklayın",
+ "feature_reports": "Garanti raporları oluşturun",
+ "feature_tags": "Etiketlerle düzenleyin",
+ "feature_export": "Garanti verilerini dışa aktarın",
+ "support": "Destek",
+ "documentation": "Belgeler",
+ "github": "GitHub Deposu",
+ "license": "Lisans",
+ "copyright": "Telif Hakkı",
+ "developed_by": "Geliştiren"
+ },
+ "claims": {
+ "claims": "Talepler",
+ "warranty_claims": "Garanti Talepleri",
+ "add_new_claim": "Yeni Talep Ekle",
+ "add_claim": "Talep Ekle",
+ "edit_claim": "Talebi Düzenle",
+ "claim_date": "Talep Tarihi",
+ "status": "Durum",
+ "claim_number": "Talep Numarası",
+ "description": "Açıklama",
+ "resolution": "Çözüm",
+ "resolution_date": "Çözüm Tarihi",
+ "status_submitted": "Gönderildi",
+ "status_in_progress": "Devam Ediyor",
+ "status_approved": "Onaylandı",
+ "status_denied": "Reddedildi",
+ "status_resolved": "Çözüldü",
+ "status_cancelled": "İptal Edildi",
+ "description_placeholder": "Sorunu ve talebin nedenini açıklayın...",
+ "resolution_placeholder": "Çözüm ayrıntıları (varsa)...",
+ "no_claims_yet": "Henüz Talep Yok",
+ "no_claims_message": "Başlamak için \"Yeni Talep Ekle\"ye tıklayın",
+ "claim_deleted_successfully": "Talep başarıyla silindi",
+ "claim_created_successfully": "Talep başarıyla oluşturuldu",
+ "claim_updated_successfully": "Talep başarıyla güncellendi",
+ "confirm_delete_claim": "Bu talebi silmek istediğinizden emin misiniz?",
+ "failed_to_load_claims": "Talepler yüklenemedi",
+ "failed_to_save_claim": "Talep kaydedilemedi",
+ "failed_to_delete_claim": "Talep silinemedi",
+ "warranty_not_found": "Garanti bulunamadı"
+ }
+}
\ No newline at end of file
diff --git a/locales/uk/translation.json b/locales/uk/translation.json
index 9efa2ac..fdb8938 100644
--- a/locales/uk/translation.json
+++ b/locales/uk/translation.json
@@ -484,7 +484,106 @@
"tag_deleted_successfully": "Тег успішно видалено",
"failed_to_create_tag": "Не вдалося створити тег",
"failed_to_update_tag": "Не вдалося оновити тег",
- "failed_to_delete_tag": "Не вдалося видалити тег"
+ "failed_to_delete_tag": "Не вдалося видалити тег",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -503,7 +602,8 @@
"zh_HK": "繁體中文",
"ja": "日本語",
"pt": "Português",
- "ko": "한국어"
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "Статус системи",
@@ -563,5 +663,36 @@
"license": "Ліцензія",
"copyright": "Авторське право",
"developed_by": "Розроблено"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
diff --git a/locales/zh_CN/translation.json b/locales/zh_CN/translation.json
index c7ef3fa..37d7732 100644
--- a/locales/zh_CN/translation.json
+++ b/locales/zh_CN/translation.json
@@ -478,7 +478,106 @@
"tag_deleted_successfully": "标签删除成功",
"failed_to_create_tag": "创建标签失败",
"failed_to_update_tag": "更新标签失败",
- "failed_to_delete_tag": "删除标签失败"
+ "failed_to_delete_tag": "删除标签失败",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -497,7 +596,8 @@
"zh_HK": "繁體中文",
"ja": "日本語",
"pt": "Português",
- "ko": "한국어"
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "系统状态",
@@ -557,5 +657,36 @@
"license": "许可证",
"copyright": "版权",
"developed_by": "开发者"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}
diff --git a/locales/zh_HK/translation.json b/locales/zh_HK/translation.json
index 545e61a..968777c 100644
--- a/locales/zh_HK/translation.json
+++ b/locales/zh_HK/translation.json
@@ -478,7 +478,106 @@
"tag_deleted_successfully": "標籤刪除成功",
"failed_to_create_tag": "創建標籤失敗",
"failed_to_update_tag": "更新標籤失敗",
- "failed_to_delete_tag": "刪除標籤失敗"
+ "failed_to_delete_tag": "刪除標籤失敗",
+ "no_warranties_found": "No warranties found",
+ "no_warranties_found_add_first": "No warranties yet. Add your first warranty to get started.",
+ "could_not_load_tags": "Could not load tags. Please try again.",
+ "no_warranty_selected": "No warranty selected",
+ "archived_warranties_guidance": "You can find archived warranties by selecting \"Archived\" in Filters.",
+ "no_file_selected": "No file selected.",
+ "invalid_csv_file_type": "Invalid file type. Please select a .csv file.",
+ "auth_error_login_again": "Authentication error. Please log in again.",
+ "import_failed": "Import failed: {{error}}",
+ "import_error_details": "An error occurred during import. Check console for details.",
+ "date_format_updated": "Date format updated.",
+ "currency_symbol_updated": "Currency symbol updated.",
+ "no_warranty_for_note_update": "No warranty selected for note update",
+ "cannot_save_notes_invalid_duration": "Cannot save notes: The warranty has an invalid duration. Please edit the full warranty details to set a valid duration first.",
+ "note_updated": "Note updated",
+ "paperless_duplicate_linked": "Duplicate document detected in Paperless-ngx. Linked to existing document.",
+ "paperless_not_enabled": "Paperless-ngx integration is not enabled",
+ "paperless_not_configured": "Paperless-ngx is not properly configured. Please check the settings.",
+ "paperless_connection_failed": "Paperless-ngx connection failed: {{error}}",
+ "allow_popups": "Please allow popups to view documents",
+ "opening_document_in_warracker": "Opening document in Warracker...",
+ "allow_popups_paperless": "Please allow popups to view documents in Paperless-ngx",
+ "opening_document_in_paperless": "Opening document in Paperless-ngx...",
+ "error_opening_document": "Error opening document: {{error}}",
+ "opened_with_fallback_url": "Opened with fallback URL - please check if Paperless-ngx is accessible",
+ "opened_with_generic_fallback_url": "Opened with generic fallback URL",
+ "document_linked_refreshing": "Document linked successfully! Refreshing...",
+ "failed_to_link_document": "Failed to link document: {{message}}",
+ "error_searching_document": "Error searching for document",
+ "autolinked_documents": "Automatically linked {{count}} document(s): {{docInfo}}",
+ "paperless_upload_autolink_failed": "Document uploaded to Paperless-ngx but could not be automatically linked. You can manually link it later.",
+ "paperless_upload_autolink_failed_errors": "Document uploaded but auto-linking failed due to errors. You can manually link it later.",
+ "document_linked_successfully": "Document linked successfully: {{documentType}}",
+ "failed_to_open_claims_modal": "Failed to open claims modal",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "authentication_required": "Authentication required",
+ "warranty_deleted_successfully": "Warranty deleted successfully",
+ "failed_to_delete_warranty": "Failed to delete warranty",
+ "warranty_updated_successfully": "Warranty updated successfully",
+ "failed_to_update_warranty": "Failed to update warranty",
+ "confirm_delete_tag": "Are you sure you want to delete this tag? It will be removed from all warranties.",
+ "tag_already_exists": "A tag with this name already exists",
+ "failed_to_update_tag": "Failed to update tag",
+ "failed_to_load_fresh_user_data": "Failed to load fresh user data",
+ "could_not_connect_fetch_user_data": "Could not connect to fetch user data. Displaying cached info.",
+ "fill_in_first_and_last_name": "Please fill in First Name and Last Name",
+ "email_address_cannot_be_empty": "Email address cannot be empty.",
+ "enter_valid_email_address": "Please enter a valid email address.",
+ "failed_to_update_profile": "Failed to update profile: {{error}}",
+ "preferences_saved_locally_failed_to_sync": "Preferences saved locally, but failed to sync with server: {{error}}",
+ "preferences_saved_locally": "Preferences saved locally.",
+ "fill_in_all_password_fields": "Please fill in all password fields",
+ "new_passwords_do_not_match": "New passwords do not match",
+ "password_at_least_8_characters": "Password must be at least 8 characters long",
+ "failed_to_change_password": "Failed to change password: {{error}}",
+ "failed_to_update_user": "Failed to update user",
+ "failed_to_update_user_try_again": "Failed to update user. Please try again.",
+ "failed_to_delete_user_check_console": "Failed to delete user. Check console for details.",
+ "error_during_user_deletion": "Error during user deletion: {{error}}",
+ "trying_direct_api_call_for_user_id": "Trying direct API call for user ID {{userId}}...",
+ "user_id_deleted_successfully_with_direct_api_call": "User ID {{userId}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call": "Failed to delete user {{username}} with direct API call.",
+ "error_with_direct_api_call": "Error with direct API call: {{error}}",
+ "error_checking_if_user_exists": "Error checking if user exists: {{error}}",
+ "select_user_to_transfer_ownership": "Please select a user to transfer ownership to",
+ "transfer_ownership_modal_elements_not_found": "Error: Transfer ownership modal elements not found",
+ "failed_to_transfer_ownership": "Failed to transfer ownership",
+ "failed_to_transfer_ownership_try_again": "Failed to transfer ownership. Please try again.",
+ "checking_user": "Checking user...",
+ "user_with_id_username_not_found": "User with ID/username \"{{userId}}\" not found",
+ "deleting_user": "Deleting user {{username}} (ID: {{id}})...",
+ "user_deleted_successfully_username": "User {{username}} deleted successfully!",
+ "failed_to_delete_user_check_console_username": "Failed to delete user {{username}}. Check console for details.",
+ "trying_direct_api_call_for_user_username": "Trying direct API call for user {{username}}...",
+ "user_deleted_successfully_with_direct_api_call_username": "User {{username}} deleted successfully with direct API call!",
+ "failed_to_delete_user_with_direct_api_call_username": "Failed to delete user {{username}} with direct API call.",
+ "invalid_email_base_url_format": "Invalid Email Base URL format. It should start with http:// or https://",
+ "failed_to_save_site_settings_try_again": "Failed to save site settings. Please try again.",
+ "failed_to_save_oidc_settings_try_again": "Failed to save OIDC settings. Please try again.",
+ "error_checking_api_endpoint": "Error checking API endpoint: {{error}}",
+ "error_colon": "Error: {{error}}",
+ "error_checking_scheduler_status": "Error checking scheduler status: {{error}}",
+ "error_saving_notification_settings": "Error saving notification settings: {{error}}",
+ "error_saving_apprise_settings": "Error saving Apprise settings: {{error}}",
+ "failed_to_send_test_notification": "Failed to send test notification: {{message}}",
+ "error_sending_test_notification": "Error sending test notification: {{error}}",
+ "error_validating_urls": "Error validating URLs: {{error}}",
+ "failed_to_trigger_notifications": "Failed to trigger notifications: {{message}}",
+ "error_triggering_notifications": "Error triggering notifications: {{error}}",
+ "error_updating_apprise_setting": "Error updating Apprise setting: {{error}}",
+ "error_loading_paperless_settings": "Error loading Paperless-ngx settings: {{error}}",
+ "error_saving_paperless_settings": "Error saving Paperless-ngx settings: {{error}}",
+ "error_testing_connection": "Error testing connection: {{error}}",
+ "debug_information_logged_to_console": "Debug information logged to console",
+ "debug_error": "Debug error: {{error}}",
+ "file_upload_test_successful": "File upload test successful!",
+ "file_upload_test_failed": "File upload test failed",
+ "file_upload_test_error": "File upload test error: {{error}}"
},
"languages": {
"en": "English",
@@ -497,7 +596,8 @@
"zh_HK": "繁體中文",
"ja": "日本語",
"pt": "Português",
- "ko": "한국어"
+ "ko": "한국어",
+ "tr": "Türkçe"
},
"status": {
"title": "系統狀態",
@@ -557,5 +657,36 @@
"license": "授權",
"copyright": "版權",
"developed_by": "開發者"
+ },
+ "claims": {
+ "claims": "Claims",
+ "warranty_claims": "Warranty Claims",
+ "add_new_claim": "Add New Claim",
+ "add_claim": "Add Claim",
+ "edit_claim": "Edit Claim",
+ "claim_date": "Claim Date",
+ "status": "Status",
+ "claim_number": "Claim Number",
+ "description": "Description",
+ "resolution": "Resolution",
+ "resolution_date": "Resolution Date",
+ "status_submitted": "Submitted",
+ "status_in_progress": "In Progress",
+ "status_approved": "Approved",
+ "status_denied": "Denied",
+ "status_resolved": "Resolved",
+ "status_cancelled": "Cancelled",
+ "description_placeholder": "Describe the issue and reason for the claim...",
+ "resolution_placeholder": "Resolution details (if any)...",
+ "no_claims_yet": "No Claims Yet",
+ "no_claims_message": "Click \"Add New Claim\" to get started",
+ "claim_deleted_successfully": "Claim deleted successfully",
+ "claim_created_successfully": "Claim created successfully",
+ "claim_updated_successfully": "Claim updated successfully",
+ "confirm_delete_claim": "Are you sure you want to delete this claim?",
+ "failed_to_load_claims": "Failed to load claims",
+ "failed_to_save_claim": "Failed to save claim",
+ "failed_to_delete_claim": "Failed to delete claim",
+ "warranty_not_found": "Warranty not found"
}
}