feat(web): option to show the Working section below pinned threads #48316
main fromrefs/pull/48316/head·opened View on GitHubProblem#
The Working section always sits at the bottom of the sidebar. On a long inbox, the threads that are actually running end up below the fold, so checking on them means scrolling past every finished thread.
Change#
Adds a client setting, Working section below pinned (Settings → General → Sidebar, off by default). When on, the Working section renders directly under pinned threads and above the active inbox. Snoozed and Settled stay at the bottom.
packages/contracts: newsidebarWorkingShelfAtTopclient setting (defaults tofalse, so nothing changes for existing users).Sidebar.tsx: places the Working marker and rows before the Active divider when the setting is on, and keeps keyboard order in sync. Bottom spacing moves to the first bottom shelf.Sidebar.logic.ts/Sidebar.drag.ts: drag targeting no longer assumes Working comes after Active. Working rows are skipped instead of ending the inbox order, the collision boundary uses the first shelf header below the divider, and the drag projection places Working where it is rendered.- Settings row, reset button, search entry, and translations for all web locales. The toggle is disabled while the Working section itself is off.
Mobile keeps its own shelf preferences and is unchanged. The boring sidebar has no Working section, so the setting has no effect there.
Scope#
Small opt-in sidebar ordering option. No issue filed.
Verification#
vp run check:changedon top of currentmain: format, lint, knip, typecheck, tests, and React Compiler all pass.- New unit test in
Sidebar.logic.test.tscovers drop targets when Working sits between Pinned and Active. Before this change the inbox order came back empty in that layout. Sidebar.browser.test.tsx(43 tests) passes.- Manual check in the web app with the Replay provider: toggled the setting, confirmed Working moves under Pinned while Settled stays pinned to the bottom, and that the Working shelf still collapses and expands.
| Before (default) | After (setting on) |
|---|---|
![]() | ![]() |
Setting:

Made with Claude Opus 5.5 in T3 Code (Claude Code harness).
- 1
tanstack-source added labelsfeature
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
Approvability#
Verdict: Approved at
8711a2bMacroscope's review found this PR approvable — Adds an optional placement for the Working section below pinned threads, with corresponding settings and drag-layout updates. Existing default placement is preserved, and the change has limited, reversible UI effects.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review.
Walkthrough
-
A new setting controls whether the Working shelf appears below pinned threads or after the active section. Sidebar rendering, drag-and-drop behavior, settings restore, search, and translations now account for the selected position.
Changes: Working shelf position
Layer / File(s) Summary Setting contract and controls
packages/contracts/src/settings.ts,apps/web/src/components/settings/SettingsPanels.tsx,apps/web/src/components/settings/settingsSearch.ts,apps/web/src/i18n/translations/*The settings schema adds sidebarWorkingShelfAtTop, defaulting to false. General settings exposes a resettable switch, restore behavior includes the option, and the setting is searchable and translated.Sidebar ordering and spacing
apps/web/src/components/Sidebar.tsxThe sidebar places Working threads and markers before or after active threads according to the setting. Shelf spacing changes with the selected position. Drag-and-drop behavior and coverage
apps/web/src/components/Sidebar.drag.ts,apps/web/src/components/Sidebar.logic.ts,apps/web/src/components/Sidebar.logic.test.tsCollision detection, sorting, and drop targeting account for the Working shelf’s position relative to the pinned divider. Tests cover drops and ordering in the alternate layout. Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Possibly related issues
- Issue 28117: The reported Working-to-Pinned drag path overlaps with this change. The PR covers behavior in the Working-below-Pinned layout, but does not establish that the reported drop is fixed in every layout.
Suggested reviewers:
juliusmarminge,saphid
Merge Risk:
Minimal · up to8711a-
This adds an opt-in sidebar setting that is off by default, so existing users see no change. No merge-blocking risk was found in the reviewed changes.
Pre-merge checks:
4-
Check name Status Explanation Title check The title "feat(web): option to show the Working section below pinned threads" matches the main change. The PR adds an opt-in setting that moves the Working shelf below pinned threads, and the summary… Description check The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and it uses the conventional commit style in plain language. The Problem and Change sections … 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 "feat(web): option to show the Working section below pinned threads" matches the main change. The PR adds an opt-in setting that moves the Working shelf below pinned threads, and the summary and file changes confirm this. The title is concise, specific, and uses a conventional commit prefix.
Full details: Description check
-
Explanation
The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and it uses the conventional commit style in plain language. The Problem and Change sections explain the motivation and the modified components. Verification lists specific checks, observed results, and before/after screenshots. The template asks for a linked issue or a reason for having none, and the author gave a reason ("No issue filed" with a small opt-in scope). The description does not say whether a maintainer requested the PR. It also does not name the agent model in the template's required format, though it does say "Made with Claude Opus 5.5 in T3 Code (Claude Code harness)." These are minor gaps. The Scope section also says the change is a feature, while the template says the repository accepts bug fixes, not features. A maintainer may want the author to justify this scope choice.
Resolution
Optionally, state whether a maintainer requested this feature, since the template asks for a link to such a request. Also address the template's note that it accepts bug fixes rather than features, so reviewers can confirm the scope is acceptable.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 58c7ed1
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
004b3c68-a846-4097-bda9-ddf2dfb51c47
Commits-
Reviewing files that changed from the base of the PR and between 58c7ed114815d56d1ffdb91780d725051cc343e1 and 8711a2b7ad9c61f3bf5f00a0456d25ecfffbcdb5.
Files selected for processing: 18-
apps/web/src/components/Sidebar.drag.tsapps/web/src/components/Sidebar.logic.test.tsapps/web/src/components/Sidebar.logic.tsapps/web/src/components/Sidebar.tsxapps/web/src/components/settings/SettingsPanels.tsxapps/web/src/components/settings/settingsSearch.tsapps/web/src/i18n/translations/de.jsonapps/web/src/i18n/translations/en.jsonapps/web/src/i18n/translations/es.jsonapps/web/src/i18n/translations/fr.jsonapps/web/src/i18n/translations/ja.jsonapps/web/src/i18n/translations/ko.jsonapps/web/src/i18n/translations/pl.jsonapps/web/src/i18n/translations/pt-BR.jsonapps/web/src/i18n/translations/ru.jsonapps/web/src/i18n/translations/sv.jsonapps/web/src/i18n/translations/zh.jsonpackages/contracts/src/settings.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
-
Sign in to join this conversation.


macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes