From db58069a7782eb7325ba9dbf1b8e2f2bd6978e4c Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Fri, 6 Nov 2026 17:30:04 +0200 Subject: [PATCH] feat: the solution chat says what a solution is in a band over the hero's foot, shows a failed step or install in the chat instead of a toast, lists installed items that need a look, opens the pane when a step's result arrives or waits, shades the pane's head and foot over scrolled content, and marks a solution running in the chats list --- .../app/core/services/ai-solutions.service.ts | 22 ++ .../ai/solution/solution-chat.component.html | 48 +++- .../ai/solution/solution-chat.component.scss | 225 ++++++++++++++++++ .../ai/solution/solution-chat.component.ts | 95 +++++++- .../ai-assistant/ai-assistant.component.html | 2 + .../assets/locale/locale.constant-en_US.json | 13 + 6 files changed, 400 insertions(+), 5 deletions(-) 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} }}

+
    + @for (issue of issues().slice(0, 6); track $index) { +
  • {{ issue.name }} · {{ (issue.status === 'ERROR' ? 'solution-creator.pane.status-error' : 'solution-creator.pane.status-warn') | translate }}
  • + } +
+
+ + {{ '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()) { -