Skip to content

Commit 89221af

Browse files
filiptronicekgeropl
andcommitted
Improve GitLab search length help text
Co-authored-by: Gero Posmyk-Leinemann <[email protected]>
1 parent c50559b commit 89221af

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/dashboard/src/components/RepositoryFinder.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,15 +341,18 @@ export default function RepositoryFinder({
341341
!onlyConfigurations &&
342342
searchString.length > 0 &&
343343
searchString.length < 3 &&
344-
authProviders.data?.some((p) => p.type === AuthProviderType.GITLAB)
344+
usedProviders.includes("GitLab")
345345
) {
346346
// add an element that tells the user that GitLab only does exact searches for short queries
347347
result.push({
348348
id: "gitlab",
349349
element: (
350350
<div className="text-sm text-pk-content-tertiary flex items-center">
351351
<Exclamation2 className="w-4 h-4 mr-2" />
352-
<span>Search is too short for searching on GitLab.</span>
352+
<span>
353+
Search text is &lt; 3 characters. GitLab will only show exact matches for short
354+
searches.
355+
</span>
353356
</div>
354357
),
355358
isSelectable: false,

0 commit comments

Comments
 (0)