Skip to content

On /?section=done I want to be able to filter my view to a particular repository #2217

Closed

Description

@JacobStephens2
Screenshot 2026-11-14 at 8 24 06 AM

Activity

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

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: enhancement

    Current behavior (confirmed on main)

    • 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)

    1. 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).
    2. 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).
    3. 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).
    4. 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.
    5. folder_url keeps repository when it is set, the way it keeps machine. The filter form keeps section and machine.
    6. Filter in the Console page only. Do not add a thirdshift status --repository option 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/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.

  3. added
    ready-for-human
    ready-for-agent
    in-progress
    and removed
    in-progress
    ready-for-human
    ready-for-agent
    on Nov 14, 2026
  4. removed
    in-progress
    on Nov 18, 2026
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