Skip to content

Fix copy-result check drawing from the wrong dash offset - #23

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/fix-check-mark-animation-e60a
Sep 14, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/fix-check-mark-animation-e60a

Conversation

@MylesMCook

Copy link
Copy Markdown
Owner

What changed?

Copy result / status check was drawing as slash → dot → V because stroke-dashoffset started at the CSS fallback 20 while the path is length 13.

Pin --check-mark-len: 13, draw with @keyframes t-check-draw, and keep one StatusBadge instance for loading/done so the morph does not remount.

copy_result_check_before.mp4
copy_result_check_after.mp4

Before: slash-shaped stroke
After: check stroke start
After: complete check

How did you check it?

  • pnpm check — 0 errors (existing SDK import-closure warning)
  • examples/app/verify-calculator.mjs — 6/6 passed
  • Local Copy result replay on 127.0.0.1:5174; before/after frame capture

Anything that could break?

Reduced-motion still snaps the mark on with no animation. Live workers were already updated from this branch; GitHub auto-deploy on main still needs a valid Cloudflare Actions token.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 14, 2026 19:44
The spinner-to-check morph interpolated stroke-dashoffset from the
placeholder 20 while dasharray was the real path length 13, so the
mark appeared as a slash, then a dot, then a V. Pin the length and
draw with a keyframe from that value.

Co-authored-by: Myles Cook <MylesMCook@users.noreply.github.com>
Co-authored-by: Myles Cook <MylesMCook@users.noreply.github.com>
@MylesMCook
MylesMCook marked this pull request as ready for review September 14, 2026 19:58
Copilot AI lite review requested due to automatic review settings September 14, 2026 19:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The reviewed changes are scoped, validated, and have no unresolved blocking issues.

Pull request overview

Fixes the copy-result checkmark animation and preserves the badge during loading-to-done transitions.

Changes:

  • Corrects the checkmark path length and draw animation.
  • Handles reduced-motion behavior.
  • Removes runtime SVG path measurement.
File summaries
File Description
src/motion.css Updates checkmark drawing and reduced-motion styles.
src/features/parser/components/date-picker.tsx Keeps the loading/done badge mounted.
src/components/status-badge.tsx Removes runtime path measurement.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cursor
cursor Bot merged commit ddd0d46 into main Sep 14, 2026
2 checks passed
@cursor
cursor Bot deleted the cursor/fix-check-mark-animation-e60a branch September 14, 2026 20:00
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.

3 participants