Skip to content

Commit 051a797

Browse files
TonybynMp4claude
andcommitted
fix(web): reviewer menu says when a host search has more matches than it returned
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 7f4f1dd commit 051a797

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestReviewerPicker.tsx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,15 @@ export function PullRequestReviewerPicker({
125125
errorLabel="The people with access could not be read."
126126
truncated={
127127
candidatesQuery.data?.truncated === true &&
128-
(query.trim().length === 0 || (searched && searchResult.error !== null))
128+
(query.trim().length === 0 ||
129+
(searched && (searchResult.error !== null || searchResult.data?.truncated === true)))
129130
}
130131
truncatedLabel={
131132
searched && searchResult.error !== null
132133
? `Only the people already listed are matched: the host search failed. ${searchResult.error}`
133-
: "This repository has more people with access than are listed here. Search to find them."
134+
: searched
135+
? "More people match than the host returned. Keep typing to narrow it down."
136+
: "This repository has more people with access than are listed here. Search to find them."
134137
}
135138
candidateKey={(candidate) => `${candidate.kind}:${candidate.id}`}
136139
disabled={pending !== null}

0 commit comments

Comments
 (0)