From c1cd1e305009b045d13e623aeddffc8485df1c3e Mon Sep 17 00:00:00 2001 From: MiuMiuMiue Date: Wed, 13 Nov 2024 21:37:41 -0800 Subject: [PATCH 01/23] add loading icon while waiting execution data --- .../admin/execution/admin-execution.component.html | 11 ++++++++++- .../admin/execution/admin-execution.component.scss | 6 ++++++ .../admin/execution/admin-execution.component.ts | 3 +++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.scss diff --git a/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html index 115b5b339a2..27d1f474aa7 100644 --- a/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html +++ b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html @@ -10,7 +10,10 @@ + [nzData]="listOfExecutions" + [nzLoading]="isLoading" + [nzLoadingIndicator]="loadingTemplate" + [nzTemplateMode]="true"> + + +
+ +
+
\ No newline at end of file diff --git a/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.scss b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.scss new file mode 100644 index 00000000000..ce8063fdc2c --- /dev/null +++ b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.scss @@ -0,0 +1,6 @@ +.loading-container { + display: flex; + justify-content: center; + flex-direction: column; + height: 300px; +} \ No newline at end of file diff --git a/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.ts b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.ts index 84da3db9e4f..c041768249a 100644 --- a/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.ts +++ b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.ts @@ -12,6 +12,7 @@ import { environment } from "../../../../../environments/environment"; @UntilDestroy() @Component({ templateUrl: "./admin-execution.component.html", + styleUrls: ["./admin-execution.component.scss"], }) export class AdminExecutionComponent implements OnInit, OnDestroy { Executions: ReadonlyArray = []; @@ -19,6 +20,7 @@ export class AdminExecutionComponent implements OnInit, OnDestroy { listOfExecutions = [...this.Executions]; workflows: Array = []; executionMap: Map = new Map(); + isLoading: boolean = true; // Set up an interval to periodically fetch and update execution data. // This interval function fetches the latest execution list and checks for updates. @@ -75,6 +77,7 @@ export class AdminExecutionComponent implements OnInit, OnDestroy { this.listOfExecutions = []; this.reset(); this.workflowsCount = this.listOfExecutions.length; + this.isLoading = false; }); } From 095317de9d2a8dc42dd6db1ae40e1f99a6a9bc40 Mon Sep 17 00:00:00 2001 From: MiuMiuMiue Date: Fri, 15 Nov 2024 10:15:31 -0800 Subject: [PATCH 02/23] fix execution hyperlink --- .../component/admin/execution/admin-execution.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html index 27d1f474aa7..38090592cde 100644 --- a/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html +++ b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html @@ -63,7 +63,7 @@ From 702dcdb69bba588a4aab0b4d086bfbff085cdaf7 Mon Sep 17 00:00:00 2001 From: MiuMiuMiue Date: Fri, 15 Nov 2024 10:32:34 -0800 Subject: [PATCH 03/23] remove unnecessary workflow list --- .../execution/admin-execution.component.html | 2 +- .../execution/admin-execution.component.ts | 39 +------------------ 2 files changed, 2 insertions(+), 39 deletions(-) diff --git a/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html index 38090592cde..08bfd16e8a1 100644 --- a/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html +++ b/core/gui/src/app/dashboard/component/admin/execution/admin-execution.component.html @@ -129,7 +129,7 @@ nzType="redo">