Skip to content

fix: auto-close empty forms when opening file/review comment forms#126

Merged
tomasz-tomczyk merged 1 commit intomainfrom
audit/frontend-parity
Apr 26, 2026
Merged

fix: auto-close empty forms when opening file/review comment forms#126
tomasz-tomczyk merged 1 commit intomainfrom
audit/frontend-parity

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

Summary

  • Parity port from crit/ PR #366
  • closeEmptyForms was already wired into openForm (line-scope) via PR fix: auto-close empty comment forms when opening another #124, but the file-scope and review-scope paths (openFileCommentForm / openReviewCommentForm) were missed
  • 2-line addition matching the existing line-scope pattern

Review

  • Code review: passed (frontend-expert agent — verdict: ship)
  • Parity audit: passed (port from crit/ #366)

Test plan

  • Open empty file-scope comment form, then click "Add review comment" — file form should auto-close
  • Open empty review-scope form, select lines, open line-scope form — review form should auto-close

Note: pre-existing test failures in test/crit/statistics_test.exs on main (DB pollution) are unrelated to this change.

🤖 Generated with Claude Code

Parity port from crit/ PR #366. closeEmptyForms was already wired into
openForm (line-scope) via PR #124, but the file-scope and review-scope
paths (openFileCommentForm / openReviewCommentForm) were missed.

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 75.87%. Comparing base (ff79830) to head (befcdf4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #126   +/-   ##
=======================================
  Coverage   75.87%   75.87%           
=======================================
  Files          52       52           
  Lines        1513     1513           
=======================================
  Hits         1148     1148           
  Misses        365      365           
Flag Coverage Δ
unit 75.87% <ø> (ø)

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 b4d900c into main Apr 26, 2026
4 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the audit/frontend-parity branch April 26, 2026 19:45
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