Skip to content

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

Closed

Description

@JacobStephens2
Screenshot 2026-11-19 at 6 33 33 AM

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

Activity

  1. added
    enhancement
    needs-triage
    in-progress
    and removed
    needs-triage
    on Nov 19, 2026
  2. JacobStephens2 commented on Nov 19, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    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)

    • 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

    1. In src/console/inbox.html, wrap the existing fleet-machines <ul> in a <details> with no open 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).
    2. 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.
    3. 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.
    4. 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.
  3. added
    ready-for-agent
    in-progress
    and removed
    in-progress
    ready-for-agent
    on Nov 19, 2026
  4. removed
    in-progress
    on Nov 19, 2026
  5. added a commit that references this issue on Nov 21, 2026
    bd7cef0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions