mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
Remove pm-10609-end-user-notifications feature flag (#15958)
This commit is contained in:
@@ -68,7 +68,6 @@ import { isUrlInList } from "@bitwarden/common/autofill/utils";
|
|||||||
import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions/account/billing-account-profile-state.service";
|
import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions/account/billing-account-profile-state.service";
|
||||||
import { DefaultBillingAccountProfileStateService } from "@bitwarden/common/billing/services/account/billing-account-profile-state.service";
|
import { DefaultBillingAccountProfileStateService } from "@bitwarden/common/billing/services/account/billing-account-profile-state.service";
|
||||||
import { ClientType } from "@bitwarden/common/enums";
|
import { ClientType } from "@bitwarden/common/enums";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
|
||||||
import { ProcessReloadServiceAbstraction } from "@bitwarden/common/key-management/abstractions/process-reload.service";
|
import { ProcessReloadServiceAbstraction } from "@bitwarden/common/key-management/abstractions/process-reload.service";
|
||||||
import { CryptoFunctionService as CryptoFunctionServiceAbstraction } from "@bitwarden/common/key-management/crypto/abstractions/crypto-function.service";
|
import { CryptoFunctionService as CryptoFunctionServiceAbstraction } from "@bitwarden/common/key-management/crypto/abstractions/crypto-function.service";
|
||||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||||
@@ -1446,10 +1445,7 @@ export default class MainBackground {
|
|||||||
this.notificationsService.startListening();
|
this.notificationsService.startListening();
|
||||||
|
|
||||||
this.taskService.listenForTaskNotifications();
|
this.taskService.listenForTaskNotifications();
|
||||||
|
this.endUserNotificationService.listenForEndUserNotifications();
|
||||||
if (await this.configService.getFeatureFlag(FeatureFlag.EndUserNotifications)) {
|
|
||||||
this.endUserNotificationService.listenForEndUserNotifications();
|
|
||||||
}
|
|
||||||
resolve();
|
resolve();
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import { AccountService } from "@bitwarden/common/auth/abstractions/account.serv
|
|||||||
import { AutofillOverlayVisibility } from "@bitwarden/common/autofill/constants";
|
import { AutofillOverlayVisibility } from "@bitwarden/common/autofill/constants";
|
||||||
import { AutofillSettingsServiceAbstraction } from "@bitwarden/common/autofill/services/autofill-settings.service";
|
import { AutofillSettingsServiceAbstraction } from "@bitwarden/common/autofill/services/autofill-settings.service";
|
||||||
import { InlineMenuVisibilitySetting } from "@bitwarden/common/autofill/types";
|
import { InlineMenuVisibilitySetting } from "@bitwarden/common/autofill/types";
|
||||||
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
@@ -74,7 +73,6 @@ describe("AtRiskPasswordsComponent", () => {
|
|||||||
const mockAtRiskPasswordPageService = mock<AtRiskPasswordPageService>();
|
const mockAtRiskPasswordPageService = mock<AtRiskPasswordPageService>();
|
||||||
const mockChangeLoginPasswordService = mock<ChangeLoginPasswordService>();
|
const mockChangeLoginPasswordService = mock<ChangeLoginPasswordService>();
|
||||||
const mockDialogService = mock<DialogService>();
|
const mockDialogService = mock<DialogService>();
|
||||||
const mockConfigService = mock<ConfigService>();
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
mockTasks$ = new BehaviorSubject<SecurityTask[]>([
|
mockTasks$ = new BehaviorSubject<SecurityTask[]>([
|
||||||
@@ -113,7 +111,6 @@ describe("AtRiskPasswordsComponent", () => {
|
|||||||
setInlineMenuVisibility.mockClear();
|
setInlineMenuVisibility.mockClear();
|
||||||
mockToastService.showToast.mockClear();
|
mockToastService.showToast.mockClear();
|
||||||
mockDialogService.open.mockClear();
|
mockDialogService.open.mockClear();
|
||||||
mockConfigService.getFeatureFlag.mockClear();
|
|
||||||
mockAtRiskPasswordPageService.isCalloutDismissed.mockReturnValue(calloutDismissed$);
|
mockAtRiskPasswordPageService.isCalloutDismissed.mockReturnValue(calloutDismissed$);
|
||||||
|
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
@@ -155,7 +152,6 @@ describe("AtRiskPasswordsComponent", () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ provide: ToastService, useValue: mockToastService },
|
{ provide: ToastService, useValue: mockToastService },
|
||||||
{ provide: ConfigService, useValue: mockConfigService },
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
.overrideModule(JslibModule, {
|
.overrideModule(JslibModule, {
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ import {
|
|||||||
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
||||||
import { AutofillOverlayVisibility } from "@bitwarden/common/autofill/constants";
|
import { AutofillOverlayVisibility } from "@bitwarden/common/autofill/constants";
|
||||||
import { AutofillSettingsServiceAbstraction } from "@bitwarden/common/autofill/services/autofill-settings.service";
|
import { AutofillSettingsServiceAbstraction } from "@bitwarden/common/autofill/services/autofill-settings.service";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
|
||||||
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
@@ -96,7 +94,6 @@ export class AtRiskPasswordsComponent implements OnInit {
|
|||||||
private platformUtilsService = inject(PlatformUtilsService);
|
private platformUtilsService = inject(PlatformUtilsService);
|
||||||
private dialogService = inject(DialogService);
|
private dialogService = inject(DialogService);
|
||||||
private endUserNotificationService = inject(EndUserNotificationService);
|
private endUserNotificationService = inject(EndUserNotificationService);
|
||||||
private configService = inject(ConfigService);
|
|
||||||
private destroyRef = inject(DestroyRef);
|
private destroyRef = inject(DestroyRef);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -201,9 +198,7 @@ export class AtRiskPasswordsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (await this.configService.getFeatureFlag(FeatureFlag.EndUserNotifications)) {
|
this.markTaskNotificationsAsRead();
|
||||||
this.markTaskNotificationsAsRead();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private markTaskNotificationsAsRead() {
|
private markTaskNotificationsAsRead() {
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ export enum FeatureFlag {
|
|||||||
PM22134SdkCipherListView = "pm-22134-sdk-cipher-list-view",
|
PM22134SdkCipherListView = "pm-22134-sdk-cipher-list-view",
|
||||||
PM22136_SdkCipherEncryption = "pm-22136-sdk-cipher-encryption",
|
PM22136_SdkCipherEncryption = "pm-22136-sdk-cipher-encryption",
|
||||||
CipherKeyEncryption = "cipher-key-encryption",
|
CipherKeyEncryption = "cipher-key-encryption",
|
||||||
EndUserNotifications = "pm-10609-end-user-notifications",
|
|
||||||
RemoveCardItemTypePolicy = "pm-16442-remove-card-item-type-policy",
|
RemoveCardItemTypePolicy = "pm-16442-remove-card-item-type-policy",
|
||||||
PM19315EndUserActivationMvp = "pm-19315-end-user-activation-mvp",
|
PM19315EndUserActivationMvp = "pm-19315-end-user-activation-mvp",
|
||||||
|
|
||||||
@@ -95,7 +94,6 @@ export const DefaultFeatureFlagValue = {
|
|||||||
/* Vault */
|
/* Vault */
|
||||||
[FeatureFlag.PM8851_BrowserOnboardingNudge]: FALSE,
|
[FeatureFlag.PM8851_BrowserOnboardingNudge]: FALSE,
|
||||||
[FeatureFlag.CipherKeyEncryption]: FALSE,
|
[FeatureFlag.CipherKeyEncryption]: FALSE,
|
||||||
[FeatureFlag.EndUserNotifications]: FALSE,
|
|
||||||
[FeatureFlag.PM19941MigrateCipherDomainToSdk]: FALSE,
|
[FeatureFlag.PM19941MigrateCipherDomainToSdk]: FALSE,
|
||||||
[FeatureFlag.RemoveCardItemTypePolicy]: FALSE,
|
[FeatureFlag.RemoveCardItemTypePolicy]: FALSE,
|
||||||
[FeatureFlag.PM22134SdkCipherListView]: FALSE,
|
[FeatureFlag.PM22134SdkCipherListView]: FALSE,
|
||||||
|
|||||||
Reference in New Issue
Block a user