WordPress / WordPress/pattern-directory

Inconsistent categories within inspector and submission modal

Open
#611 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

[Component] Pattern Creator
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

  1. Add a pattern, see categories in the block inspector.
  2. Press "Submit", and hit "Next" until you see the categories in the submission modal.
  3. See how they are different.

Expected behavior

The same categories (as listed above) are available in each area.

Screenshots
CleanShot 2023-10-20 at 10 12 01
CleanShot 2023-10-20 at 10 14 26

Contributor guide

No contributing guide indexed for this repository

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.