Public search: expose section filters and facet counts to themes

Open
#725 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
laravel, php, postgresql
Domain
search

Research direction

Start with ListingView::$search and the SearchDetails class it exposes to themes, then trace how the query, pagination and total are built from the PostgreSQL search. Add the selected section, section counts across all matching results rather than the current page, and filter URLs that keep the query and language. Done when a theme can render section filters and pagination keeps the chosen section, checked by a search test in the Laravel test suite.

Written by the indexing model from the issue text.

Description

area/site area/themes type/enhancement when/later

The public search view model exposes the query, paginated results and total, but no section filter or section counts across all matching results. Counting the items on the current page would miss results on other pages.

Please expose the selected section, counts for the visible result set and filter URLs that preserve the query and language. Pagination should keep the selected section. The relevant surface is ListingView::$search (SearchDetails).

Dominant language
PHP
Stars
1
Forks
1
Avg merge
1h 40m
Merged PRs (30d)
143

Getting set up

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.

More from temecms/teme

All issues in temecms/teme

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.