From 295613e830b4f0e2a0c5e2c5d727ec980ebb4fe8 Mon Sep 17 00:00:00 2001 From: Velascat <32967198+Velascat@users.noreply.github.com> Date: Fri, 8 May 2026 14:15:22 -0400 Subject: [PATCH] =?UTF-8?q?style(watcher):=20reorder=20bottom=20sections?= =?UTF-8?q?=20=E2=80=94=20Rate=20=E2=86=92=20Gate=20=E2=86=92=20Resources?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Operator preference: caps/gate headers compact at top, full host-state detail anchored at the very bottom. --- .console/log.md | 3 +++ src/operator_console/watcher_status_pane.py | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.console/log.md b/.console/log.md index 25deb33..390a6b2 100644 --- a/.console/log.md +++ b/.console/log.md @@ -176,3 +176,6 @@ anchored. Default-open: System Resources only; Gate + Rate collapsed. - '1m / 5m / 15m' → '1 Min / 5 Min / 15 Min' (clearer time windows). - '(N cores)' → '(N Cores)' (title-case suffix). + +## 2026-05-08 — Reorder bottom sections: Rate → Gate → Resources + diff --git a/src/operator_console/watcher_status_pane.py b/src/operator_console/watcher_status_pane.py index 3baf202..37ab0d5 100644 --- a/src/operator_console/watcher_status_pane.py +++ b/src/operator_console/watcher_status_pane.py @@ -1130,7 +1130,12 @@ def _bottom_sections(data: dict, C: dict) -> list[dict]: ] sections.append({"id": "global_rate", "lines": gr_lines, "sel_local": -1}) - return sections + # Reorder: Rate → Gate → Resources (top-down). Resources is the + # always-open block and reads nicely as the final, full-detail anchor + # of the pane; Rate + Gate sit above as compact gate-state lines. + by_id = {s["id"]: s for s in sections} + return [by_id[k] for k in ("global_rate", "global_gate", "system_resources") + if k in by_id] _SIZE_MULT_MIN = 0.3