Themes: provide public search suggestions for a search overlay

未关闭
#752 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript, php
领域
api, search

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
PHP
星标
1
派生
1
平均合并
1 小时 40 分钟
30 天内合并 PR
143

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

temecms/teme 的其他 Issue

查看 temecms/teme 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。