19462: Updating status colors
authorSarah Wait Zaranek <swz@curii.com>
Sun, 11 Dec 2022 16:03:57 +0000 (11:03 -0500)
committerSarah Wait Zaranek <swz@curii.com>
Sun, 11 Dec 2022 16:03:57 +0000 (11:03 -0500)
Arvados-DCO-1.1-Signed-off-by: Sarah Wait Zaranek <swz@curii.com>

src/common/custom-theme.ts
src/store/processes/process.ts

index fc89a4ae216b2790385570f293b74c9ebd3145ba..73ed8e0660ec6e2c11d6a728e76bece6ca961467 100644 (file)
@@ -23,13 +23,16 @@ export interface ArvadosTheme extends Theme {
 
 interface Colors {
     green700: string;
+    green800: string;
     yellow100: string;
     yellow700: string;
     yellow900: string;
     red100: string;
     red900: string;
     blue500: string;
+    blue700: string;
     grey500: string;
+    grey600: string;
     purple: string;
     orange: string;
 }
@@ -47,12 +50,14 @@ export const themeOptions: ArvadosThemeOptions = {
     customs: {
         colors: {
             green700: green["700"],
+            green800: green["800"],
             yellow100: yellow["100"],
             yellow700: yellow["700"],
             yellow900: yellow["900"],
             red100: red["100"],
             red900: red['900'],
             blue500: blue['500'],
+            blue700: blue['700'],
             grey500: grey500,
             purple: arvadosPurple,
             orange: '#f0ad4e',
@@ -185,4 +190,4 @@ export const themeOptions: ArvadosThemeOptions = {
     },
 };
 
-export const CustomTheme = createMuiTheme(themeOptions);
\ No newline at end of file
+export const CustomTheme = createMuiTheme(themeOptions);
index 19f30dd2b333d005096e7916faccb8f19e32f837..354d816b2f8ca7bd19c65c80634d82b8c4ab99bd 100644 (file)
@@ -76,18 +76,16 @@ export const getProcessRuntime = ({ container }: Process) => {
 export const getProcessStatusColor = (status: string, { customs }: ArvadosTheme) => {
     switch (status) {
         case ProcessStatus.RUNNING:
-            return customs.colors.blue500;
+            return customs.colors.green800;
         case ProcessStatus.COMPLETED:
-            return customs.colors.green700;
         case ProcessStatus.WARNING:
-            return customs.colors.yellow700;
+            return customs.colors.green800;
         case ProcessStatus.FAILING:
-            return customs.colors.orange;
         case ProcessStatus.CANCELLED:
         case ProcessStatus.FAILED:
             return customs.colors.red900;
         default:
-            return customs.colors.grey500;
+            return customs.colors.grey600;
     }
 };