Language Filter Dropdown Silently Truncates Languages
维护者通常 4 天内回复
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 85/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
- 领域
- frontend
调研方向
打开 RepositoryPage.jsx,检查如何从 allRepos 构建语言列表,尤其是 .slice(0, 10) 调用和 'All Languages' 条目。使用包含超过九种语言的组织验证下拉菜单。当每种不同的仓库语言都可用于筛选时即表示完成,包括在仓库列表后面遇到的语言。
由索引模型根据 Issue 内容生成。
描述
In RepositoryPage.jsx
What Exactly Goes Wrong?
- Only 9 Languages Can Ever Exist in the Dropdown:
- Index 0 of the array is 'All Languages'.
- The .slice(0, 10) restricts the total array length to 10 elements.
- That means only 9 unique programming languages are ever allowed into the dropdown.
- If an organization has 10, 15, or 25 languages across its repositories, every language after the 9th is silently dropped.
- Arbitrary Insertion Order (Not Even Popularity-Based):
- new Set(...) preserves the order in which items are first encountered in allRepos.
- So whichever 9 languages happened to appear first in the API response fill up the 9 slots.
- A repository with 5,000 stars written in Go or Rust might have its language completely omitted from the filter if it - appeared further down in the list!
Example
If you visit Adobe's Org
You will not Find "Python" although it was updated few hours ago
- 主要语言
- JavaScript
- 星标
- 48
- 派生
- 169
- 平均合并
- 4 天 13 小时
- 30 天内合并 PR
- 25
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AOSSIE-Org/OrgExplorer 的其他 Issue
-
[BUG]: `fetchWithCache` crashes with `SyntaxError: Unexpected end of JSON input` when encountering empty repositories (HTTP 204 No Content)可能已有人在做 @Devnil434 于 5 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
AOSSIE-Org/OrgExplorer#433 · 1 条评论 ·
维护者通常 4 天内回复
-
[BUG]: Table sort headers can't be used from the keyboard and don't announce sort order可能已有人在做 @Simran-Sobhani 于 6 天前认领。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 78/100
AOSSIE-Org/OrgExplorer#419 · 2 条评论 ·
维护者通常 4 天内回复
-
[BUG]: Connect PAT modal saves invalid GitHub tokens without validation可能重新可做 @Prince-ES 于 9 天前认领,目前没有进行中的 PR。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
AOSSIE-Org/OrgExplorer#416 · 1 条评论 ·
维护者通常 4 天内回复
-
[BUG]: Avoid triggering Release Drafter for closed, unmerged pull requests可能已有人在做 @Praveena2809 于 6 天前认领。 未关闭bug
难度 1/5 1 小时以内 新手友好度 82/100
AOSSIE-Org/OrgExplorer#414 · 2 条评论 ·
维护者通常 4 天内回复
-
[BUG]: Overview "Language Distribution" percentages are relative to the top-7 languages, not all repos可能已有人在做 @Rohit270406 于 11 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
AOSSIE-Org/OrgExplorer#402 · 1 条评论 ·
维护者通常 4 天内回复
查看 AOSSIE-Org/OrgExplorer 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
riverqueue/river#1576 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
good first issue help wanted
难度 1/5 1 小时以内 新手友好度 88/100
modrollstudio/Modroll-Studio-Website#80 · 1 条评论 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 85/100
mafzalkalwardev/mailforge#21 ·
-
good first issue help wanted
难度 1/5 1 小时以内 新手友好度 82/100