Normalize reverse/loop ordering in keyframe animation blocks#489
Normalize reverse/loop ordering in keyframe animation blocks#489tracygardner merged 1 commit intomainfrom
Conversation
Deploying flockdev with
|
| Latest commit: |
b16b0e0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://da3c2a40.flockdev.pages.dev |
| Branch Preview URL: | https://codex-fix-animate-keyframe-o.flockdev.pages.dev |
📝 WalkthroughWalkthroughA coordinated parameter reordering swaps the LOOP and REVERSE options in animation blocks. Block field definitions are swapped, code generators output the new parameter order, and localization strings across 8 languages are updated with adjusted placeholder indices to reflect the new mapping. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
generators/generators-animate.js (1)
266-280: Add a generator regression test for REVERSE/LOOP mapping.This change is wiring-sensitive, and current coverage appears API-focused rather than generator-output-focused. A focused generator assertion for
REVERSE/LOOPcombinations would prevent silent field-order regressions.Also applies to: 379-381
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@generators/generators-animate.js` around lines 266 - 280, Add a focused regression test that exercises the generators/generators-animate.js output for REVERSE/LOOP combinations by invoking the animation generator (the code that emits the createAnimation call using animationGroupVar, meshVariable, property, keyframesCode, easing, reverse, loop, mode) and asserting the generated string includes the expected mapping for reverse and loop (and their relative ordering) for each combination of REVERSE/LOOP values; ensure the test checks the exact generated snippet (or a strict regex) that contains "reverse: <value>" and "loop: <value>" within the createAnimation call so future wiring/field-order regressions are caught.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@generators/generators-animate.js`:
- Around line 266-280: Add a focused regression test that exercises the
generators/generators-animate.js output for REVERSE/LOOP combinations by
invoking the animation generator (the code that emits the createAnimation call
using animationGroupVar, meshVariable, property, keyframesCode, easing, reverse,
loop, mode) and asserting the generated string includes the expected mapping for
reverse and loop (and their relative ordering) for each combination of
REVERSE/LOOP values; ensure the test checks the exact generated snippet (or a
strict regex) that contains "reverse: <value>" and "loop: <value>" within the
createAnimation call so future wiring/field-order regressions are caught.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: c5090c97-f7a9-4664-b1f1-5ac83202cbf0
📒 Files selected for processing (10)
blocks/animate.jsgenerators/generators-animate.jslocale/de.jslocale/en.jslocale/es.jslocale/fr.jslocale/it.jslocale/pl.jslocale/pt.jslocale/sv.js
Motivation
animate_keyframesandanimationblocks had theLOOPandREVERSEcheckboxes in the opposite order compared to other animate blocks, causing UI inconsistency.Description
REVERSE/LOOPfield placement inanimate_keyframesandanimationinblocks/animate.jssoREVERSEappears beforeLOOP.generators/generators-animate.jsto readREVERSEbeforeLOOPand to emit the generated animation options withreversebeforeloopfor consistency.locale/en.js,locale/fr.js,locale/es.js,locale/de.js,locale/it.js,locale/pl.js,locale/pt.js, andlocale/sv.jsso tooltips/labels reflect the newreverse-then-loopwording order.Testing
npx eslint blocks/animate.js generators/generators-animate.js locale/en.js locale/fr.js locale/es.js locale/de.js locale/it.js locale/pl.js locale/pt.js locale/sv.js, which completed without errors for the changed files.npm run -s lint, which failed due to many pre-existing repository-wide lint issues unrelated to this change.reversebeforeloopto match the UI.Codex Task
Summary by CodeRabbit
Release Notes