GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(web): hide viewed files in the pull request Code tab by alexito4 · Pull Request #16446 · pingdotgg/t3code

Conversation

@alexito4

@alexito4 alexito4 commented Oct 6, 2026

Copy link
Copy Markdown

Problem

The pull request Code tab lets you tick files as Viewed, which folds them. But every viewed file stays in the diff and in the file tree, so on a large pull request you keep scrolling past files you have already read. On github.com you can hide viewed files; here you can't.

Change

Adds a Hide viewed files toggle (crossed-out eye) to the Code tab toolbar, next to the whitespace toggle. It only appears where the host keeps viewed marks.

  • While it's on, viewed files are left out of the diff and the file tree, and the count reads e.g. "6 of 11 files".
  • Ticking a file hides it straight away. Unticking a file brings it back. So does a push that leaves a viewed file dismissed, because those already read as unviewed.
  • When every file is viewed, the tab says "All 11 files are viewed." and offers Show viewed files, instead of "This pull request has no file changes."
  • The choice is remembered in localStorage, like the file tree toggle. It's off by default, so nothing changes until a reviewer turns it on.
  • The filter runs after annotations are built, so ticking a file doesn't recompute them.
  • Web and desktop only: the mobile app has no Code tab.
  • User guide: one paragraph under "Mark files as viewed" in docs/user/source-control.md.

Scope and approval

There's no linked issue or discussion. I'm submitting this as a focused configuration option for an established capability: the viewed-files marks. It reads the existing marks (GitHub's own, or the environment store on other hosts) and only decides whether viewed files are listed. It adds no data and no server or contract change, and the default behavior is unchanged. If you'd rather this go through an Ideas discussion first, I'm happy to open one.

Two open PRs touch the same area without overlapping this one: #13280 (keep viewed files folded when the tab reopens) and #14954 (viewed ticks after a partial batch failure).

Verification

  • tsc --noEmit -p apps/web: clean.
  • vp lint on PullRequestCodeTab.tsx: no new warnings (6 before and after, all already there).
  • Manually in the web client against an isolated dev server, using my open PR feat(web): size conversation text independently #13234 as sample data:
    • With 5 of 11 files ticked, turning the toggle on leaves the 6 unread files in the diff and the tree, and the count reads "6 of 11 files".
    • Ticking the remaining files shows the all-viewed state. Show viewed files turns the filter off and lists all 11 again.
  • Not checked: persistence across a reload (it uses the same useLocalStorage hook as the file tree toggle), hosts other than GitHub, and the commit-scoped view.
  • No new unit test. The visibility rule is the existing viewed predicate, which is already covered (pullRequestFilesViewed.logic). The rest is rendering.
Before After
Code tab before: 5 of 11 files viewed, all still listed Code tab after: Hide viewed files on, 6 of 11 files listed in the diff and the tree

Every file viewed, with the filter on:

All 11 files are viewed, with a Show viewed files button

Written with Claude Opus 5.5 in Claude Code, running inside T3 Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

PiquelChips and felixfong227 reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@alexito4
feat(web): hide viewed files in the pull request Code tab
5a65f2e
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Oct 6, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Oct 6, 2026
View reviewed changes
Comment thread apps/web/src/components/pullRequest/PullRequestCodeTab.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/web/src/components/pullRequest/PullRequestCodeTab.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Oct 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This adds an opt-in production Code-tab behavior that filters viewed files from both the diff and file tree while preserving the existing default. The new UI and all-viewed paths lack dedicated tests, so human validation is appropriate.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexito4
fix(web): keep raw changes and an open comment draft visible when hid…
4259166
…ing viewed files
@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 25ed5988-9011-490a-9a01-9fca5755bacc
📥 Commits

Reviewing files that changed from the base of the PR and between 9bd1d80 and 4259166.

📒 Files selected for processing (2)
  • apps/web/src/components/pullRequest/PullRequestCodeTab.tsx
  • docs/user/source-control.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The pull request code tab adds a persisted option to hide viewed files from the diff and file tree. It keeps a file with an active draft visible, updates the displayed file count, and provides a way to show files again when all structured files are hidden. The source-control documentation describes the option.

Changes

Hide Viewed Files

Layer / File(s) Summary
Persisted setting and file filtering
apps/web/src/components/pullRequest/PullRequestCodeTab.tsx
The code tab stores the hide-viewed-files preference. When hiding is enabled and viewed-file tracking is available, it filters viewed files from the diff and file tree, while keeping a file with an active draft visible.
Toolbar, empty state, and documentation
apps/web/src/components/pullRequest/PullRequestCodeTab.tsx, docs/user/source-control.md
The toolbar shows the visible and total file counts and provides hide and show controls. When all structured files are hidden, an empty state offers a control to show them again. The documentation describes the setting.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Suggested reviewers: juliusmarminge

Merge Risk: ⚪ Minimal · up to 42591

The hide-viewed setting retains a way to continue paging and restore hidden files. No concrete issue requiring action before merge is established.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: hiding viewed files in the pull request Code tab.
Description check ✅ Passed The description covers the problem, change, scope and approval rationale, and verification. It includes before-and-after screenshots and states which checks were not performed.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews label Oct 11, 2026 — with ChatGPT Codex Connector
@maria-rcks

maria-rcks commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

Thanks for proposing a way to hide viewed files. The diff adds a persistent filtering option and an all-viewed state; it does not fix incorrect viewed marks or collapsing. Although the guide allows focused configuration proposals, Read this first reserves limited review capacity, and right now we are only taking focused bug fixes from outside contributors. Please preserve the large-review scrolling problem in an Ideas discussion and obtain maintainer agreement to revisit this proposal before requesting reconsideration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maria-rcks maria-rcks closed this Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

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.

3 participants

@alexito4 @maria-rcks @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.