Themes: provide public search suggestions for a search overlay

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, php
Domain
api, search

Research direction

Start from the existing public search page and the SearchDetails object it renders, since the new endpoint must apply the same visibility rules. Find where the GET search query is resolved and reuse that filter logic rather than duplicating it. Done means a documented, read-only endpoint returns a bounded list of visible story titles and URLs, language-aware, with tests showing hidden stories are excluded and the ?s= search still works unchanged. The interface design needs maintainer input first.

Written by the indexing model from the issue text.

Description

area/themes type/enhancement when/later

A theme with a search overlay can submit a visitor's query to the public search page with ?s=, but SearchDetails is available only when rendering that page. The overlay cannot request a short list of matching public stories while the visitor types using a documented theme interface.

Expected: a documented, language-aware, read-only search endpoint for theme JavaScript that returns a bounded number of visible story titles and URLs, with the same visibility rules as public search. The standard GET search should remain available for full results.

The port's search overlay submits to the existing public search page.

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.