@@ -119,10 +119,19 @@ local colors = common.colors;
119119 + standardOptions.withMappings([
120120 standardOptions.mapping.ValueMap.withType('value' )
121121 + standardOptions.mapping.ValueMap.withOptions({
122- '-1' : { index: 0 , color: 'purple' , text: 'Unknown' },
123- '0' : { index: 1 , color: colors.danger, text: 'Stopped' },
124- '1' : { index: 2 , color: colors.ok, text: 'Available' },
125- '2' : { index: 3 , color: colors.notice, text: 'Backing-up' },
122+ '-8' : { index: 0 , color: colors.info, text: 'Upgrading' },
123+ '-7' : { index: 1 , color: colors.danger, text: 'Storage-full' },
124+ '-6' : { index: 2 , color: colors.danger, text: 'Failed' },
125+ '-5' : { index: 3 , color: colors.warning, text: 'Rebooting' },
126+ '-4' : { index: 4 , color: colors.danger, text: 'Deleting' },
127+ '-3' : { index: 5 , color: colors.notice, text: 'Creating' },
128+ '-2' : { index: 6 , color: colors.notice, text: 'Stopping' },
129+ '-1' : { index: 7 , color: 'purple' , text: 'Unknown' },
130+ '0' : { index: 8 , color: colors.danger, text: 'Stopped' },
131+ '1' : { index: 9 , color: colors.ok, text: 'Available' },
132+ '2' : { index: 10 , color: colors.notice, text: 'Backing-up' },
133+ '3' : { index: 11 , color: colors.ok, text: 'Starting' },
134+ '4' : { index: 12 , color: colors.info, text: 'Modifying' },
126135 }),
127136 ]),
128137 },
@@ -386,13 +395,13 @@ local colors = common.colors;
386395 fieldOverride.byName.new('Replication slots' )
387396 + standardOptions.override.byType.withPropertiesFromOptions(
388397 color.withMode('fixed' )
389- + color.withFixedColor('blue' )
398+ + color.withFixedColor(colors.info )
390399 + custom.stacking.withMode('normal' )
391400 ),
392401 fieldOverride.byName.new('Other' )
393402 + standardOptions.override.byType.withPropertiesFromOptions(
394403 color.withMode('fixed' )
395- + color.withFixedColor('orange' )
404+ + color.withFixedColor(colors.warning )
396405 + custom.stacking.withMode('normal' )
397406 ),
398407 fieldOverride.byName.new('Used' )
@@ -455,12 +464,19 @@ local colors = common.colors;
455464 + standardOptions.withMappings([
456465 standardOptions.mapping.ValueMap.withType('value' )
457466 + standardOptions.mapping.ValueMap.withOptions({
458- '-2' : { index: -2 , color: colors.warning, text: 'Stopping' },
459- '-1' : { index: -1 , color: colors.notice, text: 'Unknown' },
460- '0' : { index: -1 , color: colors.warning, text: 'Stopped' },
461- '1' : { index: -1 , color: colors.ok, text: 'Available' },
462- '2' : { index: -1 , color: colors.notice, text: 'Backing-up' },
463- '3' : { index: -1 , color: colors.warning, text: 'Starting' },
467+ '-8' : { index: 0 , color: colors.info, text: 'Upgrading' },
468+ '-7' : { index: 1 , color: colors.danger, text: 'Storage-full' },
469+ '-6' : { index: 2 , color: colors.danger, text: 'Failed' },
470+ '-5' : { index: 3 , color: colors.warning, text: 'Rebooting' },
471+ '-4' : { index: 4 , color: colors.danger, text: 'Deleting' },
472+ '-3' : { index: 5 , color: colors.notice, text: 'Creating' },
473+ '-2' : { index: 6 , color: colors.notice, text: 'Stopping' },
474+ '-1' : { index: 7 , color: 'purple' , text: 'Unknown' },
475+ '0' : { index: 8 , color: colors.danger, text: 'Stopped' },
476+ '1' : { index: 9 , color: colors.ok, text: 'Available' },
477+ '2' : { index: 10 , color: colors.notice, text: 'Backing-up' },
478+ '3' : { index: 11 , color: colors.ok, text: 'Starting' },
479+ '4' : { index: 12 , color: colors.info, text: 'Modifying' },
464480 }),
465481 ])
466482 + standardOptions.withMin(null )
0 commit comments