Motion error #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Error: Error
Environment
node 24.21.00.2.11Can you fix it?
Fixed. The bug was in
frontend/app/services/Tooltip.js: motion'sanimate()only accepts its own easing names (easeIn,easeOut, …), not CSS keywords, and the tooltip passed'ease-in'/'ease-out', which throwsInvalid easing type 'ease-in'.Changes
frontend/app/services/Tooltip.jsease: 'ease-out'→ease: 'easeOut'ease: 'ease-in'→ease: 'easeIn'The CSS
ease-in-outdeclarations inToastManager.vueand theeasetransitions in<style>blocks are untouched — those are real CSS and valid.Test
Added
tests/motion-easing.test.jsfollowing the existing convention of reading frontend sources (no dependencies installed at repo root, liketests/map-viewer.test.js). It checks that the tooltip still has both ease options, that they are strings motion accepts, and that no frontend.js/.ts/.vueanimation uses a CSS keyword as motion easing.Ran
node --test tests/from the repo root: 73 tests pass, 0 fail (including the 3 new ones).Implementation is ready for review: #37