Skip to content

Commit e931323

Browse files
pcncivasilov
andauthored
chore: reduce list of visible release channels (supabase#37414)
* chore: enrich list of visible release channels * ci: Autofix updates from GitHub workflow --------- Co-authored-by: ivasilov <[email protected]>
1 parent eaa2f2e commit e931323

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ const InfrastructureInfo = () => {
6565
const currentPgVersion = (current_app_version ?? '')
6666
.split('supabase-postgres-')[1]
6767
?.replace('-orioledb', '')
68-
const isOnNonGenerallyAvailableReleaseChannel =
69-
current_app_version_release_channel && current_app_version_release_channel !== 'ga'
68+
const isVisibleReleaseChannel =
69+
current_app_version_release_channel &&
70+
!['ga', 'withdrawn'].includes(current_app_version_release_channel)
7071
? current_app_version_release_channel
7172
: undefined
7273
const isOrioleDb = useIsOrioleDb()
@@ -144,16 +145,16 @@ const InfrastructureInfo = () => {
144145
value={currentPgVersion || serviceVersions?.['supabase-postgres'] || ''}
145146
label="Postgres version"
146147
actions={[
147-
isOnNonGenerallyAvailableReleaseChannel && (
148+
isVisibleReleaseChannel && (
148149
<Tooltip>
149150
<TooltipTrigger>
150151
<Badge variant="warning" className="mr-1 capitalize">
151-
{isOnNonGenerallyAvailableReleaseChannel}
152+
{isVisibleReleaseChannel}
152153
</Badge>
153154
</TooltipTrigger>
154155
<TooltipContent side="bottom" className="w-44 text-center">
155-
This project uses a {isOnNonGenerallyAvailableReleaseChannel}{' '}
156-
database version release
156+
This project uses a {isVisibleReleaseChannel} database version
157+
release
157158
</TooltipContent>
158159
</Tooltip>
159160
),

0 commit comments

Comments
 (0)