Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: reduce list of visible release channels (#37414)

Paul Cioancae931323b41a8
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
index fad9ce3c3c4..5fa6bc930c8 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
@@ -65,8 +65,9 @@ const InfrastructureInfo = () => {
const currentPgVersion = (current_app_version ?? '')
.split('supabase-postgres-')[1]
?.replace('-orioledb', '')
- const isOnNonGenerallyAvailableReleaseChannel =
- current_app_version_release_channel && current_app_version_release_channel !== 'ga'
+ const isVisibleReleaseChannel =
+ current_app_version_release_channel &&
+ !['ga', 'withdrawn'].includes(current_app_version_release_channel)
? current_app_version_release_channel
: undefined
const isOrioleDb = useIsOrioleDb()
@@ -144,16 +145,16 @@ const InfrastructureInfo = () => {
value={currentPgVersion || serviceVersions?.['supabase-postgres'] || ''}
label="Postgres version"
actions={[
- isOnNonGenerallyAvailableReleaseChannel && (
+ isVisibleReleaseChannel && (
<Tooltip>
<TooltipTrigger>
<Badge variant="warning" className="mr-1 capitalize">
- {isOnNonGenerallyAvailableReleaseChannel}
+ {isVisibleReleaseChannel}
</Badge>
</TooltipTrigger>
<TooltipContent side="bottom" className="w-44 text-center">
- This project uses a {isOnNonGenerallyAvailableReleaseChannel}{' '}
- database version release
+ This project uses a {isVisibleReleaseChannel} database version
+ release
</TooltipContent>
</Tooltip>
),