Skip to content

fix: hide comment line highlight when 'h' hides resolved comments#365

Merged
tomasz-tomczyk merged 1 commit intomainfrom
hide-comment-line-highlight
Apr 26, 2026
Merged

fix: hide comment line highlight when 'h' hides resolved comments#365
tomasz-tomczyk merged 1 commit intomainfrom
hide-comment-line-highlight

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

Summary

  • Resolved comments' line-range highlight now tracks card visibility: hidden when the h toggle is on, visible when off.
  • Fixes inconsistency where unified diff kept highlights regardless of toggle, while document/split diff never highlighted resolved comments at all.

Review

  • Code review: passed
  • Parity audit: passed

Test plan

  • Add and resolve a comment, press h — both card and line highlight hide together
  • Press h again — both reappear
  • Verify in document, split-diff, and unified-diff views

See also: tomasz-tomczyk/crit-web#123

🤖 Generated with Claude Code

Resolved comments' line-range highlight now tracks card visibility:
the highlight disappears with the card when the hide-resolved toggle is
on, and reappears when off. Previously the unified diff view kept the
highlight regardless, and the document/split views never rendered the
highlight for resolved comments — both inconsistent with the toggle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.90%. Comparing base (c6b7484) to head (c4fd213).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #365      +/-   ##
==========================================
+ Coverage   66.86%   66.90%   +0.03%     
==========================================
  Files          18       18              
  Lines        7807     7807              
==========================================
+ Hits         5220     5223       +3     
+ Misses       2194     2192       -2     
+ Partials      393      392       -1     
Flag Coverage Δ
e2e 35.01% <ø> (+0.12%) ⬆️
unit 62.72% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tomasz-tomczyk tomasz-tomczyk merged commit 899311c into main Apr 26, 2026
5 of 6 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the hide-comment-line-highlight branch April 26, 2026 19:11
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