1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

[PM-26074] All Activities tab - Updated UI (#16587)

* PM-26074 simplified and update the all-activities tab

* PM-26074 removed learn more

* PM-26074 fixing missing line
This commit is contained in:
Vijay Oommen
2025-09-29 15:19:14 -05:00
committed by GitHub
parent e784622f67
commit 0bfc5daa7c
10 changed files with 168 additions and 42 deletions

View File

@@ -0,0 +1,44 @@
import { BehaviorSubject } from "rxjs";
import { OrganizationReportSummary } from "../models/report-models";
export class AllActivitiesService {
/// This class is used to manage the summary of all applications
/// and critical applications.
/// Going forward, this class can be simplified by using the RiskInsightsDataService
/// as it contains the application summary data.
private reportSummarySubject$ = new BehaviorSubject<OrganizationReportSummary>({
totalMemberCount: 0,
totalCriticalMemberCount: 0,
totalAtRiskMemberCount: 0,
totalCriticalAtRiskMemberCount: 0,
totalApplicationCount: 0,
totalCriticalApplicationCount: 0,
totalAtRiskApplicationCount: 0,
totalCriticalAtRiskApplicationCount: 0,
newApplications: [],
});
reportSummary$ = this.reportSummarySubject$.asObservable();
setCriticalAppsReportSummary(summary: OrganizationReportSummary) {
this.reportSummarySubject$.next({
...this.reportSummarySubject$.getValue(),
totalCriticalApplicationCount: summary.totalApplicationCount,
totalCriticalAtRiskApplicationCount: summary.totalAtRiskApplicationCount,
totalCriticalMemberCount: summary.totalMemberCount,
totalCriticalAtRiskMemberCount: summary.totalAtRiskMemberCount,
});
}
setAllAppsReportSummary(summary: OrganizationReportSummary) {
this.reportSummarySubject$.next({
...this.reportSummarySubject$.getValue(),
totalMemberCount: summary.totalMemberCount,
totalAtRiskMemberCount: summary.totalAtRiskMemberCount,
totalApplicationCount: summary.totalApplicationCount,
totalAtRiskApplicationCount: summary.totalAtRiskApplicationCount,
});
}
}

View File

@@ -5,3 +5,4 @@ export * from "./critical-apps-api.service";
export * from "./risk-insights-api.service";
export * from "./risk-insights-report.service";
export * from "./risk-insights-data.service";
export * from "./all-activities.service";