enhancement: Add 1-click Clear button (X) inside SearchField
维护者通常 1 天内回复
@aryansinha1908 已经在做这个了。
开始于 2026年10月23日。
评估
这个 Issue 还没有评估数据。
描述
In src/features/leaderboard/components/search-field.tsx, users can filter developers or countries by typing into the search input. While keyboard users can press Escape to clear, mouse and touch users must manually backspace all characters.
Motivation
A clear button (X) is standard search input UX on desktop and mobile, enabling fast filter reset.
Tasks
- When
value.trim().length > 0, render an icon button withX(fromlucide-react) positioned atend-2.5. - Clicking the button calls
onChange("")and retains focus on the input. - Ensure the shortcut badge
/is hidden when the clear button is shown to avoid visual overlap. - Provide an accessible
aria-labelfor screen readers.
Files to Check
src/features/leaderboard/components/search-field.tsxsrc/locales/en.json&src/locales/ar.json
[!TIP]
🚀 Want to contribute?
Commentassign meto be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨
- 主要语言
- TypeScript
- 星标
- 31
- 派生
- 25
- 平均合并
- 10 小时 4 分钟
- 30 天内合并 PR
- 29
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
O2sa/DevImpact 的其他 Issue
-
a11y beginner friendly easy enhancement good first issue ui
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug: InsightsList incorrectly favors User 1 when metrics are tied可能已有人在做 @sarmad-jalil 于 1 天前认领。 未关闭beginner friendly bug easy good first issue typescript
难度 2/5 1-3 小时 新手友好度 90/100
O2sa/DevImpact#268 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
feature: Add custom branded not-found.tsx page for 404 routes可能已有人在做 @sarmad-jalil 于 1 天前认领。 未关闭beginner friendly easy feature good first issue nextjs ui
O2sa/DevImpact#271 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
check:passed streams:add
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
area:agents area:cost bug platform:macos
难度 2/5 1-3 小时 新手友好度 77/100
anthropics/claude-code#105375 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
-
难度 2/5 1-3 小时 新手友好度 79/100
galaxyproject/loom#616 ·
维护者通常 1 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 79/100
redhat-developer/rhdh-plugin-export-overlays#4580 · 1 条评论 ·
维护者通常 1 天内回复