Skip to content

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

Update default word count (#776)

Leendert de Borstdd9ed7e13972
diff --git a/apps/browser-extension/src/entrypoints/popup/components/Dialogs/PasswordConfigDialog.tsx b/apps/browser-extension/src/entrypoints/popup/components/Dialogs/PasswordConfigDialog.tsx
index 0bd5e4dd4..48de865bb 100644
--- a/apps/browser-extension/src/entrypoints/popup/components/Dialogs/PasswordConfigDialog.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/components/Dialogs/PasswordConfigDialog.tsx
@@ -15,7 +15,7 @@ import * as RustCore from '@/utils/RustCore';
/** Inclusive bounds for the Diceware word-count slider. */
const MIN_WORD_COUNT = 3;
const MAX_WORD_COUNT = 10;
-const DEFAULT_WORD_COUNT = 4;
+const DEFAULT_WORD_COUNT = 5;
const CAPITALIZATION_OPTIONS: DicewareCapitalization[] = ['Lowercase', 'TitleCase', 'Uppercase'];
const SEPARATOR_OPTIONS: DicewareSeparator[] = ['Dash', 'Space', 'Underscore', 'Dot', 'None'];
@@ -186,7 +186,7 @@ const PasswordConfigDialog: React.FC<IPasswordConfigDialogProps> = ({
key={mode}
type="button"
onClick={() => handleSettingChange('Type', mode)}
- className={`-mb-px flex-1 border-b-2 px-3 py-3 text-sm font-medium transition-colors ${
+ className={`-mb-px flex-1 border-b-2 px-3 py-4 text-sm font-medium transition-colors ${
isActive
? 'border-primary-600 text-primary-600 dark:border-primary-500 dark:text-primary-500'
: 'border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200'
diff --git a/apps/browser-extension/src/entrypoints/popup/components/Forms/PasswordField.tsx b/apps/browser-extension/src/entrypoints/popup/components/Forms/PasswordField.tsx
index 46e5d9708..51557f367 100644
--- a/apps/browser-extension/src/entrypoints/popup/components/Forms/PasswordField.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/components/Forms/PasswordField.tsx
@@ -10,7 +10,7 @@ import * as RustCore from '@/utils/RustCore';
const MIN_WORD_COUNT = 3;
const MAX_WORD_COUNT = 10;
-const DEFAULT_WORD_COUNT = 4;
+const DEFAULT_WORD_COUNT = 5;
interface IPasswordFieldProps {
id: string;
diff --git a/apps/browser-extension/src/utils/db/repositories/SettingsRepository.ts b/apps/browser-extension/src/utils/db/repositories/SettingsRepository.ts
index fa4471720..bcb623543 100644
--- a/apps/browser-extension/src/utils/db/repositories/SettingsRepository.ts
+++ b/apps/browser-extension/src/utils/db/repositories/SettingsRepository.ts
@@ -67,7 +67,7 @@ export class SettingsRepository extends BaseRepository {
UseSpecialChars: true,
UseNonAmbiguousChars: false,
Type: 'basic',
- WordCount: 4,
+ WordCount: 5,
Language: 'English',
Capitalization: 'Lowercase',
Separator: 'Dash',