Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): option to show the Working section below pinned threads #48316

Openmgilank(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/48316/headopened View on GitHub

Problem

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: new sidebarWorkingShelfAtTop client setting (defaults to false, 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:changed on top of current main: format, lint, knip, typecheck, tests, and React Compiler all pass.
  • New unit test in Sidebar.logic.test.ts covers 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)
beforeafter

Setting:

setting

Made with Claude Opus 5.5 in T3 Code (Claude Code harness).

    1. tanstack-source added labelsfeature

    2. Approvability

      Verdict: Approved at 8711a2b

      Macroscope'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).
    3. Explain Change →

      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.tsx
      The 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.ts
      Collision 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 to 8711a

      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: Passed 4

      Check nameStatusExplanation
      Title checkPassedThe 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 checkPassedThe 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 checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck 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

      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.ts
      • apps/web/src/components/Sidebar.logic.test.ts
      • apps/web/src/components/Sidebar.logic.ts
      • apps/web/src/components/Sidebar.tsx
      • apps/web/src/components/settings/SettingsPanels.tsx
      • apps/web/src/components/settings/settingsSearch.ts
      • apps/web/src/i18n/translations/de.json
      • apps/web/src/i18n/translations/en.json
      • apps/web/src/i18n/translations/es.json
      • apps/web/src/i18n/translations/fr.json
      • apps/web/src/i18n/translations/ja.json
      • apps/web/src/i18n/translations/ko.json
      • apps/web/src/i18n/translations/pl.json
      • apps/web/src/i18n/translations/pt-BR.json
      • apps/web/src/i18n/translations/ru.json
      • apps/web/src/i18n/translations/sv.json
      • apps/web/src/i18n/translations/zh.json
      • packages/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.