mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 18:53:29 +00:00
[PM-27024] password progress card at risk detection (#16955)
* [PM-27024] Fix password change progress card to track only critical apps and detect new at-risk passwords - Filter at-risk password count to critical applications only - Update state logic to transition back to assign tasks when new at-risk passwords detected - Only create security tasks for critical applications with at-risk passwords - Show 'X new passwords at-risk' message when tasks exist and new at-risk passwords appear * spec
This commit is contained in:
@@ -76,7 +76,9 @@ export class AllActivitiesService {
|
||||
}
|
||||
|
||||
setAllAppsReportDetails(applications: ApplicationHealthReportDetailEnriched[]) {
|
||||
const totalAtRiskPasswords = applications.reduce(
|
||||
// Only count at-risk passwords for CRITICAL applications
|
||||
const criticalApps = applications.filter((app) => app.isMarkedAsCritical);
|
||||
const totalAtRiskPasswords = criticalApps.reduce(
|
||||
(sum, app) => sum + app.atRiskPasswordCount,
|
||||
0,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user