WordPress / WordPress/pattern-directory

Block theme: Keep search term when changing categories.

Open
#674 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
We don't persist the search term when you change categories. Adding a keyword is a deliberate action that should persist until the user makes the deliberate action to remove it (which I logged an issue for here https://github.com/WordPress/pattern-directory/issues/673).

Reproduce
Steps to reproduce the behavior:

  1. Go to wp.org/patterns/
  2. Click on "Footers"
  3. Search for "copyright"
  4. Click "All"
  5. Notice the search keyword is no longer applied.

Expected
After clicking "All", I should still be filtering based on the search term.

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 behavior at wp.org/patterns/ by selecting Footers, searching for “copyright,” and then selecting All. Trace how the category change handles the search term, and verify that the keyword remains applied after changing categories while still being removable through the separate action described in issue 673.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.