Skip to content

fix: reduced-motion spinner gap; rename waitingHasComments; annotate reflow#465

Merged
tomasz-tomczyk merged 1 commit intomainfrom
audit/frontend-fixes
May 5, 2026
Merged

fix: reduced-motion spinner gap; rename waitingHasComments; annotate reflow#465
tomasz-tomczyk merged 1 commit intomainfrom
audit/frontend-fixes

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

Summary

  • style.css: add .waiting-spinner .dot { animation: none; opacity: 0.6 } to prefers-reduced-motion: reduce block — spinner was exempt despite being visible during the full non-approved waiting period
  • app.js: rename waitingHasCommentswaitingNotApproved across all 4 sites — variable now means !approved, not "has comments"; name was misleading after the approved-state refactor
  • app.js: add inline comment to void dialog.offsetWidth explaining it forces a reflow to restart CSS animations on re-added class

Review

  • Code review: passed
  • Parity audit: N/A (crit-web has no approved modal)

Test plan

  • Manual: verify spinner stops under prefers-reduced-motion: reduce media query
  • grep waitingHasComments returns nothing — rename complete

🤖 Generated with Claude Code

…nnotate reflow line

- style.css: add .waiting-spinner .dot { animation: none } to reduced-motion block (spinner
  was exempt despite being visible during the full non-approved waiting period)
- app.js: rename waitingHasComments → waitingNotApproved (now means !approved, not "has comments")
- app.js: add inline comment to void dialog.offsetWidth explaining it forces reflow for animation replay
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #465      +/-   ##
==========================================
+ Coverage   69.01%   69.04%   +0.02%     
==========================================
  Files          36       36              
  Lines       10698    10698              
==========================================
+ Hits         7383     7386       +3     
+ Misses       2750     2748       -2     
+ Partials      565      564       -1     
Flag Coverage Δ
e2e 32.53% <ø> (ø)
unit 66.55% <ø> (+0.02%) ⬆️

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 32d8c6e into main May 5, 2026
8 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the audit/frontend-fixes branch May 5, 2026 19:44
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