From 136705ac081684c993d3d32ad8da69920b7b72fe Mon Sep 17 00:00:00 2001 From: Jared Date: Wed, 28 Jan 2026 12:27:16 -0500 Subject: [PATCH] Refactor autofill policy naming and update related translations (#18628) - Renamed `activateAutofill` to `activateAutofillPolicy` in the policy order map and component. - Updated corresponding translation keys in `messages.json` for consistency. - Adjusted warning message in the `activate-autofill.component.html` to reflect the new naming convention. --- .../policies/pipes/policy-order.pipe.ts | 2 +- apps/web/src/locales/en/messages.json | 12 ++++++------ .../activate-autofill.component.html | 4 ++-- .../activate-autofill.component.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/web/src/app/admin-console/organizations/policies/pipes/policy-order.pipe.ts b/apps/web/src/app/admin-console/organizations/policies/pipes/policy-order.pipe.ts index ec9fef23b9d..02092f05b92 100644 --- a/apps/web/src/app/admin-console/organizations/policies/pipes/policy-order.pipe.ts +++ b/apps/web/src/app/admin-console/organizations/policies/pipes/policy-order.pipe.ts @@ -20,7 +20,7 @@ const POLICY_ORDER_MAP = new Map([ ["removeUnlockWithPinPolicyTitle", 10], ["passwordGenerator", 11], ["uriMatchDetectionPolicy", 12], - ["activateAutofill", 13], + ["activateAutofillPolicy", 13], ["sendOptions", 14], ["disableSend", 15], ["restrictedItemTypePolicy", 16], diff --git a/apps/web/src/locales/en/messages.json b/apps/web/src/locales/en/messages.json index 3ba1ffc910b..ecb5f8d2dfc 100644 --- a/apps/web/src/locales/en/messages.json +++ b/apps/web/src/locales/en/messages.json @@ -6937,17 +6937,17 @@ "personalVaultExportPolicyInEffect": { "message": "One or more organization policies prevents you from exporting your individual vault." }, - "activateAutofill": { - "message": "Activate auto-fill" + "activateAutofillPolicy": { + "message": "Activate autofill" }, "activateAutofillPolicyDescription": { "message": "Activate the autofill on page load setting on the browser extension for all existing and new members." }, - "experimentalFeature": { - "message": "Compromised or untrusted websites can exploit auto-fill on page load." + "autofillOnPageLoadExploitWarning": { + "message": "Compromised or untrusted websites can exploit autofill on page load." }, - "learnMoreAboutAutofill": { - "message": "Learn more about auto-fill" + "learnMoreAboutAutofillPolicy": { + "message": "Learn more about autofill" }, "selectType": { "message": "Select SSO type" diff --git a/bitwarden_license/bit-web/src/app/admin-console/policies/policy-edit-definitions/activate-autofill.component.html b/bitwarden_license/bit-web/src/app/admin-console/policies/policy-edit-definitions/activate-autofill.component.html index e2dbc8e8326..32ac2e229a9 100644 --- a/bitwarden_license/bit-web/src/app/admin-console/policies/policy-edit-definitions/activate-autofill.component.html +++ b/bitwarden_license/bit-web/src/app/admin-console/policies/policy-edit-definitions/activate-autofill.component.html @@ -1,11 +1,11 @@ - {{ "experimentalFeature" | i18n }} + {{ "autofillOnPageLoadExploitWarning" | i18n }} {{ "learnMoreAboutAutofill" | i18n }}{{ "learnMoreAboutAutofillPolicy" | i18n }} diff --git a/bitwarden_license/bit-web/src/app/admin-console/policies/policy-edit-definitions/activate-autofill.component.ts b/bitwarden_license/bit-web/src/app/admin-console/policies/policy-edit-definitions/activate-autofill.component.ts index 03eb189741c..984a3dc1aff 100644 --- a/bitwarden_license/bit-web/src/app/admin-console/policies/policy-edit-definitions/activate-autofill.component.ts +++ b/bitwarden_license/bit-web/src/app/admin-console/policies/policy-edit-definitions/activate-autofill.component.ts @@ -11,7 +11,7 @@ import { import { SharedModule } from "@bitwarden/web-vault/app/shared"; export class ActivateAutofillPolicy extends BasePolicyEditDefinition { - name = "activateAutofill"; + name = "activateAutofillPolicy"; description = "activateAutofillPolicyDescription"; type = PolicyType.ActivateAutofill; component = ActivateAutofillPolicyComponent;