You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
on the console web ui at /?section=overview, have this section listing hosts folded closed on page load, allowing the user to toggle the view to unfold it open to read it #2299
I don't read this list a lot - I usually scroll down to see specifically what is needs you, working, landing (those my top most viewed), then ready for review
Fold the hosts list on the Console Inbox (/?section=overview) closed on every page load, with a toggle that unfolds it to read, so Needs you, Working, Landing and Ready for review are visible without scrolling past a list the reporter rarely reads.
Diagnosis (confirmed from code)
The section listing hosts is the Fleet machines list rendered unconditionally expanded at src/console/inbox.html: <ul class="fleet-machines" aria-label="Fleet machines"> with one <li> per machine (name · reachability · age · N active [· error]), built by FleetInbox::merge in src/console/fleet_inbox.rs. It always contains at least the local machine and grows with the Fleet, sitting above the folder nav and every Inbox section on Overview.
The exact requested pattern already exists twice on the same page: Last recorded skipped Passes / Last fired Passes are plain <details id="idle-passes"> / <details id="pass-starts"> with no open attribute at src/console/inbox.html, documented in console/README.md as 'both folded closed on each page load. Open either to read it; live updates keep it open while you read.'
Live updates preserve a disclosure's state automatically: morph() in src/console/assets/console.js refuses open attribute updates on details during Idiomorph refreshes. Native <details>/<summary> also gives keyboard toggling and no-JavaScript operation for free.
What to change
In src/console/inbox.html, wrap the existing fleet-machines<ul> in a <details> with noopen attribute, with a <summary> labelled e.g. Fleet machines <span class="count">{{ machines.len() }}</span>. Keep the <ul class="fleet-machines">, its aria-label, and every <li>'s content, data-reachability and links unchanged. Apply it wherever this element renders (it is the same element in every Inbox folder, not only Overview).
Do not route this through src/console/assets/folds.js / data-group: that module persists a browser's open choice across reloads, which would contradict 'folded closed on page load'. The idle-passes precedent — closed on each load, live updates keep the reader's current state — is the required semantics.
Adjust CSS only if needed for the new <summary>/<details> wrapper to keep the current full-width grid placement (.fleet-machines rule at src/console/assets/console.css); no layout or Theme behaviour changes.
Update the documented behaviour in console/README.md to state the Fleet machines list starts folded closed on each page load and opens on toggle, alongside the existing skipped-Passes wording.
Acceptance criteria
On /?section=overview (and other Inbox folders), the Fleet machines list is folded on first load and on reload; only its summary/count is visible, so Needs you is no longer pushed down by the hosts list.
Clicking the summary, or focusing it and pressing Enter/Space, unfolds the unchanged per-machine lines (name link, reachability, age, active count, error); toggling again folds it. Works without JavaScript and on a 390px phone in every Theme.
A live /events refresh while open keeps it open (and while closed keeps it closed); machine rows still update live inside it.
Existing Fleet behaviour is otherwise unchanged: bad/slow machines still appear with their reachability and error text once opened.
Tests
Update console/tests/fleet.test.cjs, which locates .fleet-machines li directly, to open the disclosure first; add assertions there (or in inbox tests, following the #idle-passes checks at console/tests/inbox.test.cjs) that the list starts closed, opens on summary toggle, and stays as left through a live update and a reload. Run cargo build --locked then the fleet/inbox Playwright tests per console/README.md, and scripts/affected-tests main before finishing.
Out of scope: reordering Inbox sections, persisting the open state across reloads, changing Fleet polling, machine filtering, or the per-machine line content.
Activity
JacobStephens2 commentedon Nov 19, 2026
Agent Brief
Fold the hosts list on the Console Inbox (
/?section=overview) closed on every page load, with a toggle that unfolds it to read, so Needs you, Working, Landing and Ready for review are visible without scrolling past a list the reporter rarely reads.Diagnosis (confirmed from code)
<ul class="fleet-machines" aria-label="Fleet machines">with one<li>per machine (name · reachability · age · N active [· error]), built byFleetInbox::mergein src/console/fleet_inbox.rs. It always contains at least the local machine and grows with the Fleet, sitting above the folder nav and every Inbox section on Overview.Last recorded skipped Passes/Last fired Passesare plain<details id="idle-passes">/<details id="pass-starts">with noopenattribute at src/console/inbox.html, documented in console/README.md as 'both folded closed on each page load. Open either to read it; live updates keep it open while you read.'morph()in src/console/assets/console.js refusesopenattribute updates ondetailsduring Idiomorph refreshes. Native<details>/<summary>also gives keyboard toggling and no-JavaScript operation for free.What to change
fleet-machines<ul>in a<details>with noopenattribute, with a<summary>labelled e.g.Fleet machines <span class="count">{{ machines.len() }}</span>. Keep the<ul class="fleet-machines">, itsaria-label, and every<li>'s content,data-reachabilityand links unchanged. Apply it wherever this element renders (it is the same element in every Inbox folder, not only Overview).src/console/assets/folds.js/data-group: that module persists a browser's open choice across reloads, which would contradict 'folded closed on page load'. Theidle-passesprecedent — closed on each load, live updates keep the reader's current state — is the required semantics.<summary>/<details>wrapper to keep the current full-width grid placement (.fleet-machinesrule at src/console/assets/console.css); no layout or Theme behaviour changes.Acceptance criteria
/?section=overview(and other Inbox folders), the Fleet machines list is folded on first load and on reload; only its summary/count is visible, so Needs you is no longer pushed down by the hosts list./eventsrefresh while open keeps it open (and while closed keeps it closed); machine rows still update live inside it.Tests
.fleet-machines lidirectly, to open the disclosure first; add assertions there (or in inbox tests, following the#idle-passeschecks at console/tests/inbox.test.cjs) that the list starts closed, opens on summary toggle, and stays as left through a live update and a reload. Runcargo build --lockedthen the fleet/inbox Playwright tests per console/README.md, andscripts/affected-tests mainbefore finishing.Fold the Inbox's Fleet machines list closed on each page load