Language Filter Dropdown Silently Truncates Languages

已关闭 适合新手
#289 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

@PrithvijitBose 已经在做这个了。

开始于 2026年10月2日。

  • #290 来自 @PrithvijitBose —— 未关闭

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
85/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript
领域
frontend

调研方向

打开 RepositoryPage.jsx,检查如何从 allRepos 构建语言列表,尤其是 .slice(0, 10) 调用和 'All Languages' 条目。使用包含超过九种语言的组织验证下拉菜单。当每种不同的仓库语言都可用于筛选时即表示完成,包括在仓库列表后面遇到的语言。

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

描述

bug

In RepositoryPage.jsx

Image
What Exactly Goes Wrong?
  1. 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.
  1. 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

Image

You will not Find "Python" although it was updated few hours ago

Image
主要语言
JavaScript
星标
48
派生
169
平均合并
4 天 13 小时
30 天内合并 PR
25

环境准备

从这里开始

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

AOSSIE-Org/OrgExplorer 的其他 Issue

查看 AOSSIE-Org/OrgExplorer 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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