open-code-review icon indicating copy to clipboard operation
open-code-review copied to clipboard

feat(viewer): add search filter to Repositories page

Open lizhengfeng101 opened this issue 4 months ago • 1 comments

Description

When the number of repositories grows large, it becomes difficult to find a specific repository on the Repositories landing page (/). A client-side search input that filters the repository table by fuzzy-matching against the repository name would significantly improve usability.

Currently, the repos page (internal/viewer/templates/repos.html) renders a static <table> listing all repositories returned by DiscoverRepos(). There is no filtering or search capability.

Scope

  • File(s): internal/viewer/templates/repos.html
  • Area: Repositories listing page (viewer home /)
  • This is a purely client-side change — add an <input> search box above the table and a small inline <script> that filters <tbody> rows as the user types (case-insensitive substring match on the repository name column).

Acceptance Criteria

  • [ ] An input field is displayed above the repositories table on the / page
  • [ ] Typing in the input filters rows in real-time (case-insensitive fuzzy/substring match on repository name)
  • [ ] When the filter text is cleared, all repositories are shown again
  • [ ] The filter works with 0 results gracefully (e.g., empty table body, no JS errors)
  • [ ] No external JS dependencies are introduced (vanilla JS only)
  • [ ] Tests pass (make test)
  • [ ] Code check passes (make check)

Context

This is a UX improvement for the built-in viewer web UI. The implementation should be lightweight — a small inline script in the template is sufficient. No backend changes are required since the filtering happens entirely on the client side.

lizhengfeng101 avatar Jul 31 '26 07:07 lizhengfeng101

Would like to take this up

amh1k avatar Jul 31 '26 07:07 amh1k