improve(ui): redesign Gateway Host settings card with identity block and resource meters#102714
Merged
Merged
Conversation
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.infodata 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.infoevery 10s, so meters track live), and the card shrinks to roughly a third of its previous height. No behavior, config, or protocol changes.Before
After — host under pressure
After — healthy host
Full settings page context
Evidence
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.tson Blacksmith Testbox: 1 file, 20 tests passed.installMockGatewaywith a fixedsystem.infofixture) at both pressure profiles, dark mode.qs-system/qs-stat/qs-meterclasses on existing design tokens) and therenderSystemCardrenderer changed; no core, protocol, or config surface touched.