Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Reorder settings menu (#1338)

Leendert de Borst987de6625fa1
diff --git a/apps/browser-extension/src/entrypoints/popup/pages/settings/Settings.tsx b/apps/browser-extension/src/entrypoints/popup/pages/settings/Settings.tsx
index 854b97226..d9a7cf3cc 100644
--- a/apps/browser-extension/src/entrypoints/popup/pages/settings/Settings.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/pages/settings/Settings.tsx
@@ -252,7 +252,6 @@ const Settings: React.FC = () => {
{/* Settings Navigation Section */}
<section>
- <h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.preferences')}</h3>
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
<div className="divide-y divide-gray-200 dark:divide-gray-700">
{/* Vault Unlock Method */}
@@ -277,9 +276,9 @@ const Settings: React.FC = () => {
</svg>
</button>
- {/* Autofill Settings */}
+ {/* Auto-lock Settings */}
<button
- onClick={navigateToAutofillSettings}
+ onClick={navigateToAutoLockSettings}
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
>
<div className="flex items-center">
@@ -293,10 +292,10 @@ const Settings: React.FC = () => {
<path
strokeLinecap="round"
strokeLinejoin="round"
- d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"
/>
</svg>
- <span className="text-gray-900 dark:text-white">{t('settings.autofillSettings')}</span>
+ <span className="text-gray-900 dark:text-white">{t('settings.autoLockTimeout')}</span>
</div>
<svg
className="w-4 h-4 text-gray-400"
@@ -309,9 +308,9 @@ const Settings: React.FC = () => {
</svg>
</button>
- {/* Passkey Settings */}
+ {/* Autofill Settings */}
<button
- onClick={navigateToPasskeySettings}
+ onClick={navigateToAutofillSettings}
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
>
<div className="flex items-center">
@@ -325,10 +324,10 @@ const Settings: React.FC = () => {
<path
strokeLinecap="round"
strokeLinejoin="round"
- d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"
+ d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
/>
</svg>
- <span className="text-gray-900 dark:text-white">{t('settings.passkeySettings')}</span>
+ <span className="text-gray-900 dark:text-white">{t('settings.autofillSettings')}</span>
</div>
<svg
className="w-4 h-4 text-gray-400"
@@ -341,9 +340,9 @@ const Settings: React.FC = () => {
</svg>
</button>
- {/* Context Menu Settings */}
+ {/* Passkey Settings */}
<button
- onClick={navigateToContextMenuSettings}
+ onClick={navigateToPasskeySettings}
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
>
<div className="flex items-center">
@@ -357,10 +356,10 @@ const Settings: React.FC = () => {
<path
strokeLinecap="round"
strokeLinejoin="round"
- d="M4 6h16M4 12h16m-7 6h7"
+ d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"
/>
</svg>
- <span className="text-gray-900 dark:text-white">{t('settings.contextMenuSettings')}</span>
+ <span className="text-gray-900 dark:text-white">{t('settings.passkeySettings')}</span>
</div>
<svg
className="w-4 h-4 text-gray-400"
@@ -372,10 +371,17 @@ const Settings: React.FC = () => {
<path strokeLinecap="round" strokeLinejoin="round" d="M9 5l7 7-7 7" />
</svg>
</button>
+ </div>
+ </div>
+ </section>
- {/* Auto-lock Settings */}
+ {/* Additional Settings Section */}
+ <section>
+ <div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
+ <div className="divide-y divide-gray-200 dark:divide-gray-700">
+ {/* Clipboard Settings */}
<button
- onClick={navigateToAutoLockSettings}
+ onClick={navigateToClipboardSettings}
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
>
<div className="flex items-center">
@@ -389,10 +395,10 @@ const Settings: React.FC = () => {
<path
strokeLinecap="round"
strokeLinejoin="round"
- d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"
+ d="M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"
/>
</svg>
- <span className="text-gray-900 dark:text-white">{t('settings.autoLockTimeout')}</span>
+ <span className="text-gray-900 dark:text-white">{t('settings.clipboardSettings')}</span>
</div>
<svg
className="w-4 h-4 text-gray-400"
@@ -405,9 +411,9 @@ const Settings: React.FC = () => {
</svg>
</button>
- {/* Clipboard Settings */}
+ {/* Context Menu Settings */}
<button
- onClick={navigateToClipboardSettings}
+ onClick={navigateToContextMenuSettings}
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
>
<div className="flex items-center">
@@ -421,10 +427,10 @@ const Settings: React.FC = () => {
<path
strokeLinecap="round"
strokeLinejoin="round"
- d="M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"
+ d="M4 6h16M4 12h16m-7 6h7"
/>
</svg>
- <span className="text-gray-900 dark:text-white">{t('settings.clipboardSettings')}</span>
+ <span className="text-gray-900 dark:text-white">{t('settings.contextMenuSettings')}</span>
</div>
<svg
className="w-4 h-4 text-gray-400"
diff --git a/apps/browser-extension/src/entrypoints/popup/pages/settings/VaultUnlockSettings.tsx b/apps/browser-extension/src/entrypoints/popup/pages/settings/VaultUnlockSettings.tsx
index 405e20662..da579f4f7 100644
--- a/apps/browser-extension/src/entrypoints/popup/pages/settings/VaultUnlockSettings.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/pages/settings/VaultUnlockSettings.tsx
@@ -292,7 +292,6 @@ const VaultUnlockSettings: React.FC = () => {
maxLength={8}
value={newPin}
onChange={(e) => setNewPin(e.target.value.replace(/\D/g, ''))}
- placeholder={t('settings.unlockMethod.pinPlaceholder')}
className="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-white text-center text-2xl tracking-widest"
autoFocus
/>
@@ -327,7 +326,6 @@ const VaultUnlockSettings: React.FC = () => {
maxLength={8}
value={confirmPin}
onChange={(e) => setConfirmPin(e.target.value.replace(/\D/g, ''))}
- placeholder={t('settings.unlockMethod.pinPlaceholder')}
className="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-white text-center text-2xl tracking-widest"
autoFocus
/>
diff --git a/apps/browser-extension/src/i18n/locales/en.json b/apps/browser-extension/src/i18n/locales/en.json
index 99cd5250d..caa8c6652 100644
--- a/apps/browser-extension/src/i18n/locales/en.json
+++ b/apps/browser-extension/src/i18n/locales/en.json
@@ -20,7 +20,6 @@
"unlockWithPin": "Unlock with PIN",
"enterPin": "Enter Your PIN",
"enterPinToUnlock": "Enter your PIN to unlock your vault",
- "pinPlaceholder": "••••",
"unlock": "Unlock",
"usePassword": "Use Password",
"useMasterPassword": "Use Master Password",
@@ -374,7 +373,6 @@
"enterNewPinDescription": "Enter a PIN code consisting of minimum 4 digits",
"confirmPin": "Confirm PIN",
"confirmPinDescription": "Enter your PIN again to confirm",
- "pinPlaceholder": "••••",
"invalidPinFormat": "Invalid PIN format",
"pinMismatch": "PINs do not match",
"incorrectPin": "Incorrect PIN. {{attemptsRemaining}} attempts remaining.",