feat: update telemetry chart to use modern styling and animation for enhanced visual feedback

This commit is contained in:
2025-12-22 19:51:15 -05:00
parent 53d9b72d90
commit 45b7434a97

View File

@@ -210,31 +210,31 @@
<h3 class="text-2xl font-bold text-color-base mb-2">Live Telemetry</h3> <h3 class="text-2xl font-bold text-color-base mb-2">Live Telemetry</h3>
<p class="text-color-muted leading-relaxed mb-6">Monitor CPU, memory, network, and disk I/O with interactive charts. Track performance over hours, days, weeks, or months.</p> <p class="text-color-muted leading-relaxed mb-6">Monitor CPU, memory, network, and disk I/O with interactive charts. Track performance over hours, days, weeks, or months.</p>
<!-- Mock Chart - Animated --> <!-- Mock Chart - Animated -->
<div class="h-24 flex items-end gap-1 p-4 bg-background/50 rounded-xl telemetry-chart"> <div style="display: flex; align-items: flex-end; gap: 4px; padding: 16px; background: rgba(0,0,0,0.1); border-radius: 12px; height: 96px;">
<div class="telemetry-bar" style="animation-delay: 0s;"></div> <span class="chart-bar" style="--delay: 0s; --h1: 65%; --h2: 40%; --h3: 85%; --h4: 30%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.1s;"></div> <span class="chart-bar" style="--delay: 0.1s; --h1: 45%; --h2: 70%; --h3: 35%; --h4: 80%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.2s;"></div> <span class="chart-bar" style="--delay: 0.2s; --h1: 80%; --h2: 50%; --h3: 70%; --h4: 45%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.3s;"></div> <span class="chart-bar" style="--delay: 0.3s; --h1: 55%; --h2: 85%; --h3: 40%; --h4: 65%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.4s;"></div> <span class="chart-bar" style="--delay: 0.4s; --h1: 70%; --h2: 35%; --h3: 90%; --h4: 55%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.5s;"></div> <span class="chart-bar" style="--delay: 0.5s; --h1: 40%; --h2: 75%; --h3: 50%; --h4: 85%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.6s;"></div> <span class="chart-bar" style="--delay: 0.6s; --h1: 90%; --h2: 45%; --h3: 65%; --h4: 35%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.7s;"></div> <span class="chart-bar" style="--delay: 0.7s; --h1: 50%; --h2: 80%; --h3: 30%; --h4: 70%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.8s;"></div> <span class="chart-bar" style="--delay: 0.8s; --h1: 75%; --h2: 40%; --h3: 85%; --h4: 50%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.9s;"></div> <span class="chart-bar" style="--delay: 0.9s; --h1: 35%; --h2: 65%; --h3: 45%; --h4: 90%;"></span>
<div class="telemetry-bar" style="animation-delay: 1.0s;"></div> <span class="chart-bar" style="--delay: 1.0s; --h1: 85%; --h2: 55%; --h3: 75%; --h4: 40%;"></span>
<div class="telemetry-bar" style="animation-delay: 1.1s;"></div> <span class="chart-bar" style="--delay: 1.1s; --h1: 60%; --h2: 90%; --h3: 50%; --h4: 70%;"></span>
<div class="telemetry-bar" style="animation-delay: 1.2s;"></div> <span class="chart-bar" style="--delay: 0.15s; --h1: 45%; --h2: 70%; --h3: 85%; --h4: 55%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.1s;"></div> <span class="chart-bar" style="--delay: 0.25s; --h1: 80%; --h2: 35%; --h3: 60%; --h4: 45%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.2s;"></div> <span class="chart-bar" style="--delay: 0.35s; --h1: 55%; --h2: 85%; --h3: 40%; --h4: 75%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.3s;"></div> <span class="chart-bar" style="--delay: 0.45s; --h1: 70%; --h2: 50%; --h3: 90%; --h4: 35%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.4s;"></div> <span class="chart-bar" style="--delay: 0.55s; --h1: 40%; --h2: 75%; --h3: 55%; --h4: 85%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.5s;"></div> <span class="chart-bar" style="--delay: 0.65s; --h1: 90%; --h2: 60%; --h3: 70%; --h4: 45%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.6s;"></div> <span class="chart-bar" style="--delay: 0.75s; --h1: 50%; --h2: 40%; --h3: 80%; --h4: 65%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.7s;"></div> <span class="chart-bar" style="--delay: 0.85s; --h1: 75%; --h2: 85%; --h3: 35%; --h4: 55%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.8s;"></div> <span class="chart-bar" style="--delay: 0.95s; --h1: 35%; --h2: 55%; --h3: 65%; --h4: 90%;"></span>
<div class="telemetry-bar" style="animation-delay: 0.9s;"></div> <span class="chart-bar" style="--delay: 1.05s; --h1: 85%; --h2: 45%; --h3: 50%; --h4: 40%;"></span>
<div class="telemetry-bar" style="animation-delay: 1.0s;"></div> <span class="chart-bar" style="--delay: 0.05s; --h1: 60%; --h2: 70%; --h3: 85%; --h4: 75%;"></span>
<div class="telemetry-bar" style="animation-delay: 1.1s;"></div> <span class="chart-bar" style="--delay: 0.12s; --h1: 45%; --h2: 90%; --h3: 40%; --h4: 60%;"></span>
</div> </div>
</div> </div>
</div> </div>
@@ -698,59 +698,21 @@
} }
/* Telemetry Chart Animation */ /* Telemetry Chart Animation */
.telemetry-chart { .chart-bar {
align-items: flex-end; display: block;
height: 96px;
position: relative;
}
.telemetry-bar {
flex: 1; flex: 1;
min-height: 20px; min-width: 8px;
background: linear-gradient(to top, var(--color-primary, #6366f1), rgba(99, 102, 241, 0.5)); background: linear-gradient(to top, #6366f1, rgba(99, 102, 241, 0.5));
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
animation: barPulse 1.5s ease-in-out infinite; animation: chartWave 2s ease-in-out infinite;
animation-delay: var(--delay, 0s);
} }
.telemetry-bar:nth-child(1) { animation-delay: 0s; }
.telemetry-bar:nth-child(2) { animation-delay: 0.1s; }
.telemetry-bar:nth-child(3) { animation-delay: 0.2s; }
.telemetry-bar:nth-child(4) { animation-delay: 0.3s; }
.telemetry-bar:nth-child(5) { animation-delay: 0.4s; }
.telemetry-bar:nth-child(6) { animation-delay: 0.5s; }
.telemetry-bar:nth-child(7) { animation-delay: 0.6s; }
.telemetry-bar:nth-child(8) { animation-delay: 0.7s; }
.telemetry-bar:nth-child(9) { animation-delay: 0.8s; }
.telemetry-bar:nth-child(10) { animation-delay: 0.9s; }
.telemetry-bar:nth-child(11) { animation-delay: 1.0s; }
.telemetry-bar:nth-child(12) { animation-delay: 1.1s; }
.telemetry-bar:nth-child(13) { animation-delay: 0.05s; }
.telemetry-bar:nth-child(14) { animation-delay: 0.15s; }
.telemetry-bar:nth-child(15) { animation-delay: 0.25s; }
.telemetry-bar:nth-child(16) { animation-delay: 0.35s; }
.telemetry-bar:nth-child(17) { animation-delay: 0.45s; }
.telemetry-bar:nth-child(18) { animation-delay: 0.55s; }
.telemetry-bar:nth-child(19) { animation-delay: 0.65s; }
.telemetry-bar:nth-child(20) { animation-delay: 0.75s; }
.telemetry-bar:nth-child(21) { animation-delay: 0.85s; }
.telemetry-bar:nth-child(22) { animation-delay: 0.95s; }
.telemetry-bar:nth-child(23) { animation-delay: 1.05s; }
.telemetry-bar:nth-child(24) { animation-delay: 1.15s; }
@keyframes barPulse { @keyframes chartWave {
0%, 100% { 0% { height: var(--h1, 60%); }
height: 56px; 25% { height: var(--h2, 40%); }
opacity: 1; 50% { height: var(--h3, 80%); }
} 75% { height: var(--h4, 50%); }
25% { 100% { height: var(--h1, 60%); }
height: 32px;
opacity: 0.8;
}
50% {
height: 72px;
opacity: 1;
}
75% {
height: 24px;
opacity: 0.7;
}
} }
</style> </style>