[FEATURE]: Add repository search/filter to the Overview page

オープン
#408 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Sparsh2105 がすでに取り組んでいます。

2026年10月24日 から。

  • #409 @Sparsh2105 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript, react
領域
frontend, search

調査の方向性

Read src/pages/OverviewPage.jsx and compare the existing search inputs on GovernancePage.jsx and RepositoriesPage.jsx. The issue names the current topRepos calculation and the C.input style in src/components/UI.jsx; use those as entry points. Done means matching repository names appear as the query changes, the empty query keeps the top five, and an active query shows the result count. A linked open pull request (#409) indicates work is already underway.

索引モデルが issue の本文から書いたものです。

説明

enhancement
Feature and its Use Cases

[FEATURE]: Add repository search/filter to the Overview page

Feature and its Use Cases

What is the feature?

The Overview page currently shows a hardcoded "High Impact Repositories" card with the top 5 repos sorted by health score. There is no way to search or filter across the full repository list from this page.

The feature adds a live search input above the "High Impact Repositories" card that filters totalRepos by repo name as the user types. The card would then display matching results instead of only the fixed top 5.

Current behavior

In src/pages/OverviewPage.jsx, topRepos is always computed as:

const topRepos = [...filteredRepos].sort((a, b) => b.healthScore - a.healthScore).slice(0, 5)

There is no user input — the list is always exactly 5 repos, always sorted by health score, with no way to look up a specific repo by name.

Proposed behavior
  1. A search input (text box) appears above the "High Impact Repositories" card
  2. As the user types, topRepos is filtered to repos whose name includes the query (case-insensitive)
  3. When the search is empty, it falls back to the existing behaviour — top 5 by health score
  4. The result count is shown (e.g. "3 of 47 repos") when a query is active
How would users benefit?
  • Organizations with many repos (50+) make the fixed top-5 view almost useless — users can't find specific repos without navigating away to the full Repositories page
  • Users doing a quick check on a specific repo (e.g. "what is the health score of my-api?") currently have no way to do that from the Overview
  • It reuses data already in memory (totalRepos / filteredRepos) — zero extra API calls
Affected file
  • src/pages/OverviewPage.jsx — single file change, roughly 15–20 lines added
Proposed implementation sketch
// 1. Add state
const [repoSearch, setRepoSearch] = useState('')

// 2. Replace the hardcoded topRepos computation
const topRepos = repoSearch.trim()
  ? filteredRepos
      .filter(r => r.name.toLowerCase().includes(repoSearch.trim().toLowerCase()))
      .sort((a, b) => b.healthScore - a.healthScore)
      .slice(0, 10)
  : [...filteredRepos].sort((a, b) => b.healthScore - a.healthScore).slice(0, 5)

// 3. Add input above the card
<input
  value={repoSearch}
  onChange={e => setRepoSearch(e.target.value)}
  placeholder="Search repositories..."
  style={{ ...C.input, marginBottom: 12, width: '100%' }}
/>

Additional Context

  • The C.input style object already exists in src/components/UI.jsx — consistent styling is already available
  • The filteredRepos array already respects the org filter dropdown (multi-org mode), so search will naturally scope to the selected org
  • Similar search inputs already exist on GovernancePage.jsx and RepositoriesPage.jsx — this follows the same pattern used elsewhere in the codebase
  • No new dependencies needed
Additional Context

No response

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要言語
JavaScript
スター
53
フォーク
182
平均マージ
18分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/OrgExplorer のほかの issue

AOSSIE-Org/OrgExplorer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。