Revert "feat(tui): overhaul latency sparkline scaling, color, and layout"

This reverts commit 63926e2932.
This commit is contained in:
2026-06-04 19:37:20 -04:00
parent 63926e2932
commit e53077fe70
8 changed files with 35 additions and 349 deletions
+1 -3
View File
@@ -47,8 +47,6 @@ func computeHistoryStats(changes []models.StateChange) historyStats {
return s
}
var stateChangeChars = []rune{'▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'}
func stateChangeSparkline(changes []models.StateChange, width int) string {
if len(changes) < 2 || width < 4 {
return ""
@@ -93,7 +91,7 @@ func stateChangeSparkline(changes []models.StateChange, width int) string {
if idx > 7 {
idx = 7
}
ch := string(stateChangeChars[idx])
ch := string(sparkChars[idx])
switch {
case v >= 3:
sb.WriteString(dangerStyle.Render(ch))