diff mbox series

[bug#72601] cuirass: Color the failures that are because of a dependency light red (differently from red)

Message ID 20240813081836.7C08A1120E5C@dd30410.kasserver.com
State New
Headers show
Series [bug#72601] cuirass: Color the failures that are because of a dependency light red (differently from red) | expand

Commit Message

Danny Milosavljevic Aug. 13, 2024, 8:18 a.m. UTC

Comments

Ludovic Courtès Aug. 20, 2024, 1:13 p.m. UTC | #1
Hi Danny,

"Danny Milosavljevic" <dannym@scratchpost.org> skribis:

>>From 2e1ddf5bc553ee2218489fd9ef2467bd1e5cf7c0 Mon Sep 17 00:00:00 2001
> Message-ID: <2e1ddf5bc553ee2218489fd9ef2467bd1e5cf7c0.1723458264.git.dannym@scratchpost.org>
> From: Danny Milosavljevic <dannym@scratchpost.org>
> Date: Mon, 12 Aug 2024 12:16:12 +0200
> Subject: [PATCH] js: Color failures where a dependency has failed already
>  light red.
>
> * src/static/js/cuirass.js (color): Modify.

Good idea.  Pushed, thanks!

Ludo’.
diff mbox series

Patch

From 2e1ddf5bc553ee2218489fd9ef2467bd1e5cf7c0 Mon Sep 17 00:00:00 2001
Message-ID: <2e1ddf5bc553ee2218489fd9ef2467bd1e5cf7c0.1723458264.git.dannym@scratchpost.org>
From: Danny Milosavljevic <dannym@scratchpost.org>
Date: Mon, 12 Aug 2024 12:16:12 +0200
Subject: [PATCH] js: Color failures where a dependency has failed already
 light red.

* src/static/js/cuirass.js (color): Modify.
---
 src/static/js/cuirass.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/static/js/cuirass.js b/src/static/js/cuirass.js
index 42f28f1..b09fab2 100644
--- a/src/static/js/cuirass.js
+++ b/src/static/js/cuirass.js
@@ -150,7 +150,9 @@  ready(() => {
                 case 0:
                     return '#9f9';	/* high contrast with others */
                 case 1:
-                case 2:
+                    return 'red';
+                case 2: // failed-dependency
+                    return 'lightcoral';
                 case 3:
                 case 4:
                     return 'red';

base-commit: 19c09d53395bf50810fce679e07187304b9f9a8c
-- 
2.45.2