Repository navigation
Fold the Inbox's Fleet machines list closed on each page load - #2305
Merged
Merged
Conversation
Wrap the per-machine list in a native details disclosure without open, like the skipped-Passes disclosures, so Needs you sits higher on Overview. Live updates keep the reader's open or closed state. Closes #2299
Check the slow-machine race before the fold interactions, name the folded list in the test title, reuse the summary and line locators, and check the opened list fits a long machine name on a phone.
The Fleet machines disclosure is also a details child of the Inbox and is never hidden, so the active-run test waits on details.group instead.
Merged
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.
Summary
The Inbox's per-machine list now starts folded on every page load, so Needs you, Working, Landing and Ready for review sit higher on Overview. It works like the existing Last recorded skipped Passes disclosure: a native
<details>with noopenattribute, kept out offolds.js, so no choice carries over to the next load.The wrapper appears in every Inbox folder. Live updates keep whatever state the reader left, because
morph()already refusesopenupdates ondetails. Machine lines still refresh inside it. CSS is unchanged:#inbox > *already placed the list in the content column.console/README.md,site/index.htmlandsite/how-it-works/index.htmlnow describe the fold.Evidence
Execution evidence
cd console && node --test --test-name-pattern="slow or old" tests/fleet.test.cjscargo build --locked && cd console && node --test tests/fleet.test.cjsscripts/affected-tests origin/mainon 9d00ae4:npm test --prefix site,cargo build --locked,npm test --prefix console. The Console run includes the inbox fix described under Review.cargo test(nextest is not installed here).cargo teststopped at its first failing binary,tests/scoring.rs, after unit tests and 84 binaries passed.packet_blinding_preserves_source_binary_files_and_symlinksasserts the copied executable keeps0o111and got0o110.TMPDIRhas a default ACL that drops "other" bits on copies:cpof a755file produced-rwxr-x---+.cargo test --no-fail-fastthen ran the 31 binaries that had been skipped. Thirty passed. The one failure wastests/trial.rsa_scoped_hog_leaves_journal_oom_evidence, which reads this host'sjournalctl --userfor anoom-killrecord.src/console/inbox.htmlor anything else changed here. CI should settle both.Visual evidence
These captures use faux
seed-home.cjsdata and the hostnameverify-host.Before — Console Inbox Overview, desktop 1440×900
After — Console Inbox Overview, desktop 1440×900 (on load)
After — Console Inbox Overview, desktop 1440×900 (summary clicked)
Before — Console Inbox Overview, mobile 390×844
After — Console Inbox Overview, mobile 390×844 (on load)
Review
Both the Standards and Spec reviewers read all five files in the reviewed commit, and there were no generated-output exclusions.
Changed file the review left unread:
console/tests/inbox.test.cjs, changed after the review in 9d00ae4. In the active-run test, the wait for "every section hidden" counted every#inbox > details, including the new, never-hidden Fleet machines disclosure. It now counts only#inbox > details.group:not([hidden]). That test failed in the Console browser suite before this fix and passes after it.CODING_STANDARDS.md"Deadlines in tests".Unaddressed findings
Standards: None. One partial adoption: finding 2 suggested splitting the fold checks into their own test or extending the name. I extended the name, because the fold checks need the same multi-machine Fleet fixture (
console/tests/fleet.test.cjs, second test).Spec: None.
Security: None. The change wraps the existing Fleet machines list in a static
<details>whose only new interpolation is the auto-escaped integermachines.len(). It adds no input, sink, route or script, and leaves the machine lines' escaping and links unchanged.Security review outcome
No unaddressed introduced findings.
Merge Danger
Door: two-way
Template and documentation only. Reverting the commit restores the always-expanded list.
Blast Radius: cosmetic
The Inbox's per-machine list needs one click to read. Nothing persists, and no API, CLI or Theme output changes. External browser automation that read
.fleet-machines lias visible would now see it hidden until the summary is opened.Closes #2299
Built with claude 2.1.322 · claude-opus-5-5 · high