Skip to content

fix(web): group digits, section the command palette, and draw one gap row - #1331

Merged
benvinegar merged 1 commit into
mainfrom
claude/web-ui-03-polish
Nov 17, 2026
Merged

benvinegar merged 1 commit into
mainfrom
claude/web-ui-03-polish

Conversation

@benvinegar

@benvinegar benvinegar commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Problem

Four small things on the browser review page slow reading down:

  • Line counts print as +25048 -47.
  • The command palette prints the category word ("view", "app", "review") on every row, and shortcuts as bare characters.
  • In split view each gap prints "N unchanged lines" twice, once per column.
  • The chrome still uses text glyphs (×, ▸, ▾, ▴) that render differently per font.

Approach

  • Digit grouping. packages/hunk/src/web/format/lineCounts.ts formats added, removed, and file counts with en-US grouping and a true minus sign. The toolbar, file headers, both sidebar modes, the go-to-file picker, and the Overview tab use it, with tabular figures so columns stay aligned. Terminal output and core/ are untouched.
  • Palette sections. With an empty query, PickerDialog groups rows under section headings (role="group" labelled by the heading; arrow keys visit options only). With a query it stays one flat ranked list with the category as a quiet label. Ranking is unchanged. Shortcuts render as <kbd> key caps.
  • One gap row in split view. Pierre calls hunkSeparators once per column and each column is its own container, so one element cannot span both. The deletions column keeps the real button.gap-separator with the label, data-gap-id, and data-gap-state. The additions column gets an aria-hidden element that stays empty until hovered and toggles the same gap.
  • Icons. Close, disclosure, and gap chevrons use the icon module; createIconElement() builds the same icon as a DOM node for controls drawn inside Pierre's diff.

Non-goals

No changes to note cards, file headers (beyond digit grouping), or the sidebar's status letters and badges; later PRs in the stack own those.

Tests

  • New unit tests for the formatting helpers.
  • New e2e cases: grouped digits and the single split-view gap row (review-stream), palette section headings (review-palette).
  • Updated: the notes replies toggle's accessible name loses its glyph ("1 reply"); review-large and review-tools expect 2,000 files.
  • bun run typecheck, bun run lint, bun run format:check, bun run deps:check: pass.
  • bun test packages/hunk/src/web: 266 pass, 0 fail.
  • bun run test:web: 118 passed, 7 skipped (the opt-in capture specs), 0 failed. After a final CSS-only tweak to the split-view gap fill, review-stream and review-accessibility were rerun: 17 passed.

Platform: macOS only.

Stack

3 of 9. Each PR is based on the one above it in this table and contains only its own change.

# PR Change Base
1 modem-dev/hunk#1329 Accent only for selection and focus main
2 modem-dev/hunk#1330 One-row toolbar, icon controls, View menu #1329
3 modem-dev/hunk#1331 ← this PR Digit grouping, palette sections, one gap row, icons #1330
4 modem-dev/hunk#1332 Quieter minimap #1331
5 modem-dev/hunk#1333 Note threads with authors and icon actions #1332
6 modem-dev/hunk#1334 File headers: state chips, collapse, copy path #1333
7 modem-dev/hunk#1335 Sidebar review state #1334
8 modem-dev/hunk#1336 Summary strip; side panel starts closed #1335
9 modem-dev/hunk#1337 Review bar: progress, next unviewed, key hints, copy notes #1336

Merge order: 1 to 9, from the top of the table. After a PR merges, the next one's base becomes main (GitHub retargets it when the merged branch is deleted; otherwise change the base by hand) and its diff still shows only its own change.

This PR description was generated by Claude Code using Claude Fable 5.2

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes affect several reading and navigation controls on the browser review page.

This appears safe to merge, with a non-blocking fix recommended for repeated clicks on loading gaps.

Findings

  1. P2 Loading gaps still accept clicks ▶
Fix with agent prompt
### Issue 1
packages/hunk/src/web/stream/PierreFileView.tsx:150-152
**Loading gaps still accept clicks.** The new right-hand `div` skips the loading check but keeps its click listener. Double-clicking it while the source loads flips the gap back to collapsed, so the lines never appear when loading finishes. Previously, both columns used disabled buttons during loading. Ignore clicks on the fill while its gap is loading, just as the left-hand button does.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

This PR improves readability on the browser review page.

  • Browser review counts show grouped digits and a true minus sign.
  • The empty command palette groups commands under headings.
  • Split-view gaps show their unchanged-line count once.
  • Close and disclosure controls use shared SVG icons instead of text glyphs.

One non-blocking issue remains: the new right-hand gap area still accepts clicks while lines are loading.

Reviews (1) · Last reviewed commit: "fix(web): group digits, section the comm..." · Reviewed by Greptile

Comment on lines +150 to +152
if (element.classList.contains("gap-separator-fill")) {
element.dataset.gapState = gap?.state ?? "unaddressed";
return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Loading gaps still accept clicks. The new right-hand div skips the loading check but keeps its click listener. Double-clicking it while the source loads flips the gap back to collapsed, so the lines never appear when loading finishes. Previously, both columns used disabled buttons during loading. Ignore clicks on the fill while its gap is loading, just as the left-hand button does.

Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/hunk/src/web/stream/PierreFileView.tsx
Line: 150-152

Comment:
**Loading gaps still accept clicks.** The new right-hand `div` skips the loading check but keeps its click listener. Double-clicking it while the source loads flips the gap back to collapsed, so the lines never appear when loading finishes. Previously, both columns used disabled buttons during loading. Ignore clicks on the fill while its gap is loading, just as the left-hand button does.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

… row

Four readability fixes on the browser review page. Line and file counts
group their digits (+25,048 −47) with tabular figures. The command
palette groups commands under section headings when the query is empty
and shows shortcuts as key caps. Split view states "N unchanged lines"
once per gap instead of once per column. The remaining text-glyph icons
(close, disclosure, gap chevrons) use the icon module.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@benvinegar
benvinegar force-pushed the claude/web-ui-03-polish branch from a3746db to 4901195 Compare November 17, 2026 14:59
@benvinegar
benvinegar changed the base branch from claude/web-ui-02-toolbar to main November 17, 2026 14:59
@benvinegar
benvinegar merged commit efaaea5 into main Nov 17, 2026
15 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant