feat: improve export/import UI with modal and integrated success message (#46)
- Replace export checkbox with modal offering 'With Images' or 'Data Only' options - Replace styled label with proper button for file import - Replace browser alert() with integrated success banner for import confirmation - Add i18n translations for new modal texts (EN/DE) The export modal provides a cleaner UX with clear explanations for each option. The import success message now displays inline with theme-appropriate styling.
This commit is contained in:
@@ -374,6 +374,11 @@
|
||||
"sensitiveWarning": "Benachrichtigungs-URLs können Passwörter enthalten und werden im Klartext gespeichert.",
|
||||
"includeImages": "Medikamentenbilder einschließen",
|
||||
"includeImagesHint": "Bilder vergrößern die Datei erheblich. Deaktivieren für kleinere Exports (~50 KB statt mehrere MB).",
|
||||
"exportOptions": "Export-Optionen",
|
||||
"exportWithImages": "Mit Bildern",
|
||||
"exportWithImagesDesc": "Vollständiges Backup mit allen Medikamentenbildern. Größere Datei.",
|
||||
"exportDataOnly": "Nur Daten",
|
||||
"exportDataOnlyDesc": "Kompaktes Backup ohne Bilder. Viel kleinere Datei (~50 KB).",
|
||||
"confirmImport": "Alle Daten ersetzen?",
|
||||
"confirmImportMessage": "Dies löscht dauerhaft alle deine aktuellen Medikamente, Einnahmehistorie, Einstellungen und Teilen-Links und ersetzt sie durch die importierten Daten.",
|
||||
"confirmImportWarning": "Diese Aktion kann nicht rückgängig gemacht werden!",
|
||||
|
||||
@@ -376,6 +376,11 @@
|
||||
"sensitiveWarning": "Notification URLs may contain passwords and will be stored in plain text.",
|
||||
"includeImages": "Include medication images",
|
||||
"includeImagesHint": "Images significantly increase file size. Uncheck for smaller exports (~50 KB instead of several MB).",
|
||||
"exportOptions": "Export Options",
|
||||
"exportWithImages": "With Images",
|
||||
"exportWithImagesDesc": "Full backup including all medication images. Larger file size.",
|
||||
"exportDataOnly": "Data Only",
|
||||
"exportDataOnlyDesc": "Compact backup without images. Much smaller file size (~50 KB).",
|
||||
"confirmImport": "Replace All Data?",
|
||||
"confirmImportMessage": "This will permanently delete all your current medications, dose history, settings, and share links, then replace them with the imported data.",
|
||||
"confirmImportWarning": "This action cannot be undone!",
|
||||
|
||||
Reference in New Issue
Block a user