GeezerVison is showing github.com — fix(web): explain why test-only diffs are hidden by MIGUELez11 · Pull Request #42845 · pingdotgg/t3code
Conversation
Problem
The thread Diff pane goes blank when Hide test files filters out every changed file. The toolbar still shows the line totals, so it looks like a diff failed to load.
Change
Reuse the PR Code tab's hidden-file count and Show test files action in the thread Diff pane. The action uses the existing filter toggle, so it brings the test files back and updates the toolbar together.
Scope
Refs #42842
This is a proposed fix for the thread Diff pane in web and desktop, which share the same component. Mobile already has this recovery action in its thread review sheet.
Verification
- On
main at c478fde9, the web scenario opened a test-only branch with Hide test files already on. The existing toolbar filter was pressed, but the hidden-files message never appeared.
- With the fix, the same scenario showed 1 test file hidden. Clicking Show test files turned off the toolbar toggle and revealed
math.test.ts. The same flow worked in the local T3 Code development app.
- The existing mixed-diff scenario passed. Expanding the visible source diff kept the hidden test file folded when it was shown again.
vp run check:changed origin/main passed, including the Diff pane and PR Code tab browser tests. vp run i18n:check confirmed the existing translations. Manual verification used the web client on macOS.
| Before |
After |
 |
 |
The existing PR → Code tab for a test-only PR with Hide test files turned on.

Implemented with GPT-6.2 Sol via Codex.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The pull request adds a shared hidden-test-file count and empty state. The Code tab and Diff pane use these components, and an end-to-end scenario checks hiding and showing a test file.
Changes: Hidden test-file display
| Layer / File(s) |
Summary |
Shared empty state and Code tab apps/web/src/components/diffs/HiddenTestFilesEmptyState.tsx, apps/web/src/components/pullRequest/PullRequestCodeTab.tsx |
The shared components display a translated hidden-test-file count and a Show test files action. The Code tab uses them in its toolbar and empty state. |
Diff pane integration and verification apps/web/src/components/DiffPanel.tsx, scripts/scenarios/show-hidden-test-files-in-changes.e2e.ts |
When hiding test files leaves no visible entries, the Diff pane displays the empty state. The end-to-end scenario checks the hidden-file count and shows the test file. |
Estimated code review effort: 2 (Simple) | ~12 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related issues
- Issue 42842 reports that the Diff pane appears blank when hiding test files removes every changed file. This PR adds the explanation and show-files action for that case.
Possibly related PRs
- pingdotgg/t3code#26730: Adds the hide-tests filter and hidden-file count in the Code tab, which this PR reuses in the Diff pane.
Suggested labels: bugfix
Suggested reviewers: yash-singh1, juliusmarminge, maria-rcks
Merge Risk: Minimal · up to c8da5
-
The change adds an explanation and a Show test files action when hiding test files leaves the Diff pane empty. No concrete merge-blocking risk was found, and the change is easy to revert.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(web): explain why test-only diffs are hidden" is a conventional commit title that names the fix's scope (web) and the behavior it addresses (test-only diffs being hidden). The changeset… |
| Description check |
 |
The description follows the template's Problem, Change, Scope, and Verification sections. The Problem section explains the blank Diff pane and expected behavior. The Change section explains reuse of t… |
| 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 "fix(web): explain why test-only diffs are hidden" is a conventional commit title that names the fix's scope (web) and the behavior it addresses (test-only diffs being hidden). The changeset does more than explain: it adds a hidden-test-file empty state with a count and a "Show test files" action to the Diff pane and PR Code tab. The title therefore covers a real part of the change but understates the functional recovery action, so it is partially related. It is specific enough for a teammate scanning history to identify the area.
Full details: Description check
-
Explanation
The description follows the template's Problem, Change, Scope, and Verification sections. The Problem section explains the blank Diff pane and expected behavior. The Change section explains reuse of the PR Code tab's count and action. The Scope section links #42842 and explains the web and desktop coverage. The Verification section lists scenario results, test commands, and before/after screenshots. Minor gaps: the Scope reference is to #42842 while the PR objectives cite #42845, and the template asks for a linked issue showing the bug, which the description does not clearly provide. The author also wrote 'Refs' rather than a closing link, and the title is a conventional commit as the template requests.
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 1c3f0ee and c8da591.
Files selected for processing: 4
-
apps/web/src/components/DiffPanel.tsx
apps/web/src/components/diffs/HiddenTestFilesEmptyState.tsx
apps/web/src/components/pullRequest/PullRequestCodeTab.tsx
scripts/scenarios/show-hidden-test-files-in-changes.e2e.ts
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.
|
Thanks for this. #42851 makes the same change and is the one being kept.
#42851 fixes the same blank Diff pane with a smaller change confined to the pane and its existing browser tests. That narrower scope is why we are keeping it instead of extracting shared components and changing the PR Code tab too.
Your report and scenario identify the same real defect, and the kept fix preserves the hidden-file count and Show test files recovery action.
Closing as a duplicate.
|
MIGUELez11 reacted with hooray emoji
MIGUELez11 reacted with heart emoji
All reactions
-
🎉
1 reaction
-
❤️
1 reaction
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
Labels
size:L
100-499 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
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.
|