Repository navigation
fix(web): group digits, section the command palette, and draw one gap row - #1331
Conversation
[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
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.SummaryThis PR improves readability on the browser review page.
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 |
| if (element.classList.contains("gap-separator-fill")) { | ||
| element.dataset.gapState = gap?.state ?? "unaddressed"; | ||
| return; |
There was a problem hiding this 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.
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.e7d5027 to
a3746db
Compare
465b2cc to
21ffd50
Compare
… 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>
a3746db to
4901195
Compare
Problem
Four small things on the browser review page slow reading down:
+25048 -47.×,▸,▾,▴) that render differently per font.Approach
packages/hunk/src/web/format/lineCounts.tsformats added, removed, and file counts withen-USgrouping 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 andcore/are untouched.PickerDialoggroups 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.hunkSeparatorsonce per column and each column is its own container, so one element cannot span both. The deletions column keeps the realbutton.gap-separatorwith the label,data-gap-id, anddata-gap-state. The additions column gets anaria-hiddenelement that stays empty until hovered and toggles the same gap.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
review-stream), palette section headings (review-palette)."1 reply");review-largeandreview-toolsexpect2,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-streamandreview-accessibilitywere 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.
mainMerge 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