perf(webui): load optional password generation on demand
This commit is contained in:
@@ -12,6 +12,13 @@ const settings = read("src/features/settings/SettingsPage.tsx");
|
||||
const retention = read("src/features/privacy/RetentionPolicyManagement.tsx");
|
||||
const confirmDialog = read("src/components/ConfirmDialog.tsx");
|
||||
const credentials = read("src/components/CredentialEnvelopeManager.tsx");
|
||||
const passwordField = read("src/components/PasswordField.tsx");
|
||||
assert.match(passwordField, /lazy\(\(\) => import\("\.\/PasswordGeneratorDialog"\)\)/,
|
||||
"ordinary password fields must not eagerly load optional generator controls or randomness helpers");
|
||||
assert.doesNotMatch(passwordField, /import PasswordGeneratorDialog from/,
|
||||
"the optional generator has no static import through the password field");
|
||||
assert.match(passwordField, /generatorOpen && canGenerate &&[\s\S]*<ModuleLoadBoundary[\s\S]*<PasswordGeneratorDialog/,
|
||||
"the generator is requested only when opened and permitted, with shared loading/error feedback");
|
||||
const iconRail = read("src/layout/IconRail.tsx");
|
||||
const moduleLoadBoundary = read("src/components/ModuleLoadBoundary.tsx");
|
||||
const moduleLoading = read("src/platform/modules.ts");
|
||||
|
||||
Reference in New Issue
Block a user