GeezerVison is showing github.com — fix(mobile): project filters list projects by latest user message by spiky02plateau · Pull Request #33910 · pingdotgg/t3code
Conversation
Problem
On the mobile home screen and the iPad sidebar, the project filter (the "All projects" picker) lists projects in store order.
The desktop sidebar's project filter follows the sidebar sort, which defaults to "Last user message".
With many projects, the project I just worked in can sit anywhere in the mobile list, so on a small screen I have to scroll the whole list to find it.
Mobile already has this order: the pull request list's project filter sorts projects by latest user message through useProjectsInSidebarOrder.
The home and sidebar filters build their scopes with buildHomeProjectScopes and never sort them.
Change
useProjectsInSidebarOrder moves out of PullRequestListFilters.tsx into features/home/useProjectsInSidebarOrder.ts, unchanged apart from a useMemo so its result stays referentially stable for the callers' memo dependencies.
HomeRouteScreen and ThreadNavigationSidebar pass their projects through it.
buildProjectGroups keeps input order, so the Android header menu, the iOS filter row (fed by HomeRouteScreen), and the sidebar filter all list projects by latest user message.
The sort is stable, so member order within a group, and with it each group's representative, is unchanged.
Out of scope: mobile has no persisted project sort setting, and the desktop setting is per device, so "Created at" and "Manual" from desktop do not carry over.
This matches the existing PR filter and new task picker, which both use latest user message.
Scope and approval
A small fix with no prior issue: two mobile filter lists skip an ordering that the third mobile filter list and the desktop sidebar already apply.
There is no new setting and no behavior change outside the order of the project filter.
Verification
- New test in
homeThreadList.test.ts: three projects whose latest user messages are on different days come out of buildHomeProjectScopes newest first once the projects are in sidebar order. Without the ordering it fails with expected [ 'alpha', 'beta', 'gamma' ] to deeply equal [ 'beta', 'gamma', 'alpha' ].
vp test run --project unit on features/home and features/pull-requests: 23 files, 139 tests pass.
effect-tsgo tsrs --noEmit in apps/mobile: exit 0. vp lint, vp fmt and knip:check pass in the pre-commit hook.
Not checked: I have no iOS simulator or Android emulator on this machine, so there are no before/after screenshots and no on-device run.
Written by claude-opus-5-5 in Claude Code (T3 Code).
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Needs Human Approval
Macroscope's review found this PR requires human approval — Mobile Home and thread-sidebar project filters now automatically list projects by latest user message, matching the existing pull-request filter ordering. This changes the default ordering for existing users and requires confirmation of that product choice.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The mobile app now uses a shared hook to order projects from home scopes in the home route, thread navigation sidebar, and pull request filters.
Changes: Mobile sidebar project ordering
| Layer / File(s) |
Summary |
Shared project ordering hook apps/mobile/src/features/home/useProjectsInSidebarOrder.ts |
The hook builds and sorts home scopes using projects, thread shells, and the selected grouping mode. It compares ordered groups by their environment and project IDs. |
Adopt shared ordering apps/mobile/src/features/home/HomeRouteScreen.tsx, apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx, apps/mobile/src/features/pull-requests/PullRequestListFilters.tsx |
The home route and thread navigation sidebar use the shared hook. Pull request filters replace their local ordering implementation with the same hook. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature
Possibly related PRs
- pingdotgg/t3code#32962: Its searchable picker sorts projects and preserves input order in a focused test. This PR defines the input order for the same mobile project filter.
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to 9cd67
-
The change reorders the project filters on the mobile home screen and iPad sidebar so they match the pull-request filter. No concrete defect was found. Whether the new order is wanted is a product decision for maintainers.
Pre-merge checks: 3 · 1
-
Failed checks: 1 inconclusive
| Check name |
Status |
Explanation |
Resolution |
| Description check |
 |
The description follows the repository template in substance. It has Problem, Change, Scope, and Verification sections with specific content. Gaps: the Scope section gives no linked issue and no maint… |
Add before/after screenshots (or a short recording) of the mobile home screen project filter and iPad sidebar filter, as the template requires for UI changes. Link the issue that shows the bug, or state a stronger reason for the missing iss… |
Passed checks: 3 passed
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: the mobile project filter now lists projects by latest user message. It uses the conventional commit form and matches the changeset, which moves the ordering into a sh… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the main change: the mobile project filter now lists projects by latest user message. It uses the conventional commit form and matches the changeset, which moves the ordering into a shared hook used by the home and sidebar filters.
Full details: Description check
-
Explanation
The description follows the repository template in substance. It has Problem, Change, Scope, and Verification sections with specific content. Gaps: the Scope section gives no linked issue and no maintainer request, and it offers a justification for skipping an issue but that justification is thin. The Verification section gives focused test results and states what was not checked. For UI changes, the template asks for before/after screenshots, and the author provides none. The author states this gap and gives a reason, but the template still asks for them.
Resolution
Add before/after screenshots (or a short recording) of the mobile home screen project filter and iPad sidebar filter, as the template requires for UI changes. Link the issue that shows the bug, or state a stronger reason for the missing issue, and link any maintainer request if one exists. The PR objectives also report that the reviewer disputes whether the base behavior is a bug; a clear bug reproduction would resolve that.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between d92a7fc and 9cd6720.
Files selected for processing: 1
-
apps/mobile/src/features/home/HomeRouteScreen.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…lter-order
# Conflicts:
# apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx
AI-assisted; verified with the tests and tools listed above.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The automated pipeline stopped on this pull request and will not merge it:
the proof was not accepted:
- The before is not shown to be a bug: base-home-final-b.png and base-ipad-b.png show a working, fully readable project filter listing Alpha, Beta, Gamma in project creation/store order. Nothing is clipped, overlapping or wrong, and no maintainer comment on fix(mobile): project filters list projects by latest user message #33910 calls this a bug. The only comment on ordering is Macroscope's 'Needs Human Approval', which calls the new default order a product choice that needs a maintainer's confirmation.
- The strongest bug argument, that the app contradicts itself because the mobile PR-list filter already uses latest-user-message order on main (useProjectsInSidebarOrder in PullRequestListFilters.tsx), exists only in the code. No capture shows the PR-list filter on base, and the capture step lists it as unverified.
- base-home-final.mp4 vs head-home-final.mp4: in the first frame the Beta thread row shows '6m' with no 'Done' badge on base but 'Done' on head. This is a data-state difference the fix does not touch, so the pair is not perfectly matched, though the filter menu itself is unaffected.
- The PR body also claims the iOS Home filter row (fed by HomeRouteScreen) changes order, but no iOS phone Home capture exists. Pinned-first grouping and archived-project exclusion were not exercised.
- I did not rebuild an 'after' capture myself: it needs a pool device lease, Metro and two servers, and the verdict rests on whether the before is a bug, which a rebuild would not change.
It stays open for a person to finish or close.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for this. Main has the change since #36433.
Main now lists mobile thread-list project filters by latest thread activity, with pinned projects first. I compared your full diff with the merge: both use sortHomeProjectScopes with updated_at and no pending tasks; main applies the ordering directly to the header, iOS pill, and tablet sidebar, while your PR extracts the existing PR-filter hook.
Closing as superseded.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|