Codeinwp / Codeinwp/otter-blocks

Add Filter for animationsList

Open
#2,677 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.