1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 05:30:01 +00:00

feat(notification-processing): [PM-19877] System Notification Implementation - Initial changeset

This commit is contained in:
Patrick Pimentel
2025-07-16 15:01:24 -04:00
parent 70b65a20dd
commit ca43e923ce
34 changed files with 255 additions and 141 deletions

View File

@@ -205,7 +205,7 @@ import { SubjectMessageSender } from "@bitwarden/common/platform/messaging/inter
import { devFlagEnabled } from "@bitwarden/common/platform/misc/flags";
import { Account } from "@bitwarden/common/platform/models/domain/account";
import { GlobalState } from "@bitwarden/common/platform/models/domain/global-state";
import { NotificationsService } from "@bitwarden/common/platform/notifications";
import { ServerNotificationsService } from "@bitwarden/common/platform/notifications";
// eslint-disable-next-line no-restricted-imports -- Needed for service creation
import {
DefaultNotificationsService,
@@ -945,7 +945,7 @@ const safeProviders: SafeProvider[] = [
deps: [],
}),
safeProvider({
provide: NotificationsService,
provide: ServerNotificationsService,
useClass: devFlagEnabled("noopNotifications")
? NoopNotificationsService
: DefaultNotificationsService,
@@ -1552,7 +1552,7 @@ const safeProviders: SafeProvider[] = [
ApiServiceAbstraction,
OrganizationServiceAbstraction,
AuthServiceAbstraction,
NotificationsService,
ServerNotificationsService,
MessageListener,
],
}),
@@ -1562,7 +1562,7 @@ const safeProviders: SafeProvider[] = [
deps: [
StateProvider,
ApiServiceAbstraction,
NotificationsService,
ServerNotificationsService,
AuthServiceAbstraction,
LogService,
],