Codeinwp / Codeinwp/otter-blocks
Add Filter for animationsList
Open
Nobody has claimed this yet.
doc-needed
new feature
- Dominant language
- JavaScript
- Stars
- 198
- Forks
- 36
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 30
Description
What problem does this address?
It would be a nice-to-have to add a filter for the animationsList. This would be especially useful for simplifying the list of animations shown in the editor.
What is your proposed solution?
import { applyFilters } from '@wordpress/hooks';
...
<AnimationPopover
animationsList={ applyFilters( 'otter.blockAnimation.animationsList', animationsList ) }
updateAnimation={ updateAnimation }
currentAnimationLabel={ currentAnimationLabel }
setCurrentAnimationLabel={ setCurrentAnimationLabel }
/>
Will this feature require documentation? (Optional)
Yes, it requires documentation.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the AnimationPopover usage and the animationsList value in the editor. Review the proposed @wordpress/hooks filter name, then verify that applying it lets consumers simplify the displayed animations and add the requested documentation; no test or documentation file is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation, frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100