Conversation
Reviewer's GuideThis PR replaces separate History and linked Pull Requests right-panel surfaces with a singleton Repository surface containing accessible History and Pull Requests tabs, retaining mounted History state while switching views. It updates all navigation and proactive-opening paths, adds persisted-state migration and schema validation for legacy layouts, and expands focused tests and documentation. Sequence diagram for switching Repository views while retaining History statesequenceDiagram
participant User
participant RepositoryPanel
participant rightPanelStore
participant GitHistoryPanel
participant ThreadPullRequestsPanel
User->>RepositoryPanel: click Pull Requests tab
RepositoryPanel->>rightPanelStore: selectRepositoryView(ref, pull-requests)
rightPanelStore-->>RepositoryPanel: update view
RepositoryPanel->>GitHistoryPanel: Activity mode hidden
RepositoryPanel->>ThreadPullRequestsPanel: Activity mode visible
User->>RepositoryPanel: click History tab
RepositoryPanel->>rightPanelStore: selectRepositoryView(ref, history)
rightPanelStore-->>RepositoryPanel: update view
RepositoryPanel->>GitHistoryPanel: Activity mode visible
Note over GitHistoryPanel: Mounted History state is retained
State diagram for migrating legacy Repository panelsstateDiagram-v2
[*] --> LegacySurfaces
LegacySurfaces --> RepositoryHistory: active legacy surface is git-history
LegacySurfaces --> RepositoryPullRequests: active legacy surface is pull-requests
LegacySurfaces --> RepositoryHistory: legacy surfaces exist without active pull-requests
RepositoryHistory --> RepositorySurface
RepositoryPullRequests --> RepositorySurface
RepositorySurface: id = repository
RepositorySurface: view = history or pull-requests
RepositorySurface --> [*]
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This was referenced Sep 18, 2026
Defmon3
marked this pull request as ready for review
September 18, 2026 14:25
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="apps/web/src/components/RightPanelTabs.tsx" line_range="405-406" />
<code_context>
shortcut: "H",
- available: props.gitHistoryAvailable ?? false,
+ available: props.repositoryAvailable ?? false,
disabledReason: SURFACE_UNAVAILABLE_HINTS.gitHistory,
- onClick: props.onAddGitHistory ?? (() => undefined),
+ onClick: props.onAddRepository ?? (() => undefined),
badgeCount: 0,
},
</code_context>
<issue_to_address>
**nitpick:** The new Repository action keeps the old `gitHistory` disabled reason and hint, so threads with only linked pull requests are told that the surface is available only for Git repositories on updated servers even though `repositoryAvailable` is true because Pull Requests are available.
**Triggers:** When a non-Git thread has linked pull requests and opens the right-panel surface picker.
**Suggested fix:** Add Repository-specific disabled text and use it for the combined surface.
</issue_to_address>
Defmon3
force-pushed
the
stack/6315-series-history
branch
from
September 21, 2026 22:35
cd3ad6e to
c021011
Compare
Defmon3
force-pushed
the
stack/6315-series-repository
branch
from
September 21, 2026 22:35
c4256db to
98c657c
Compare
Defmon3
force-pushed
the
stack/6315-series-repository
branch
from
September 21, 2026 22:51
98c657c to
0de5387
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Series and review order
feat/issues-pageThese are open review units for one proposal, stacked on pingdotgg/t3code#6315. Part 1 targets Bilal's fork; parts 2–4 target the preceding branch in our fork. The complete series is available at the final branch. The series is open for review; feedback on product direction and implementation is welcome.
Short demo: History paging, Pull Requests, Issues, and retained History state.
Prior discussion: the original proposal and Bilal's invitation to stack it. This records the invitation, not upstream acceptance of the design.
What changed
Groups History and the existing linked Pull Requests view into one Repository surface. Switching tabs preserves the mounted History state.
Why
Repository navigation belongs together beside the coding thread. This reuses the existing Pull Requests implementation.
Dependency and review
Part 3 of 4, based on
stack/6315-series-history. This PR's diff contains the Repository integration only. Issues integration belongs to part 4. This review PR lives in our fork because that is where the preceding branch exists.Verification
This exact cumulative layer passed dev-server checks: History and Pull Requests were the only Repository tabs, an existing linked PR rendered, and switching away and back preserved 200 loaded commits. No page exceptions were captured. Earlier independent layer verification passed web typecheck and 106 focused pane/tab/store tests; the later server-only edit did not alter this patch.
UI
Before: History as a separate surface in part 2.

After: History and Pull Requests share Repository.

The old combined proposal and original images remain available.
Developed with Astra 6 in Codex/T3 Code and reviewed with Fable 5.1.
Summary by Sourcery
Unify repository history and linked pull requests under a persistent Repository right-panel surface.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests: