WordPress / WordPress/pattern-directory
Inconsistent categories within inspector and submission modal
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 134
- Forks
- 46
- Avg merge
- 9h 4m
- Merged PRs (30d)
- 19
Description
Describe the bug
The categories on both should be generally matched to the patterns available in WordPress core (source) and the incoming work on category refinement in https://github.com/WordPress/gutenberg/issues/47847. Most notably, the Inspector category list still has categories we are not actively surfacing.
- About
- Audio
- Banners
- Call to Action
- Contact
- Footers
- Gallery
- Headers
- Portfolio
- Posts
- Services
- Team
- Testimonials
- Text
- Video
- Wireframe
Note that I've omitted the "Featured" category (which we don't provide a UI for selection anyhow) but I don't think we should be shipping any core patterns as "Featured" on a site https://github.com/WordPress/pattern-directory/issues/612.
To Reproduce
- Add a pattern, see categories in the block inspector.
- Press "Submit", and hit "Next" until you see the categories in the submission modal.
- See how they are different.
Expected behavior
The same categories (as listed above) are available in each area.
Screenshots
Contributor guide
No contributing guide indexed for this repository
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
Reproduce the mismatch by checking the categories in the block inspector, then advancing through the submission modal to its category step. Compare both lists with the WordPress core patterns and the categories listed in this issue; done means both areas expose the same intended categories and omit unsupported ones.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100