This is an automated email from the ASF dual-hosted git repository.

wilfreds pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-web.git


The following commit(s) were added to refs/heads/master by this push:
     new e4e44c3  [YUNIKORN-2047] Update app state colours (#141)
e4e44c3 is described below

commit e4e44c3cdbe6e80a61faa9dacfca40d4b284e3a0
Author: JiaChi Wang <[email protected]>
AuthorDate: Mon Oct 30 12:10:51 2023 +1100

    [YUNIKORN-2047] Update app state colours (#141)
    
    Update the colours used in the donut for application states. Align
    colours used with the bar chart for node usage. Give every state its own
    colour.
    
    Closes: #141
    
    Signed-off-by: Wilfred Spiegelenburg <[email protected]>
---
 src/app/components/dashboard/dashboard.component.ts | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/app/components/dashboard/dashboard.component.ts 
b/src/app/components/dashboard/dashboard.component.ts
index e633659..233eab0 100644
--- a/src/app/components/dashboard/dashboard.component.ts
+++ b/src/app/components/dashboard/dashboard.component.ts
@@ -149,16 +149,16 @@ export class DashboardComponent implements OnInit {
   updateAppStatusData(applications: Applications) {
     this.appStatusData = []
     if (applications.New) this.appStatusData.push(new ChartDataItem('New', 
applications.New, '#facc54'))
-    if (applications.Accepted) this.appStatusData.push(new 
ChartDataItem('Accepted', applications.Accepted, '#facc54'))
+    if (applications.Accepted) this.appStatusData.push(new 
ChartDataItem('Accepted', applications.Accepted, '#f4b400'))
     if (applications.Starting) this.appStatusData.push(new 
ChartDataItem('Starting', applications.Starting, '#26bbf0'))
-    if (applications.Running) this.appStatusData.push(new 
ChartDataItem('Running', applications.Running, '#26bbf0'))
-    if (applications.Rejected) this.appStatusData.push(new 
ChartDataItem('Rejected', applications.Rejected, '#cc6164'))
+    if (applications.Running) this.appStatusData.push(new 
ChartDataItem('Running', applications.Running, '#4285f4'))
     if (applications.Completing) this.appStatusData.push(new 
ChartDataItem('Completing', applications.Completing, '#60cea5'))
-    if (applications.Completed) this.appStatusData.push(new 
ChartDataItem('Completed', applications.Completed, '#60cea5'))
+    if (applications.Completed) this.appStatusData.push(new 
ChartDataItem('Completed', applications.Completed, '#0f9d58'))
+    if (applications.Rejected) this.appStatusData.push(new 
ChartDataItem('Rejected', applications.Rejected, '#ff6d00'))
     if (applications.Failing) this.appStatusData.push(new 
ChartDataItem('Failing', applications.Failing, '#cc6164'))
-    if (applications.Failed) this.appStatusData.push(new 
ChartDataItem('Failed', applications.Failed, '#cc6164'))
-    if (applications.Expired) this.appStatusData.push(new 
ChartDataItem('Expired', applications.Expired, '#cc6164'))
-    if (applications.Resuming) this.appStatusData.push(new 
ChartDataItem('Resuming', applications.Resuming, '#facc54'))
+    if (applications.Failed) this.appStatusData.push(new 
ChartDataItem('Failed', applications.Failed, '#db4437'))
+    if (applications.Expired) this.appStatusData.push(new 
ChartDataItem('Expired', applications.Expired, '#3949ab'))
+    if (applications.Resuming) this.appStatusData.push(new 
ChartDataItem('Resuming', applications.Resuming, '#694cb5'))
   }
 
   updateContainerStatusData(info: Partition) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to