diff --git a/client/src/components/AuthOnboarding.tsx b/client/src/components/AuthOnboarding.tsx index 8e02d43..7698080 100644 --- a/client/src/components/AuthOnboarding.tsx +++ b/client/src/components/AuthOnboarding.tsx @@ -273,6 +273,7 @@ export default function AuthOnboarding({ onAuthenticated, onOpenDemo }: AuthOnbo setPinInput(e.target.value.replace(/\D/g, ''))} disabled={loading} required + autoComplete="new-password" style={{ width: '100%', padding: '12px', boxSizing: 'border-box' }} /> @@ -322,6 +324,7 @@ export default function AuthOnboarding({ onAuthenticated, onOpenDemo }: AuthOnbo
setPinLoginInput(e.target.value.replace(/\D/g, ''))} disabled={loading} required + autoComplete="current-password" style={{ width: '100%', padding: '12px', boxSizing: 'border-box' }} />
diff --git a/client/src/components/LogbookBackupPanel.tsx b/client/src/components/LogbookBackupPanel.tsx index ddb4d2b..bd27d5b 100644 --- a/client/src/components/LogbookBackupPanel.tsx +++ b/client/src/components/LogbookBackupPanel.tsx @@ -58,6 +58,16 @@ export default function LogbookBackupPanel({ logbookId, onRestored }: LogbookBac const [error, setError] = useState(null) const [success, setSuccess] = useState(null) + const handleExportSubmit = async (e: React.FormEvent) => { + e.preventDefault() + await handleExport() + } + + const handleImportSubmit = async (e: React.FormEvent) => { + e.preventDefault() + await handleRestore() + } + const handleExport = async () => { setError(null) setSuccess(null) @@ -209,40 +219,45 @@ export default function LogbookBackupPanel({ logbookId, onRestored }: LogbookBac

{t('settings.backup_export_desc')}

-
- - setExportPassphrase(e.target.value)} - placeholder={t('settings.backup_passphrase_placeholder')} - autoComplete="new-password" - disabled={exporting} - /> -
-
- - setExportConfirm(e.target.value)} - autoComplete="new-password" - disabled={exporting} - /> -
- +
+
+ + setExportPassphrase(e.target.value)} + placeholder={t('settings.backup_passphrase_placeholder')} + autoComplete="new-password" + disabled={exporting} + required + /> +
+
+ + setExportConfirm(e.target.value)} + autoComplete="new-password" + disabled={exporting} + required + /> +
+ +
@@ -252,58 +267,61 @@ export default function LogbookBackupPanel({ logbookId, onRestored }: LogbookBac

{t('settings.backup_restore_desc')}

-
- - -
+
+
+ + +
- {importFile && ( - <> -
- - { - setImportPassphrase(e.target.value) - setImportPreview(null) - }} - autoComplete="current-password" - disabled={importing} - /> -
+ {importFile && ( + <> +
+ + { + setImportPassphrase(e.target.value) + setImportPreview(null) + }} + autoComplete="current-password" + disabled={importing} + required + /> +
-
- - -
- - )} +
+ + +
+ + )} +
{importPreview && (
diff --git a/client/src/components/SettingsForm.tsx b/client/src/components/SettingsForm.tsx index b6459a2..f4a8791 100644 --- a/client/src/components/SettingsForm.tsx +++ b/client/src/components/SettingsForm.tsx @@ -293,12 +293,14 @@ export default function SettingsForm({ logbookId, onLogbookRestored }: SettingsF setApiKey(e.target.value)} disabled={saving} + autoComplete="off" />