From d545912b67c303cf538808f4d882d93999ee072e Mon Sep 17 00:00:00 2001 From: Colton Hurst Date: Tue, 15 Jul 2025 11:49:15 -0400 Subject: [PATCH] [PM-22783] Add Feature Flag, Settings Toggle, and Services for Autotype MVP (#15262) * [PM-22783] Add initial feature flag and settings toggle for autotype MVP * [PM-22783] Undo Cargo.lock changes * [PM-22783] Disable console.log block * [PM-22783] Lint fix * [PM-22783] Small updates * [PM-22783] Build fix * [PM-22783] Use combineLatest in updating the desktop autotype service * [PM-22783] Check if the user is on Windows * [PM-22783] Undo access selector html change, linting keeps removing this * [PM-22783] Fix failing test * [PM-22783] Update autotypeEnabled to be stored in service * [PM-22783] Add todo comments * [PM-22783] Add SlimConfigService and MainDesktopAutotypeService * [PM-22783] Small fixes --- .../src/app/accounts/settings.component.html | 16 +++++ .../app/accounts/settings.component.spec.ts | 4 ++ .../src/app/accounts/settings.component.ts | 19 +++++- apps/desktop/src/app/services/init.service.ts | 2 + .../src/app/services/services.module.ts | 17 ++++- .../main/main-desktop-autotype.service.ts | 27 ++++++++ .../services/desktop-autotype.service.ts | 47 +++++++++++++ apps/desktop/src/locales/en/messages.json | 6 ++ apps/desktop/src/main.ts | 13 ++++ .../platform/config/slim-config.service.ts | 66 +++++++++++++++++++ libs/common/src/enums/feature-flag.enum.ts | 2 + .../src/platform/state/state-definitions.ts | 2 + 12 files changed, 217 insertions(+), 4 deletions(-) create mode 100644 apps/desktop/src/autofill/main/main-desktop-autotype.service.ts create mode 100644 apps/desktop/src/autofill/services/desktop-autotype.service.ts create mode 100644 apps/desktop/src/platform/config/slim-config.service.ts diff --git a/apps/desktop/src/app/accounts/settings.component.html b/apps/desktop/src/app/accounts/settings.component.html index 29480519646..46cd323b071 100644 --- a/apps/desktop/src/app/accounts/settings.component.html +++ b/apps/desktop/src/app/accounts/settings.component.html @@ -489,6 +489,22 @@ "enableDuckDuckGoBrowserIntegrationDesc" | i18n }} +
+
+ +
+ {{ "important" | i18n }} {{ "enableAutotypeDescription" | i18n }} +