Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Story Share portal: live search suggestions (autocomplete)

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
ruby

调研方向

从 /story_shares 的导航栏搜索和 StorySharesController 开始,然后检查现有的 Story.search_by_params/SearchCop 流程以及移动菜单搜索。添加具有所述可见性范围并满足键盘和 ARIA 要求的渐进式实时建议行为,并验证建议会链接到 stories,且在桌面和移动搜索中都能正常工作。

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

描述

enhancement stories

Context

The Story Share portal (/story_shares) navbar has a keyword search that submits to a full results page (?query=…). The live WordPress site (stories.awbw.org) additionally shows an AJAX live-suggestion dropdown (JetSearch) as you type, surfacing matching story titles before you submit.

What's needed

  • As-you-type suggestions below the portal search box: matching story titles (respecting the public/publicly_visible policy scope), each linking to the story.
  • Debounced requests to a lightweight JSON/Turbo-Stream endpoint on StorySharesController (or a small suggestions action), reusing Story.search_by_params/SearchCop.
  • Keyboard navigation (up/down/enter/escape) and outside-click dismiss; accessible (ARIA combobox/listbox).
  • Prefer Turbo (frame/stream) over bespoke JS where possible; a small Stimulus controller for debounce + keyboard handling is acceptable.
  • Must work on mobile (the portal search appears in the mobile menu too).

Notes

Plain submit-to-results search already ships in the portal-parity work; this issue is the progressive-enhancement layer on top.

主要语言
Ruby
星标
15
派生
28
平均合并
1 天 12 分钟
30 天内合并 PR
262

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

rubyforgood/awbw 的其他 Issue

查看 rubyforgood/awbw 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

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