WordPress / WordPress/pattern-directory

Draft empty state says “Create your first pattern” when the user already has patterns

Open Beginner friendly
#745 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
134
Forks
46
Avg merge
9h 4m
Merged PRs (30d)
19

Description

Describe the bug

On the WordPress.org Pattern Directory “My Patterns” page, the empty state for a filtered status view appears to use generic first-time-user copy.

This is confusing when the user already has patterns in other statuses.

For example, my main “My Patterns” view shows existing patterns, including published and pending patterns. But when I open the “Draft” filter and there are no draft patterns, the page says “Create your first pattern”.

In this case, the user does not need to create their first pattern. They only have no draft patterns.

To Reproduce

Steps to reproduce the behavior:

  1. Log in to WordPress.org with an account that already has submitted patterns.
  2. Go to https://wordpress.org/patterns/my-patterns/.
  3. Confirm that the “All” view shows existing patterns.
  4. Select the “Draft” status filter.
  5. If the account has no draft patterns, review the empty-state text and CTA.

Current behavior

The Draft view shows:

  • 0 patterns
  • “Anyone can create and share patterns using the familiar block editor. Design helpful starting points for yourself and any WordPress site.”
  • CTA: “Create your first pattern”

Expected behavior

The empty state should be aware of the selected filter/status.

If the user has patterns in other statuses but none in Draft, the copy should say something like:

No draft patterns

You do not have any draft patterns right now. Patterns that are saved but not submitted for review will appear here.

Suggested CTA:

Create a new pattern

Optional secondary link:

View all patterns

Screenshots

I can provide a screenshot if useful. The issue appears on:

https://wordpress.org/patterns/my-patterns/?status=draft

Desktop

  • OS: macOS
  • Browser: Chrome / Codex in-app browser
  • Site: WordPress.org Pattern Directory

Additional context

This copy appears correct for a first-time user with no patterns at all, but not for a user who has patterns in other statuses.

The current wording implies the user has no patterns at all, even when the user has published or pending patterns. This makes the Draft filter feel like it is showing the wrong account state.

Meta Trac’s Pattern Directory component notice points Pattern Directory issues to this GitHub repository, so I am filing it here instead of Meta Trac.

This is not the same as Meta Trac #7634. That ticket concerns the Pending Review list not showing all pending items. This issue is specifically about empty-state wording for filtered My Patterns views.

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

Start at the WordPress.org Pattern Directory “My Patterns” page, especially the ?status=draft view, and trace how its empty state chooses the heading, description, and CTA. Done means filtered views distinguish having no items in that status from having no patterns at all, while the first-time empty state remains unchanged; verify the All and Draft views for both account states.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.