diff --git a/ui-ngx/src/app/modules/home/components/ai/ai-action-detail.component.html b/ui-ngx/src/app/modules/home/components/ai/ai-action-detail.component.html index 92b784a2e3..939c25ddff 100644 --- a/ui-ngx/src/app/modules/home/components/ai/ai-action-detail.component.html +++ b/ui-ngx/src/app/modules/home/components/ai/ai-action-detail.component.html @@ -52,25 +52,49 @@ } } @case ('values') { - @if (block.label) { + @if (block.entity) { +

{{ entityName(block.entity) }}

+ } @else if (block.label) {
{{ say(block.label) }}
} -
+
@for (row of block.rows; track $index) { - {{ row.key }}{{ row.value }} +
{{ row.key }}
+
{{ row.value }}
} -
+ } @case ('series') { -
- @for (row of block.rows; track row.key) { -
- {{ row.key }} - - {{ 'ai-assistant.detail.series' | translate:{points: row.points, min: number(row.min), max: number(row.max), last: number(row.last)} }} -
- } -
+ @if (block.entity) { +

{{ entityName(block.entity) }}

+ } + + + + + + + + + + + @for (row of block.rows; track row.key) { + + + + + + + } + +
{{ 'ai-assistant.detail.history-key' | translate }}{{ 'ai-assistant.detail.history-curve' | translate }}{{ 'ai-assistant.detail.history-last' | translate }}{{ 'ai-assistant.detail.history-range' | translate }}
{{ row.key }} + + {{ row.lastText ?? number(row.last) }}{{ row.changes !== undefined + ? ('ai-assistant.detail.history-changes' | translate: {count: row.changes}) + : ('ai-assistant.detail.history-span' | translate: {min: number(row.min), max: number(row.max)}) }}
} @case ('keys') { @if (block.label) { @@ -83,8 +107,43 @@ } @case ('facts') { + @if (changeRows(block.rows); as changes) { + @if (changes.length) { +
+ @for (change of changes; track $index) { +
+
{{ label(change) }}
+ @if (change.images; as pair) { +
+ @if (pair.current) { + + } @else { + + } + + {{ 'ai-assistant.review.changes-to' | translate }} + @if (pair.value) { + + } @else { + + } +
+ } @else { +
+ {{ change.was }} + + {{ 'ai-assistant.review.changes-to' | translate }} + {{ factValue(change) }} +
+ } +
+ } +
+ } + } + @if (plainRows(block.rows).length) {
- @for (fact of block.rows; track $index) { + @for (fact of plainRows(block.rows); track $index) {
{{ label(fact) }}
@if (fact.images; as pair) { @@ -121,6 +180,7 @@
}
+ } } @case ('list') { @if (block.label) { @@ -139,7 +199,7 @@ @if (block.title) {
{{ ('ai-assistant.action.' + block.title) | translate }}
} -
{{ block.text }}
+
{{ block.text }}
} @case ('links') {