new status view

This commit is contained in:
Arwid Thornström
2022-10-25 10:23:21 +02:00
parent bb15dae15b
commit 64df882357
4 changed files with 3586 additions and 3296 deletions
@@ -55,16 +55,16 @@ module.exports = {
const status = (status: string) => {
switch(status) {
case 'NO_STATUS':
return ` (❓) `;
return `(${chalk.red.bold('?')})`;
case 'UPDATE_FAILED':
case 'CREATE_FAILED':
return ` (💔) `;
return `(${chalk.red.bold('FAILED')})`;
case 'UPDATE_IN_PROGRESS':
case 'CREATE_IN_PROGRESS':
return ` (🟡) `;
return `(${chalk.yellow.bold('IN PROGRESS')})`;
case 'UPDATE_COMPLETE':
case 'CREATE_COMPLETE':
return ` (🟢) `;
return `(${chalk.greenBright('OK')})`;
}
}