Themes: provide public search suggestions for a search overlay

Aperta
#752 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, php
Ambito
api, search

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PHP
Stelle
1
Fork
1
Merge medio
1h 40m
PR unite (30g)
143

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temecms/teme

Tutte le issue di temecms/teme

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.