From 07528a5bc376d797d7e1f420197577c301e45f41 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 31 Oct 2025 16:08:41 -0400 Subject: [PATCH] feat(risk-insights): add NewApplicationDetail type for dialog metrics - Add NewApplicationDetail type to report-models.ts - Include applicationName, atRiskPasswordCount, passwordCount, atRiskMemberCount - Type will be used by orchestrator to provide enriched new application data - Automatically exported via models index for use in dialog component Part 1 of 5: Define type structure for new applications dialog columns. --- .../reports/risk-insights/models/report-models.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/models/report-models.ts b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/models/report-models.ts index eecd8256c7f..32f1813f008 100644 --- a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/models/report-models.ts +++ b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/models/report-models.ts @@ -71,6 +71,17 @@ export type OrganizationReportApplication = { reviewedDate: Date | null; }; +/** + * Detailed information for a new (unreviewed) application. + * Used by the new applications dialog to display metrics per application. + */ +export type NewApplicationDetail = { + applicationName: string; + atRiskPasswordCount: number; + passwordCount: number; + atRiskMemberCount: number; +}; + /** * Report details for an application * uri. Has the at risk, password, and member information