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 /?section=done I want to be able to filter my view to a particular repository #2217
The Console's Inbox sections (/?section=done and the others) can only be narrowed by Machine: the form at src/console/inbox.html:43 (class="machine-filter") holds a Machine select and a hidden section input, with nothing for repository.
History already has a Repository filter: the dropdown at src/console/inbox.html:32, filled from Archive.repositories and applied in archive_from_read (src/logs/status/inbox.rs:655-672, repository.is_empty() || repository == repo).
render_page (src/console.rs:~1505-1570) already reads repository from the URL for every page but passes it only to read.archive(...); the Inbox ignores it.
status::Row (src/logs/status/inbox.rs:35) carries no repository field; the repository is only in the rendered subject (repo#N or Kind on repo, see subject() near line 888). row() has facts.repository available.
InboxPage::folder_url (src/console.rs:1345) keeps machine in each section link but would drop repository.
Desired behavior
A viewer on any Inbox section (Done is the motivating case) can choose one repository and see only that repository's rows, keeping the section and Machine choice.
Decisions (made in triage; change only with good reason)
Add a Repository select beside the Machine select in the existing Inbox filter form, with an Every repository empty option, matching History's control and wording. URL parameter: repository=<owner/name> (same as History).
The filter applies to every Inbox section, as Machine does, not only Done. Section counts in the folder nav show the filtered rows. Leave the active-runs count unfiltered (it is defined in GLOSSARY.md Inbox as the machine's count).
The options are the distinct repositories among the Inbox rows shown for the current Machine choice, including Fleet rows merged by fleet_inbox::Fleet::merge. Compare names the way History does; use case-insensitive matching if Inbox code elsewhere does (eq_ignore_ascii_case is used for repo slugs in inbox.rs).
Give Row a repository, set from the record (facts.repository in row()). Fleet rows also need it: check that the remote status JSON already carries repository (the src/logs/status/inbox.rs tests around lines 1061-1140 show it does) and fill the field when deserializing or merging, rather than parsing it back out of subject.
folder_url keeps repository when it is set, the way it keeps machine. The filter form keeps section and machine.
/?section=done&repository=acme/widgets lists only acme/widgets rows in Done, and the Done count matches.
Section links and the Machine form keep the chosen repository; choosing Every repository clears it.
With machine=<peer>, the repository options and filtering also work on that peer's rows.
Without repository, the Inbox renders exactly as today.
A repository nobody uses shows empty sections (Nothing here. or the existing empty state), not an error.
Tests and docs
Add or extend a Console test under tests/console/ (see docs/code-navigation.md for the fake layout) that renders /?section=done&repository=... with rows from two repositories and asserts filtering, counts and preserved links. Add a unit test for row filtering if it lives in src/logs/status/inbox.rs.
Update docs/guide.md where the Console Inbox sections and Machine filter are described, then regenerate with npm run docs --prefix site and check with npm run docs:check --prefix site. Search site/index.html, site/how-it-works/ and site/architecture/ for Inbox filter wording and correct it if needed.
Final validation: scripts/affected-tests main.
ready-for-agent was recommended; ready-for-human is applied until the Day shift permits readiness.
Activity
JacobStephens2 commentedon Nov 14, 2026
Agent Brief
Category: enhancement
Current behavior (confirmed on main)
/?section=doneand the others) can only be narrowed by Machine: the form atsrc/console/inbox.html:43(class="machine-filter") holds a Machine select and a hiddensectioninput, with nothing for repository.src/console/inbox.html:32, filled fromArchive.repositoriesand applied inarchive_from_read(src/logs/status/inbox.rs:655-672,repository.is_empty() || repository == repo).render_page(src/console.rs:~1505-1570) already readsrepositoryfrom the URL for every page but passes it only toread.archive(...); the Inbox ignores it.status::Row(src/logs/status/inbox.rs:35) carries no repository field; the repository is only in the renderedsubject(repo#NorKind on repo, seesubject()near line 888).row()hasfacts.repositoryavailable.InboxPage::folder_url(src/console.rs:1345) keepsmachinein each section link but would droprepository.Desired behavior
A viewer on any Inbox section (Done is the motivating case) can choose one repository and see only that repository's rows, keeping the section and Machine choice.
Decisions (made in triage; change only with good reason)
Repositoryselect beside the Machine select in the existing Inbox filter form, with anEvery repositoryempty option, matching History's control and wording. URL parameter:repository=<owner/name>(same as History).fleet_inbox::Fleet::merge. Compare names the way History does; use case-insensitive matching if Inbox code elsewhere does (eq_ignore_ascii_caseis used for repo slugs in inbox.rs).Rowa repository, set from the record (facts.repositoryinrow()). Fleet rows also need it: check that the remote status JSON already carriesrepository(thesrc/logs/status/inbox.rstests around lines 1061-1140 show it does) and fill the field when deserializing or merging, rather than parsing it back out ofsubject.folder_urlkeepsrepositorywhen it is set, the way it keepsmachine. The filter form keepssectionandmachine.thirdshift status --repositoryoption here. History's filters already lack a CLI command (History filters (outcome, repository, Metrics failure drilldown) have no CLI twin #2084); mention this issue there if useful.Acceptance criteria
/?section=done&repository=acme/widgetslists only acme/widgets rows in Done, and the Done count matches.Every repositoryclears it.machine=<peer>, the repository options and filtering also work on that peer's rows.repository, the Inbox renders exactly as today.Nothing here.or the existing empty state), not an error.Tests and docs
tests/console/(seedocs/code-navigation.mdfor the fake layout) that renders/?section=done&repository=...with rows from two repositories and asserts filtering, counts and preserved links. Add a unit test for row filtering if it lives insrc/logs/status/inbox.rs.docs/guide.mdwhere the Console Inbox sections and Machine filter are described, then regenerate withnpm run docs --prefix siteand check withnpm run docs:check --prefix site. Searchsite/index.html,site/how-it-works/andsite/architecture/for Inbox filter wording and correct it if needed.scripts/affected-tests main.ready-for-agent was recommended; ready-for-human is applied until the Day shift permits readiness.
Filter Console Inbox sections by repository (JacobStephens2#2217)