Skip to content

[cueweb] Host and Allocation Management: Hosts monitor page (#2292)#2388

Closed
ttpss930141011 wants to merge 7 commits into
AcademySoftwareFoundation:masterfrom
ttpss930141011:dev-days/2292-hosts-monitor-page
Closed

[cueweb] Host and Allocation Management: Hosts monitor page (#2292)#2388
ttpss930141011 wants to merge 7 commits into
AcademySoftwareFoundation:masterfrom
ttpss930141011:dev-days/2292-hosts-monitor-page

Conversation

@ttpss930141011

Copy link
Copy Markdown
Contributor

Related Issues

Fixes #2292

This also unblocks the sibling Host & Allocation Management issues that need a host listing surface to build on: #2296 (host tag editor), #2293 (lock/unlock), #2294 (reboot), #2295 (host detail page).

Summarize your change.

Adds the /hosts route — a Monitor Hosts page for CueWeb, the web equivalent of CueGUI's CueCommander → Monitor Hosts. CueWeb previously had no hosts page (the sidebar /hosts link 404'd); this provides the basic sortable table the issue asks for.

What it does:

  • New /hosts page that loads hosts via the existing getHosts() proxy and auto-refreshes every 30s.
  • Sortable, filterable table with columns: Name, State, Locked, NIMBY, Cores (Idle/Total), Memory (Idle/Total), Free /mcp. Numeric columns sort by their underlying numeric value, not the formatted display string. State/Locked reuse the existing Status badge.
  • Loading (skeletons), empty ("No hosts registered"), and error (inline message + Retry) states.

Implementation notes:

  • Host type widened to include the fields the table needs (the REST gateway already returns them; memory/mcp arrive as KB-in-string, so there are small parse/format helpers with unit tests).
  • The shared SimpleDataTable (used by jobs/layers/frames) gains three backward-compatible optional props so a read-only table can reuse it: disableContextMenu (render no row context menu), filterPlaceholder, and emptyState. All default to the existing frames/layers behavior, so current call sites are unchanged — verified by the full existing test suite still passing (48/48).

Why idle/total (not used/total): the issue text says "used/total", but the backend and CueGUI's Monitor Hosts both expose idle vs total, so the columns show and are labeled "(Idle/Total)" to stay faithful to the data source.

Scope: read-only by design. Host actions (lock/unlock, tag edit, reboot, NIMBY toggle) and server-side filtering belong to the sibling issues and are intentionally out of scope here.

Testing: added Jest unit tests for the formatting/sort helpers; manually verified against the local sandbox (page loads the rqd hosts, sorting and filtering work, 30s refresh, and the existing jobs/layers/frames tables are unaffected by the SimpleDataTable change).

LLM usage disclosure

Claude (Opus) was used to help explore the existing CueWeb/CueGUI patterns, draft the implementation, and write the unit tests, with the changes reviewed and verified locally.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 3, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f58962ba-9226-439b-a57c-f91e18651850

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ramonfigueiredo

Copy link
Copy Markdown
Collaborator

Hi @ttpss930141011

Thanks for your contribution. I will review it soon. Please merge the master into your branch!

@ttpss930141011

Copy link
Copy Markdown
Contributor Author

Closing for now — doing a self-review on my own fork first, will reopen against upstream once verified.

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.

[cueweb] Host and Allocation Management: Hosts monitor page (basic table)

2 participants