Skip to content

refactor(ui): title/header/sort consistency + graduated right-sizing colors - #25

Merged
ErfanY merged 3 commits into
mainfrom
feat/title-harmony
Jun 25, 2026
Merged

refactor(ui): title/header/sort consistency + graduated right-sizing colors#25
ErfanY merged 3 commits into
mainfrom
feat/title-harmony

Conversation

@ErfanY

@ErfanY ErfanY commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

A UI consistency pass (mostly from close review), plus richer right-sizing coloring.

Naming convention harmony

  • Panel titles unified to [TAG] subject (count) · meta… · hints… — one · separator everywhere (no more | or (parenthetical, lists)), full-word uppercase tags ([PODS] [XRAY] [TRIAGE] [CONTEXTS] [LOGS] [DESCRIBE] …), counts in (n), esc close last.
  • Column headers — one casing rule across every table (main, pods, per-kind, triage, events pane, overlays, :dump): plain words → Title case (Namespace, Node, Ready, Restarts), acronyms → uppercase (CPU, MEM, IP), formulas as-is (%CPU/R). Fixed NODE, RST, the ALL-CAPS per-kind columns, the triage/events headers (CNTCount), and the lowercase dump export.
  • Sorts advances in left-to-right column order (Namespace→Name→Status→Age→Namespace) instead of jumping.

Graduated right-sizing colors

The %R/%L pod columns each used a single color. Now green→yellow→red:

Column green yellow red
%R (vs request) <100 ≥100 under-requested ≥200 severely under-requested
%L (vs limit) <75 ≥75 approaching ≥90 throttle/OOM risk

Testing

  • make validate green (108 tests + release build)
  • new tests: cycle-sort order; graduated pod_usage_cells thresholds; existing title/header tests updated

🤖 Generated with Claude Code

ErfanY and others added 3 commits June 26, 2026 00:23
Naming-convention consistency pass across the whole UI.

Panel/overlay titles → one convention: `[TAG] subject (count) · meta… · hints…`
- single `·` separator everywhere (drop `|` and `(parenthetical, lists)`)
- full-word uppercase tags: table uses the kind ([PODS]/[DEPLOYMENTS]/…), plus
  [DRILL] [XRAY] [TRIAGE] [TEXT] [CONTEXTS] [CONTAINERS] [SOURCES] [LOGS]
  [DESCRIBE]/[DECODE]/[EVENTS] [PULSE]
- counts in (n); meta as lowercase `key: value`; hints lowercase, `esc close` last
- dropped the now-unused `title` field from the Contexts/LogSources overlays

Column headers → one casing rule across every table (main, pods, per-kind,
triage, events pane, overlays, :dump export): plain words use Title case
(Namespace, Node, Ready, Restarts, Reason), acronyms stay uppercase (CPU, MEM,
IP), formula columns kept as-is (%CPU/R). Fixes NODE→Node, RST→Restarts, the
ALL-CAPS per-kind columns, the triage and events headers (CNT→Count), and the
lowercase dump export.

Sort: `s` now advances in left-to-right table-column order
(Namespace→Name→Status→Age→Namespace) instead of an arbitrary jump.

Tests updated for the new title/header strings; added a cycle_sort order test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The %R/%L pod columns each used a single color — %R only ever went yellow (never
red, even at 400% of request), and %L jumped straight to red at ≥90% with no
"approaching" warning. Make both a green→yellow→red gradient:

- %CPU/R, %MEM/R (vs request): ok <100 · yellow ≥100 (under-requested) ·
  red ≥200 (severely under-requested — QoS/scheduling risk)
- %CPU/L, %MEM/L (vs limit): ok <75 · yellow ≥75 (approaching) ·
  red ≥90 (throttle/OOM risk)

Test: pod_usage_cells severity thresholds for both columns.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Capture the decision to defer the low-%R (over-provisioned) coloring until we
track per-pod usage history (p95/max); a snapshot-based waste flag would
false-alarm on momentary idle dips.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ErfanY
ErfanY merged commit b4620a7 into main Jun 25, 2026
1 check passed
@ErfanY
ErfanY deleted the feat/title-harmony branch June 25, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant