mirror of
https://github.com/stellarshenson/stellars-jupyterhub-ds.git
synced 2026-03-07 21:50:28 +00:00
fix: activity bar colors 1=red, 2-3=yellow, 4-5=green
This commit is contained in:
@@ -3,7 +3,7 @@ PROJECT_NAME="stellars-jupyterhub-ds"
|
||||
PROJECT_DESCRIPTION="Multi-user JupyterHub 4 deployment platform with data science stack, GPU auto-detection, NativeAuthenticator, and isolated per-user environments spawned via DockerSpawner"
|
||||
|
||||
# Version
|
||||
VERSION="3.7.14_cuda-13.0.2_jh-5.4.2"
|
||||
VERSION="3.7.13_cuda-13.0.2_jh-5.4.2"
|
||||
VERSION_COMMENT="Activity Monitor: admin page with 3-state status, activity scoring, reset functionality"
|
||||
RELEASE_TAG="RELEASE_3.2.11"
|
||||
RELEASE_DATE="2025-11-09"
|
||||
|
||||
@@ -358,14 +358,14 @@ require(["jquery"], function($) {
|
||||
var litSegments = Math.ceil(score / 20); // 0-20=1, 21-40=2, 41-60=3, 61-80=4, 81-100=5
|
||||
if (score === 0) litSegments = 0;
|
||||
|
||||
// Color based on score
|
||||
// Color based on lit segments: 1=red, 2-3=yellow, 4-5=green
|
||||
var segmentColor;
|
||||
if (litSegments >= 4) {
|
||||
segmentColor = '#28a745'; // Green - high activity
|
||||
segmentColor = '#28a745'; // Green - high activity (4-5)
|
||||
} else if (litSegments >= 2) {
|
||||
segmentColor = '#ffc107'; // Yellow - medium activity
|
||||
segmentColor = '#ffc107'; // Yellow - medium activity (2-3)
|
||||
} else {
|
||||
segmentColor = '#dc3545'; // Red - low activity
|
||||
segmentColor = '#dc3545'; // Red - low activity (1)
|
||||
}
|
||||
|
||||
// Thin continuous bar with dividers
|
||||
|
||||
Reference in New Issue
Block a user