Skip to content

improve(ui): redesign Gateway Host settings card with identity block and resource meters#102714

Merged
steipete merged 1 commit into
mainfrom
claude/settings-section-redesign-426405
Jul 9, 2026
Merged

improve(ui): redesign Gateway Host settings card with identity block and resource meters#102714
steipete merged 1 commit into
mainfrom
claude/settings-section-redesign-426405

Conversation

@steipete

@steipete steipete commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Gateway Host section in Settings rendered eight identical label/value rows (Host, Address, OS, Runtime, Uptime, CPU, Memory, Disk) — a full-width wall of table rows where every fact had equal visual weight. Resource pressure (the numbers an operator actually scans for) was buried in prose like "271 MB free of 32 GB" with no visual signal, and the card took more vertical space than any other card on the page.

Why This Change Was Made

Reshapes the card into two scannable groups: an identity block (machine name, OS · arch, Node · PID, LAN address as a mono chip) and per-resource stat tiles for CPU, Memory, and Disk. Each tile shows a big headline number (1-minute load, % used) over a usage meter that shifts tone at 75% (warn) and 92% (critical), with the exact free/total figures kept as the detail line. Uptime moved into a header badge ("Up 6d"). The same system.info data is shown — nothing was dropped: hostname and CPU model/load averages stay as tooltips, and the disk tile still hides when the gateway reports no disk info. Loading keeps placeholder tiles so the card doesn't jump when the first snapshot lands, and the unavailable-RPC path still hides the card entirely.

User Impact

Operators can read gateway health at a glance in Settings → General: three meters make CPU/memory/disk pressure visible immediately (the card polls system.info every 10s, so meters track live), and the card shrinks to roughly a third of its previous height. No behavior, config, or protocol changes.

Before

before

After — host under pressure

after busy

After — healthy host

after healthy

Full settings page context

after page

Evidence

  • Unit tests rewritten for the new structure and extended: identity block content, address chip, uptime badge, per-tile values/details/tooltips, meter aria-valuenow, tone escalation (ok → warn → critical), loading placeholders without meters, and the unchanged unavailable-RPC hide path. pnpm test ui/src/pages/config/quick.test.ts on Blacksmith Testbox: 1 file, 20 tests passed.
  • Screenshots above are deterministic captures from the Control UI e2e mock-gateway harness (installMockGateway with a fixed system.info fixture) at both pressure profiles, dark mode.
  • Only quick-settings CSS (new qs-system/qs-stat/qs-meter classes on existing design tokens) and the renderSystemCard renderer changed; no core, protocol, or config surface touched.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 9, 2026
@steipete
steipete merged commit 2806195 into main Jul 9, 2026
92 of 95 checks passed
@steipete
steipete deleted the claude/settings-section-redesign-426405 branch July 9, 2026 11:22
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant