Feature/fe implement framer motion animations for transaction filter sidebar#863
Merged
Conversation
|
@Thosine-01 is attempting to deploy a commit to the Emmanuel's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Thosine-01 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(frontend): Implement framer-motion animations for Transaction Filter Sidebar
Closes #789
Summary
This PR implements comprehensive framer-motion animations across the Transaction Filter Sidebar, making every interaction feel polished and intentional. All animations respect the user's
prefers-reduced-motionaccessibility setting viauseReducedMotion().Animations added
Desktop sidebar entrance
x: 24 → 0, spring stiffness 260)Staggered filter section reveal
staggerChildren: 0.06,y: 10 → 0)Collapsible Date Range section
0 → autovia spring — no layout jumpdateFromordateTois pre-filled (e.g. from URL params)aria-expandedattribute kept in sync for screen readersAsset button selection bounce
[1, 0.94, 1.03, 1]— satisfying confirmation of selectionscale: 1.04, y: -1)layoutprop ensures smooth repositioning when active state changesClear-search button spin entrance
×button appears withrotate: -45 → 0and exits withrotate: 0 → 45stiffness: 400, damping: 25) makes it feel snappyClear All success flash
#0A0A0A → #16a34a → #0A0A0A) with a scale pulseClose button rotation (mobile)
×button rotates 90° on hoverMobile drawer refinements
opacity: 0.5 → 1to the drawer entrance alongside the existing spring slideuseReducedMotionsupport0when the user's OS has reduced motion enabledduration: 0transitionduration: 0transitionFiles changed
frontend/src/components/TransactionFilterSidebar.tsx— full animation overhaulfrontend/src/components/TransactionFilterSidebar.test.tsx— updated tests covering all new animation states and collapsible behaviourTesting
cd frontend pnpm vitest run src/components/TransactionFilterSidebar.test.tsx pnpm tsc --noEmitChecklist
useReducedMotion()respected — all animations disabled when user prefers reduced motionaria-expanded,aria-pressed,aria-busy,aria-live)