perf(frontend): optimize initial bundle size with lazy-loaded dialogs and localized chart providers (#1110)

This commit is contained in:
brios
2026-05-18 23:05:10 +02:00
committed by GitHub
parent 4afc738dd4
commit c6cbdcfa11
32 changed files with 532 additions and 405 deletions
@@ -48,7 +48,7 @@ describe('MetadataProgressWidgetComponent', () => {
cancelTask: vi.fn(() => of({cancelled: true})),
};
dialogLauncherService = {
openMetadataReviewDialog: vi.fn(),
openMetadataReviewDialog: vi.fn(() => Promise.resolve(null)),
};
messageService = {
add: vi.fn(),
@@ -102,7 +102,7 @@ export class MetadataProgressWidgetComponent implements OnInit, OnDestroy {
}
reviewTask(taskId: string): void {
this.dialogLauncherService.openMetadataReviewDialog(taskId);
void this.dialogLauncherService.openMetadataReviewDialog(taskId).catch(() => undefined);
}
cancelTask(taskId: string): void {