Skip to content

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

@ekamran

Description

@ekamran

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions