@@ -24,6 +24,7 @@ import { PREDEFINED_REPOS } from "../data/git-providers/predefined-repos";
24
24
import { useConfiguration , useListConfigurations } from "../data/configurations/configuration-queries" ;
25
25
import { useUserLoader } from "../hooks/use-user-loader" ;
26
26
import { conjunctScmProviders , getDeduplicatedScmProviders } from "../utils" ;
27
+ import { cn } from "@podkit/lib/cn" ;
27
28
28
29
const isPredefined = ( repo : SuggestedRepository ) : boolean => {
29
30
return PREDEFINED_REPOS . some ( ( predefined ) => predefined . url === repo . url ) && ! repo . configurationId ;
@@ -169,9 +170,9 @@ export default function RepositoryFinder({
169
170
return (
170
171
< div className = "flex flex-col overflow-hidden" aria-label = { `Demo: ${ repo . url } ` } >
171
172
< div className = "flex items-center" >
172
- < GitpodRepositoryTemplate className = "w-5 h-5 text-pk-content-tertiary mr-2" />
173
+ < GitpodRepositoryTemplate className = "w-5 h-5 text-pk-content-secondary mr-2" />
173
174
< span className = "text-sm font-semibold" > { repo . repoName } </ span >
174
- < MiddleDot className = "px-0.5 text-pk-content-tertiary " />
175
+ < MiddleDot className = "px-0.5 text-pk-content-secondary " />
175
176
< span
176
177
className = "text-sm whitespace-nowrap truncate overflow-ellipsis text-pk-content-secondary"
177
178
title = { repo . repoPath }
@@ -313,7 +314,7 @@ export default function RepositoryFinder({
313
314
result . push ( {
314
315
id : "more" ,
315
316
element : (
316
- < div className = "text-sm text-pk-content-tertiary " > Repo missing? Try refining your search.</ div >
317
+ < div className = "text-sm text-pk-content-secondary " > Repo missing? Try refining your search.</ div >
317
318
) ,
318
319
isSelectable : false ,
319
320
} ) ;
@@ -328,7 +329,7 @@ export default function RepositoryFinder({
328
329
result . push ( {
329
330
id : "bitbucket-server" ,
330
331
element : (
331
- < div className = "text-sm text-pk-content-tertiary flex items-center" >
332
+ < div className = "text-sm text-pk-content-secondary flex items-center" >
332
333
< Exclamation2 className = "w-4 h-4 mr-2" />
333
334
< span > Bitbucket Server only supports searching by prefix.</ span >
334
335
</ div >
@@ -347,7 +348,7 @@ export default function RepositoryFinder({
347
348
result . push ( {
348
349
id : "gitlab" ,
349
350
element : (
350
- < div className = "text-sm text-pk-content-tertiary flex items-center" >
351
+ < div className = "text-sm text-pk-content-secondary flex items-center" >
351
352
< Exclamation2 className = "w-4 h-4 mr-2" />
352
353
< span >
353
354
Search text is < 3 characters. GitLab will only show exact matches for short
@@ -371,7 +372,7 @@ export default function RepositoryFinder({
371
372
result . push ( {
372
373
id : "whole-path-matching-unsupported" ,
373
374
element : (
374
- < div className = "text-sm text-pk-content-tertiary flex items-center" >
375
+ < div className = "text-sm text-pk-content-secondary flex items-center" >
375
376
< Exclamation2 className = "w-4 h-4 mr-2" />
376
377
< span >
377
378
{ usedProviders
@@ -390,7 +391,7 @@ export default function RepositoryFinder({
390
391
result . push ( {
391
392
id : "azure-devops" ,
392
393
element : (
393
- < div className = "text-sm text-pk-content-tertiary flex items-center" >
394
+ < div className = "text-sm text-pk-content-secondary flex items-center" >
394
395
< Exclamation2 className = "w-4 h-4 mr-2" />
395
396
< span > Azure DevOps doesn't support repository searching.</ span >
396
397
</ div >
@@ -453,18 +454,20 @@ const SuggestedRepositoryOption: FC<SuggestedRepositoryOptionProps> = ({ repo })
453
454
aria-label = { `${ repo . configurationId ? "Project" : "Repo" } : ${ repo . url } ` }
454
455
>
455
456
< span className = { "pr-2" } >
456
- < RepositoryIcon className = { `w-5 h-5 text-pk-content-tertiary ` } />
457
+ < RepositoryIcon className = { `w-5 h-5 text-pk-content-secondary ` } />
457
458
</ span >
458
459
459
460
{ name && (
460
461
< >
461
462
< span className = "text-sm whitespace-nowrap font-semibold" > { name } </ span >
462
- < MiddleDot className = "px-0.5 text-pk-content-tertiary " />
463
+ < MiddleDot className = "px-0.5 text-pk-content-secondary " />
463
464
</ >
464
465
) }
465
466
466
467
< span
467
- className = "text-sm whitespace-nowrap truncate overflow-ellipsis text-pk-content-secondary"
468
+ className = { cn ( "text-sm whitespace-nowrap truncate overflow-ellipsis" , {
469
+ "text-pk-content-secondary" : ! ! name ,
470
+ } ) }
468
471
title = { repoPath }
469
472
>
470
473
{ repoPath }
0 commit comments