1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-03 02:03:53 +00:00

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<string> for application name tracking
- Prepares dialog to receive enriched application data from orchestrator

Part 3 of 5: Dialog TypeScript ready for enriched application data.
This commit is contained in:
Alex
2025-10-31 16:13:27 -04:00
parent 4e5f2d4b8d
commit e2e2c293df

View File

@@ -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<string> = new Set<string>();
// View state management