From e2e2c293df1635909de4f309d4ba4abaf18185d3 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 31 Oct 2025 16:13:27 -0400 Subject: [PATCH] update dialog to accept NewApplicationDetail array - Import NewApplicationDetail type from risk-insights models - Update NewApplicationsDialogData interface to use NewApplicationDetail[] - Update component property newApplications to NewApplicationDetail[] - selectedApplications remains Set for application name tracking - Prepares dialog to receive enriched application data from orchestrator Part 3 of 5: Dialog TypeScript ready for enriched application data. --- .../activity/new-applications-dialog.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/activity/new-applications-dialog.component.ts b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/activity/new-applications-dialog.component.ts index 1e13015e24f..6f1e8d36b9a 100644 --- a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/activity/new-applications-dialog.component.ts +++ b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/activity/new-applications-dialog.component.ts @@ -4,6 +4,7 @@ import { firstValueFrom } from "rxjs"; import { AllActivitiesService, + NewApplicationDetail, RiskInsightsDataService, SecurityTasksApiService, } from "@bitwarden/bit-common/dirt/reports/risk-insights"; @@ -23,7 +24,7 @@ import { I18nPipe } from "@bitwarden/ui-common"; import { AssignTasksViewComponent } from "./assign-tasks-view.component"; export interface NewApplicationsDialogData { - newApplications: string[]; + newApplications: NewApplicationDetail[]; /** * Organization ID is passed via dialog data instead of being retrieved from route params. * This ensures organizationId is available immediately when the dialog opens, @@ -58,7 +59,7 @@ export type DialogView = (typeof DialogView)[keyof typeof DialogView]; ], }) export class NewApplicationsDialogComponent { - protected newApplications: string[] = []; + protected newApplications: NewApplicationDetail[] = []; protected selectedApplications: Set = new Set(); // View state management