feat(compare): filter the ranking table by repository name#107
Open
renatoguimaraescb wants to merge 1 commit into
Open
feat(compare): filter the ranking table by repository name#107renatoguimaraescb wants to merge 1 commit into
renatoguimaraescb wants to merge 1 commit into
Conversation
Mirrors the search input already used by the /[tenant]/repos list so the compare table can be narrowed by name. The input only appears once the org has more than five repos (same threshold as repo-list) to avoid clutter on small tenants. Best/worst highlights still reference the full set — the filter narrows the visible rows, not the comparison universe. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a repository-name filter to
/[tenant]/compare, mirroring the search input already used on/[tenant]/repos. Once an org has more than 5 repos, a search box shows up in the Repository Ranking card header — typing narrows both the desktop table and the mobile card stack to repositories whose names contain the query.Design notes
RepoList: input only appears whenrepos.length > 5so small tenants stay uncluttered.filteredruns first, thensortedorders the matches. Both memoized."No repositories match '{query}'"message takes its place. The empty-state for "org has zero repos" stays untouched.compare.searchPlaceholderandcompare.noMatchesinen-USandpt-BR.Test plan
tsc --noEmit— cleannpm run lint— 0 errors (preexisting warnings only)npm run test— 212/212 passingnpm run build— production build OK/clickbus/compareon a tenant with > 5 repos and confirm the input shows up; type a partial name and verify the table narrows🤖 Generated with Claude Code