Skip to content

Filter and sort Ready for review rows in the Console - #2322

Merged
JacobStephens2 merged 5 commits into
mainfrom
issue-2321
Nov 20, 2026
Merged

JacobStephens2 merged 5 commits into
mainfrom
issue-2321

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Console Inbox
  Machine and Repository scope
    Ready for review
      Show     All pull requests | Hide CI red or Merge conflict
      Sort     Most recent first | CI red or Merge conflict first

The Console keeps the chosen view in the URL and reapplies it when GitHub facts change. The sort preserves the relative order of matching rows and of other rows. A grouped pull request matches when any contributing Command reports CI red or a merge conflict.

Closes #2321

Evidence

Execution evidence

  • Before node --test --test-name-pattern 'Ready for review filters and stably sorts' console/tests/inbox.test.cjs failed with locator.textContent: Timeout 5000ms exceeded while looking for the Show control.
  • After The same command reported # pass 1, including live sorting, filtering and the empty state.
  • node --test --test-name-pattern 'Fleet Inbox polls' console/tests/fleet.test.cjs reported # pass 1, including a conflicting Fleet row under Machine and Repository selection.
  • The Standards review’s slow-gh reproduction failed with Console completed its startup GitHub read before the test fixture used a local stub. The same command then reported # pass 1.
  • On e360b845, scripts/affected-tests refs/remotes/origin/main passed the site suite, the build and all 269 Console browser tests. The three affected native Inbox tests also passed. The validation command used a PATH without the host's Muse installation after the unrelated Plan usage fixture detected it.
  • GitHub CI passed on e360b845, including all four Linux Rust partitions. I stopped the remaining local Rust run after those checks passed.
  • Test seams Console Inbox controls and rendered rows, including live refresh from kept GitHub facts and the Fleet Inbox response.
  • On d82f79a5, the grouped Fleet regression in console/tests/fleet-control.test.cjs passed with node --test --test-name-pattern 'Ready for review groups Fleet Commands' console/tests/fleet-control.test.cjs. On the 216b42e6 base binary, the same regression failed because PR Put in thirdshift configuration the prompt and skills so that users can tweak the format of those. #118 remained above the grouped PR User config, with merge.always and --no-merge #116 with a conflict.
  • Headless Chromium passed desktop and phone walkthroughs for contributing Commands, stable sorting, filtering and live updates, including the empty state and the idle notice. The site suite passed all 74 tests.

Visual evidence

Before — Ready for review Overview, desktop 1440×900

Before Ready for review Overview at desktop 1440×900

After — Ready for review Overview, desktop 1440×900

After Ready for review Overview at desktop 1440×900

After — Sort, filter and restore grouped pull requests, desktop 1440×900

after-console-desktop.5w8xag.mp4

Before — Ready for review Overview, phone 390×844

Before Ready for review Overview at phone 390×844

After — Ready for review Overview, phone 390×844

After Ready for review Overview at phone 390×844

After — Sort, filter and restore grouped pull requests, phone 390×844

after-console-phone.kbyBfN.mp4

Before — Home page Inbox filters, desktop 1440×900

Before Home page Inbox filters at desktop 1440×900

After — Home page Inbox filters, desktop 1440×900

After Home page Inbox filters at desktop 1440×900

Before — How it works, desktop 1440×900

Before How it works at desktop 1440×900

After — How it works, desktop 1440×900

After How it works at desktop 1440×900

Before — Architecture page Inbox rendering, desktop 1440×900

Before Architecture page Inbox rendering at desktop 1440×900

After — Architecture page Inbox rendering, desktop 1440×900

After Architecture page Inbox rendering at desktop 1440×900

Merge Danger

Door Two-way. The selection lives in the page URL.

Blast Radius Console Inbox.

Unaddressed findings

Standards

None. Fixed all three findings in 5be0f422.

Spec

None.

Security

None.

Both review axes covered all 14 changed files.

Built with codex codex-cli 0.167.2 · gpt-6.2-sol · xhigh

Security review outcome

No unaddressed introduced findings.

@JacobStephens2

Copy link
Copy Markdown
Owner Author

Delivery completed on agent-authored or reviewed head e360b84.

@JacobStephens2 JacobStephens2 added the in-progress A Claim: thirdshift has taken this issue label Nov 20, 2026
@JacobStephens2

Copy link
Copy Markdown
Owner Author

Review run. Pushed fixes to issue-2321 at 38a20e5. Spec axis used the linked closing issues.

Reviewed PR #2322 from ff56084a681638a68bf4fe6e45f6e6a3c336a86d through e360b845. Fixed both findings in commit 38a20e5e. The site and Console browser suites passed. The full Rust suite stopped on a reproducible Experiment test failure, and all four focused native Console tests passed.

Standards

Possible Primitive Obsession, fixed. The filter and template repeated the Ready for review section’s string identifier. The section now owns an is_ready_for_review() predicate used by the filter, template and idle notice. This follows the locality guidance referenced by CODING_STANDARDS.md. Section predicate · Standards report

Spec

The filter suppressed the Inbox’s idle notice, fixed. Closing issue #2321 specifies applying the controls to the Ready for review section after Fleet and Repository selection. When the filter hid every row, the separate idle notice also lost its link to waiting pull requests. The notice now retains that link for the selected Machine and Repository while the section and folder show zero visible rows. The review reproduced the failure before the fix and retained the browser assertion. Closing issue #2321 · Regression test · Spec report

Unaddressed findings

  • Standards — None.
  • Spec — None.

Review coverage

Each axis read all 14 changed files. Both reports include their complete files-read lists and supporting paths. There were zero unread changed files and zero generated-output exclusions. The summary JSON records one actionable finding per axis.

Validation

Command Result
timeout 30s gh pr view https://github.com/JacobStephens2/thirdshift/pull/2322 --json state --jq .state Exit 0. PR was OPEN immediately before final validation.
npm ci --prefix site and npm ci --prefix console Exit 0 each. Installed the locked browser-test dependencies.
cargo build --locked Exit 0 on the pinned head, on the fixed tree and inside the final selector.
node --test --test-name-pattern 'Ready for review filters and stably sorts' console/tests/inbox.test.cjs Exit 0. The retained regression passed on the fixed binary.
bash /home/jacob/.thirdshift/scratch/command-MQ3gxW/tmp/review-console-notice.ihMaWe before 0 Exit 0. Desktop and phone checks confirmed the idle link was absent with all rows filtered.
bash /home/jacob/.thirdshift/scratch/command-MQ3gxW/tmp/review-console-notice.ihMaWe after 1 Exit 0. Both viewports showed the idle link, zero visible rows and the filter-specific empty message.
git diff --check, git diff --cached --check, git diff --check ff56084a681638a68bf4fe6e45f6e6a3c336a86d...HEAD, and cargo fmt --all -- --check Exit 0 each.
scripts/affected-tests main Exit 1 because its Rust stage failed.
npm test --prefix site Exit 0. Manual generation check and all 74 site tests passed.
npm test --prefix console Exit 0. All 269 Console browser tests passed.
cargo nextest run Exit 100. Of 4,913 selected tests, 890 passed, one failed and 4,022 did not run after fail-fast. Nextest also reported 219 default skips.
cargo nextest run --test experiments -E 'test(=pairs::a_missing_other_arm_keeps_the_base_test_and_names_the_error)' Exit 100. The isolated run reproduced the same Option::unwrap() panic in Experiment pair accounting. Failing assertion

The reviewer’s exact pre-fix command exited 1 with 0 !== 1 at the idle-link assertion. The Spec report records the full command. Chromium setup also passed with exit 0 under this command.

node -e 'const { chromium } = require("./console/node_modules/playwright"); chromium.launch().then(browser => browser.close()).catch(error => { console.error(error); process.exitCode = 1; });'

The following command exited 0 with all four focused native Console tests passing.

cargo nextest run --test console -E 'test(=github::mergeability_changes_wake_ready_rows_independently_of_ci) | test(=github::ready_rows_show_current_ci_and_status_reuses_it) | test(=github::ready_rows_flag_stale_green_ci_with_a_first_parent_count) | test(=inbox::idle_inbox_surfaces_recorded_skip_reasons_and_waiting_work)'

Validation used a PATH without host-installed Harnesses, two Cargo build jobs and three Nextest workers. The Rust run resumed after generated artifacts were moved temporarily to free disk space. Validation logs

Standards 1 fixed — duplicated section identifier. Spec 1 fixed — idle notice lost its waiting pull requests.

Security

  • Security review on grok failed; see Session trace

CI passed or absent at 38a20e5

@JacobStephens2 JacobStephens2 added in-progress A Claim: thirdshift has taken this issue and removed in-progress A Claim: thirdshift has taken this issue labels Nov 20, 2026
# Conflicts:
#	site/architecture/index.html
#	src/console.rs
#	src/console/row.html
#	src/logs/status/inbox.rs
@JacobStephens2
JacobStephens2 marked this pull request as draft November 20, 2026 19:15
@JacobStephens2 JacobStephens2 removed the in-progress A Claim: thirdshift has taken this issue label Nov 20, 2026
@JacobStephens2
JacobStephens2 marked this pull request as ready for review November 20, 2026 19:23
@JacobStephens2
JacobStephens2 merged commit b005953 into main Nov 20, 2026
29 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-2321 branch November 20, 2026 19:23
@JacobStephens2 JacobStephens2 mentioned this pull request Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make a way to filter and sort the ready for review issues in the console overview

1 participant