Skip to content

Commit c6d7092

Browse files
remove connection string badge in dropdown (supabase#39617)
1 parent bdd6b84 commit c6d7092

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

apps/studio/components/interfaces/Connect/Connect.constants.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,27 +361,24 @@ export type ConnectionStringMethod = 'direct' | 'transaction' | 'session'
361361

362362
export const connectionStringMethodOptions: Record<
363363
ConnectionStringMethod,
364-
{ value: string; label: string; description: string; badge: string }
364+
{ value: string; label: string; description: string }
365365
> = {
366366
direct: {
367367
value: 'direct',
368368
label: 'Direct connection',
369369
description:
370370
'Ideal for applications with persistent and long-lived connections, such as those running on virtual machines or long-standing containers.',
371-
badge: 'IPv4 Compatible',
372371
},
373372
transaction: {
374373
value: 'transaction',
375374
label: 'Transaction pooler',
376375
description:
377376
'Ideal for stateless applications like serverless functions where each interaction with Postgres is brief and isolated.',
378-
badge: 'IPv4 Compatible',
379377
},
380378
session: {
381379
value: 'session',
382380
label: 'Session pooler',
383381
description:
384382
'Only recommended as an alternative to Direct Connection, when connecting via an IPv4 network.',
385-
badge: 'IPv4 Only',
386383
},
387384
}

apps/studio/components/interfaces/Connect/DatabaseConnectionString.tsx

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -595,29 +595,6 @@ const ConnectionStringMethodSelectItem = ({
595595
<div className="text-foreground-lighter text-xs">
596596
{connectionStringMethodOptions[method].description}
597597
</div>
598-
<div className="flex items-center gap-1 mt-2">
599-
{method === 'session' ? (
600-
<Badge variant="outline" size="small" className="flex gap-1 text-foreground-lighter">
601-
<InfoIcon className="w-3 h-3" />
602-
{connectionStringMethodOptions[method].badge}
603-
</Badge>
604-
) : (
605-
<Badge variant="outline" size="small" className="flex gap-1 text-foreground-lighter">
606-
<GlobeIcon className="w-3 h-3" />
607-
{connectionStringMethodOptions[method].badge}
608-
</Badge>
609-
)}
610-
{method === 'transaction' && (
611-
<Badge variant="outline" size="small" className="text-foreground-lighter">
612-
{poolerBadge}
613-
</Badge>
614-
)}
615-
{method === 'session' && (
616-
<Badge variant="outline" size="small" className="text-foreground-lighter">
617-
Shared Pooler
618-
</Badge>
619-
)}
620-
</div>
621598
</div>
622599
</SelectItem_Shadcn_>
623600
)

0 commit comments

Comments
 (0)