Skip to content

fix(ui): line number click and hover utility not opening comment editor - #33480

Closed
sshwy wants to merge 1 commit into
anomalyco:devfrom
sshwy:review-comment-fixes
Closed

fix(ui): line number click and hover utility not opening comment editor#33480
sshwy wants to merge 1 commit into
anomalyco:devfrom
sshwy:review-comment-fixes

Conversation

@sshwy

@sshwy sshwy commented Jun 23, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #32835

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Two fixes for the review panel comment feature:

  1. Clicking a line number now opens the comment editor. Previously handleMouseUp
    returned early for number column clicks, skipping all selection callbacks.
    Fix: route number column clicks through the same selection flow as text clicks,
    and relax consume() to accept single-line selections from the gutter.

  2. The hover "+" button now renders. The props were named enableHoverUtility /
    renderHoverUtility but pierre expects enableGutterUtility / renderGutterUtility.
    Fix: rename props to match pierre's option names and add them to SharedProps.

How did you verify your code works?

  1. Started API server with bun dev serve and web app with bun run --cwd packages/app dev
  2. Opened a session with diffs, expanded a file in the Review panel
  3. Clicked a line number → comment draft editor opens
  4. Hovered over a line number → "+" button appears and opens draft on click

Screenshots / recordings

screenshot.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

- selection-bridge: allow single-line number column clicks to trigger
  onLineNumberSelectionEnd, not just multi-line drags
- file.tsx: route number column clicks through selection flow instead of
  returning early, and add enableGutterUtility/renderGutterUtility to
  SharedProps matching pierre's native option names
- session-review / file-tabs: rename enableHoverUtility → enableGutterUtility
  and renderHoverUtility → renderGutterUtility
@sshwy
sshwy requested review from Brendonovich and Hona as code owners June 23, 2026 06:47
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

The search results only return the current PR itself (33480), which is expected. The other result found (PR #19135) is unrelated to this issue—it's about TUI prompt navigation, not UI comment editor functionality.

No duplicate PRs found

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jun 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@sshwy sshwy closed this Jun 24, 2026
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.

[BUG] Review panel: cannot add inline comments on diffs after v1.17.8 (Web UI + Desktop)

1 participant