Skip to content

Inbox review: the bar under a file's name shows on hover, or under a finger while it moves - #2698

Merged
backnotprop merged 5 commits into
mainfrom
feat/review-grey-bar
Nov 6, 2026
Merged

backnotprop merged 5 commits into
mainfrom
feat/review-grey-bar

Conversation

@backnotprop

@backnotprop backnotprop commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

The owner chose option B for the grey bar under each file name. Follows #2679, which has merged.

What changes

In the Inbox's review only (.ib-rv-walk):

  • Desktop: the bar shows when the pointer is on the file.
  • Phone: the bar shows on the file under the finger while that file or the page moves, including momentum, and goes 700ms later.

What stays the same

  • Sideways scrolling: wheel and trackpad scrolling belong to the code and still work, with the bar hidden or showing.
  • Layout: the bar sits on the header's edge, so showing it moves nothing. The tests compare positions with the bar hidden and showing.
  • Keyboard: the bar was not reachable by keyboard before (aria-hidden, not focusable), and that has not changed.
  • Guide pane and review app: the guide pane (Code review off) and the browser review app keep the bar on show.

No new words, no new shortcuts. No changes to packages/review-editor, packages/guide-viewer or packages/ui.

One behaviour to know

Hidden, the bar takes no pointer, so a tap on that strip mostly stops jumping the code sideways. The review measured it: tapping 1.5 to 3px into the strip already folded the file before this PR, and this change adds only about the top pixel to that. The accidental sideways jump at the bottom edge is gone.

Proof

  • e2e, after merging main: 57 passed, 3 skipped (videos), across the code review, Show me, guides, pull requests and open-in specs.
  • Mutations, before merging main: 13 of 13 killed, including removing the (hover: hover) guard, which fails when a tap on a code line brings the bar up through a phone's sticky hover.
  • DOM, after merging main: 161 passed, across 14 files. guideDiffStyle.test.tsx was not run, because it starts an Inbox server.
  • Guards: 4 passed. tsc on packages/inbox is clean.
  • Touch was driven through Chromium's touch input. Not tried on a real phone or in WebKit.

…inger while it moves

Only in the Inbox's review (.ib-rv-walk); the guide pane and the review app keep it on show. It sits on the header's edge, so showing it moves nothing, and hidden it takes no pointer. Sideways wheel and trackpad scrolling belong to the code and still work. On a phone the file under the finger shows it while that file or the page moves, including momentum, and it goes 700ms later.
Guards the (hover: hover) rule: without it a phone's sticky hover brings the bar up after any tap on the file. The tap opens the comment composer, so the bar is checked with it open and after it closes.
@backnotprop
backnotprop changed the base branch from feat/review-header to main November 5, 2026 19:49
@backnotprop
backnotprop marked this pull request as ready for review November 5, 2026 19:57
# Conflicts:
#	packages/inbox/components/ReviewPane.tsx
@backnotprop backnotprop added the ci:full Run the heavy CI tier on this PR (added by the merge script) label Nov 6, 2026
@backnotprop
backnotprop merged commit 2651b0b into main Nov 6, 2026
101 of 116 checks passed
yermakoffivan pushed a commit to yermakoffivan/plannotator that referenced this pull request Nov 6, 2026
The owner's decision: a normal scrollbar at the bottom of each diff, the diff
library's own, and the custom bar under the file name taken out.

- Remove DiffHScrollbar (backnotprop#1586) from the review app and the Inbox, with the
  Inbox's hover and finger rules for it (backnotprop#2698) and its e2e tests.
- Stop hiding Pierre's horizontal scrollbar. theme.css's scrollbar-color
  reached into Pierre's shadow root by inheritance, and Chrome then drops
  Pierre's ::-webkit-scrollbar sizing: a 15px classic bar its layout did not
  count, cut off at the file's edge. diffs-container resets it, so Pierre
  keeps its 6px bar and the room it counts for it.
- Give the thumb a quiet visible colour in light and dark (Pierre leaves it
  transparent until hover).
- The Inbox (a file as tall as its layout) counts Pierre's 8px under the last
  row, so the bar sits inside the file's box.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Run the heavy CI tier on this PR (added by the merge script)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant