Automattic / Automattic/jetpack

Instant Search: category filter when there's only one category

Open
#16,000 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Search Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Is your feature request related to a problem? Please describe.
The deafult category for posts is "Uncategorized". Jetpack Instant Search currently surfaces this category as an option to filter on, even when it's the only category used:
Screen Shot 2020-05-27 at 4 18 14 PM

#### Describe the solution you'd like
One solution would be to not offer the category filters in setup if there’s only one category.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Jetpack Instant Search setup code that builds category filters, then reproduce the case where “Uncategorized” is the only category. Determine how the filter options are generated and add coverage for a single-category site; done means no category filter is offered when only one category exists, while multiple categories still remain filterable.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.