Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Marking a file as Viewed should scroll to the next unviewed file

Open Beginner friendly
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Start by reading the nextUnviewedFile pure function and its unit test to understand the display-order selection. Trace where marking a file Viewed updates the review UI, then ensure the viewport moves to the top of the next unviewed file without wrapping or moving when a file is un-marked; the existing unit test should cover the selection behavior.

Written by the indexing model from the issue text.

Description

Summary

In a large diff, marking a file Viewed leaves the viewport on the collapsed file. The reviewer then scrolls manually to find the next file that still needs review. GitHub's review UI advances to the next unviewed file.

Proposal

When a file is marked Viewed, scroll to the top of the next unviewed file in display order. No scroll occurs when no unviewed file follows (the search does not wrap to earlier files), or when a file is un-marked.

Notes

The selection logic is a pure function (nextUnviewedFile) with a unit test. A PR follows.

Dominant language
TypeScript
Stars
206
Forks
37
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wong2/diffx

All issues in wong2/diffx

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.