branch: main
commit 1a0ebbdcfe71faf4ef5a43402ebebf190c2caf93
Author: Ludovic Courtès <[email protected]>
AuthorDate: Sun Jan 5 22:14:45 2025 +0100

    templates: Show tooltips on pending builds chart.
    
    * src/cuirass/templates.scm (make-line-chart): Add #:tooltips? and honor
    it.
    (global-metrics-content): Pass #:tooltips? #t for pending builds.
---
 src/cuirass/templates.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index 6f3c2d1..ab86813 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -1887,6 +1887,7 @@ and BUILD-MAX are global minimal and maximal row 
identifiers."
                           #:key
                           (interpolation? #t)
                           (legend? #f)
+                          (tooltips? #f)
                           (time-x-axes? #f)
                           xaxes-labels
                           x-label
@@ -1929,7 +1930,7 @@ and BUILD-MAX are global minimal and maximal row 
identifiers."
                                                (data . ,dataset)))
                                            datasets labels colors)))))
                   (options . ((responsive . #t)
-                              (tooltips . ((enabled . #f)))
+                              (tooltips . ((enabled . ,tooltips?)))
                               (legend . ((display . ,legend?)))
                               (title . ((display . #f)
                                         (text . ,title)))
@@ -2109,6 +2110,7 @@ completed builds divided by the time required to build 
them.")
                          #:x-label "Day"
                          #:y-label "Builds"
                          #:title "Pending builds"
+                         #:tooltips? #t
                          #:legend? #t
                          #:labels (cons "Total" %cuirass-supported-systems)
                          #:colors (cons "#3e95cd"

Reply via email to