1
0
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:
Alex
2025-10-21 11:02:44 -04:00
committed by GitHub
parent f1340c67da
commit a5dd42396c
6 changed files with 87 additions and 23 deletions

View File

@@ -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,
);