feat: filter viewed code review files - #3794
Merged
Merged
Conversation
|
😎 Merged directly without going through the merge queue, as the queue was empty and the PR was up to date with the target branch - details. |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
MattPua
marked this pull request as ready for review
July 24, 2026 18:33
Contributor
Prompt To Fix All With AIFix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
packages/ui/src/features/code-review/components/ReviewShell.tsx:180-187
**Active file remains hidden**
When “Hide viewed files” is enabled and the active file is marked viewed, this filtering removes its diff and navigation-index entry without updating the active path, causing the Changes panel to keep highlighting a file that is no longer displayed until the user scrolls or navigates elsewhere.
Reviews (1): Last reviewed commit: "feat: filter viewed code review files" | Re-trigger Greptile |
Generated-By: PostHog Code Task-Id: f774fb55-18e5-4248-acb9-3f9bf3e7d3ee
Generated-By: PostHog Code Task-Id: f774fb55-18e5-4248-acb9-3f9bf3e7d3ee
MattPua
force-pushed
the
posthog-code/hide-viewed-review-files
branch
from
July 28, 2026 20:12
88b3458 to
7dc619d
Compare
There was a problem hiding this comment.
Contained UI feature adding a "hide viewed files" filter to the code review panel, with new tests covering the filter and active-path-resolution logic; the added useEffect in ReviewShell.tsx directly resolves the sole reviewer (Greptile) concern about the active file staying hidden after filtering. No risky territory touched.
- Author wrote 100% of the modified lines and has 10 merged PRs in these paths (familiarity STRONG).
- 👍 on the PR from greptile-apps[bot].
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✓ | no deny categories matched |
| size | ✓ | 154L, 5F substantive, 217L/7F incl. docs/generated/snapshots — within ceiling |
| tier | ✓ | T1-agent / T1c-medium (217L, 7F, single-area, feat) |
| stamphog 2.0.0b3 | .stamphog/policy.yml @ af8d1ce · reviewed head 7dc619d |
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.
Problem
Code reviews with many files make it hard to focus on changes that still need review.
Changes
How did you test this?
@posthog/uitest suite: 2,115 tests passedAutomatic notifications
Created with PostHog Code