From 52bb12edaed0a02bf9b1f61d4fe279cc6f41a17c Mon Sep 17 00:00:00 2001 From: Lucio Lelii Date: Fri, 24 Apr 2026 12:18:48 +0200 Subject: [PATCH] Reposition task execution controls into graph action rail --- .../task-execution-viewer.css | 94 +++++++++++++++++++ .../task-execution-viewer.html | 88 ++++++++--------- 2 files changed, 138 insertions(+), 44 deletions(-) diff --git a/src/app/shared/task-execution-viewer/task-execution-viewer.css b/src/app/shared/task-execution-viewer/task-execution-viewer.css index bc924fe..55d66bb 100644 --- a/src/app/shared/task-execution-viewer/task-execution-viewer.css +++ b/src/app/shared/task-execution-viewer/task-execution-viewer.css @@ -3,6 +3,100 @@ height: 100%; } +.execution-header-main { + display: block; +} + +.execution-header-details { + min-width: 0; +} + +.execution-graph-body { + position: relative; +} + +.execution-graph-actions { + position: absolute; + top: 12px; + left: 12px; + z-index: 4; + display: inline-flex; + flex-direction: row; + gap: 8px; +} + +.execution-action-button { + display: inline-flex; + align-items: center; + justify-content: center; + width: 42px; + height: 42px; + border-radius: 12px; + border: 1px solid transparent; + font-size: 12px; + font-weight: 700; + line-height: 1; + padding: 0; + transition: filter 120ms ease, opacity 120ms ease, transform 120ms ease; + box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16); +} + +.execution-graph-action-button:hover:not(:disabled) { + transform: translateY(-1px); +} + +.execution-action-button mat-icon { + font-size: 20px; + width: 20px; + height: 20px; + line-height: 20px; +} + +.execution-action-button:disabled { + opacity: 0.4; + cursor: not-allowed; +} + +.execution-action-button-play { + background: #15803d; + border-color: #166534; + color: #ffffff; +} + +.execution-action-button-play:hover:not(:disabled) { + filter: brightness(1.1); +} + +.execution-action-button-stop { + background: #dc2626; + border-color: #b91c1c; + color: #ffffff; +} + +.execution-action-button-stop:hover:not(:disabled) { + filter: brightness(1.08); +} + +.execution-action-button-resume { + background: #4f46e5; + border-color: #4338ca; + color: #ffffff; +} + +.execution-action-button-resume:hover:not(:disabled) { + filter: brightness(1.1); +} + +.execution-action-button-simulate { + background: #0c4a6e; + border-color: #075985; + color: #e0f2fe; +} + +.execution-action-button-simulate:hover:not(:disabled) { + filter: brightness(1.1); +} + .execution-rete-readonly { pointer-events: auto; } diff --git a/src/app/shared/task-execution-viewer/task-execution-viewer.html b/src/app/shared/task-execution-viewer/task-execution-viewer.html index af2d899..a4c56c9 100644 --- a/src/app/shared/task-execution-viewer/task-execution-viewer.html +++ b/src/app/shared/task-execution-viewer/task-execution-viewer.html @@ -2,8 +2,8 @@ @if (execution()) {
-
-
+
+

{{ execution()!.name }}

Execution ID: {{ execution()!.id }}

@if (isSimulatedExecution()) { @@ -13,46 +13,6 @@ } }
-
- @if (execution()!.simulationAvailable === true) { - - } - - - -
@@ -90,9 +50,49 @@
}
-
+
Execution Graph (read-only)
-
+
+
+ + + + @if (execution()!.simulationAvailable === true) { + + } +