feat(web): redesign the pull request Code tab file list
Summary
The Code tab file list repeated full paths, a generic status circle and a large "Viewed" checkbox on every row, and the toolbar was a row of unlabeled icons. This redesign makes the file name the main signal and groups the view controls.
Preview
Before:

After:

After, with two files viewed and the viewed toggle tooltip:

After, view options menu:

Changes
- File rows use the diff viewer's custom header slot (
renderCustomHeader) instead of the default title:- File name first, directory after it in a dimmed color.
- Change-type icon (added, modified, deleted, renamed) with a tooltip. Renames show the old path.
+N -Nplus a small bar. Bar width is relative to the largest file in the change; the green and red split shows the add/delete ratio.- Compact viewed toggle (circle, check when viewed, warning icon when changed since viewed). Tooltip explains shift-click range marking. Viewed rows dim the file name.
- A click on the row header folds or unfolds the file through a normal React handler. The
onClickCapturethat read[data-title]out of the shadow DOM is removed. - Toolbar: viewed count gets a progress bar. Layout (stacked or split), hide whitespace, wrap lines and hide test files move into one "view options" menu whose trigger shows the current layout. Collapse all and file tree stay as icon buttons with tooltips.
PullRequestCodeTab.browser.test.tsx: the "first page loaded" wait usestoBeInTheDocumentinstead oftoBeVisible. In that test the tab sits in a flex row and shrinks to about 32px, so the new truncating file name has zero width there. The old header text overflowed and passed by accident.
Tests
vp run check:changed: format, lint, knip, typecheck, react compiler andPullRequestCodeTab.browser.test.tsxall pass.- Headless check against a playground data copy (all providers disabled): file rows, viewed toggle and range state, progress bar, view menu, collapse all.
Scope affected
Web PR Code tab only (PullRequestCodeTab.tsx). The shared StyledDiffCodeView, the chat Diff panel, viewed-state storage and the Timeline tab are not changed. Mobile has its own PR UI and is not touched.
Reasoning
The default diff header renders the path as one text node inside shadow DOM, so name and directory cannot be styled apart with CSS. The library's custom header slot gives full control with no fork of the viewer. Keyboard paths stay: the chevron and viewed toggle are buttons, and the menu items are standard menu radio and checkbox items.
Known existing issue, not changed here: if the tab is forced to full width in the browser test, revealing a file loaded from a later page lands about 300px below the top. The same happens with the code before this change.