diff --git a/ui-ngx/src/app/core/services/ai-solutions.service.ts b/ui-ngx/src/app/core/services/ai-solutions.service.ts index 1c7a5a5bf8..a85ad83d0f 100644 --- a/ui-ngx/src/app/core/services/ai-solutions.service.ts +++ b/ui-ngx/src/app/core/services/ai-solutions.service.ts @@ -17,6 +17,9 @@ export class AiSolutionsService { private _loaded = signal(false); readonly loaded = this._loaded.asReadonly(); + private _running = signal>(new Set()); + readonly running = this._running.asReadonly(); + private api = inject(SolutionsCreatorService); private dialog = inject(DialogService); private translate = inject(TranslateService); @@ -33,6 +36,25 @@ export class AiSolutionsService { ); } + setRunning(solutionId: string | undefined, running: boolean): void { + if (!solutionId || this._running().has(solutionId) === running) { + return; + } + this._running.update(set => { + const next = new Set(set); + if (running) { + next.add(solutionId); + } else { + next.delete(solutionId); + } + return next; + }); + } + + isRunning(solutionId: string): boolean { + return this._running().has(solutionId); + } + find(solutionId: string | undefined): SolutionInfo | undefined { return solutionId ? this._solutions().find(solution => solution.id === solutionId) : undefined; } diff --git a/ui-ngx/src/app/modules/home/components/ai/solution/solution-chat.component.html b/ui-ngx/src/app/modules/home/components/ai/solution/solution-chat.component.html index 24f0d124eb..0c49096e0c 100644 --- a/ui-ngx/src/app/modules/home/components/ai/solution/solution-chat.component.html +++ b/ui-ngx/src/app/modules/home/components/ai/solution/solution-chat.component.html @@ -53,7 +53,30 @@ }

{{ 'solution-creator.limits' | translate }}

+ + +
+
+
+ {{ 'solution-creator.about-title' | translate }} + +
+
+ @for (feature of aboutFeatures; track feature.icon) { +
+ +
{{ feature.title | translate }}{{ feature.line | translate }}
+
+ } +
+
} @else if (creatorStep()) { @@ -119,6 +142,26 @@ {{ 'solution-creator.installed-already-note' | translate }} } + @if (creatorStep() === 'result' && issues().length) { +
+

{{ 'solution-creator.issues-lead' | translate: {count: issues().length} }}

+ +
+ + {{ 'solution-creator.issues-tip-lead' | translate }} {{ 'solution-creator.issues-tip' | translate }} +
+
+ } + @if (failure(); as message) { +
+ + {{ message }} +
+ } @if (work(); as current) { } @@ -152,7 +195,8 @@ @if (showPane() && paneOpen()) { -