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

* chore: enrich list of visible release channels

* ci: Autofix updates from GitHub workflow

---------

Co-authored-by: ivasilov <568291+ivasilov@users.noreply.github.com>
This commit is contained in:
Paul Cioancaandivasilov authored and GitHub committed 2025-07-23 20:21:39 +03:00
1 parent eaa2f2e68b
commit e931323b41
1 file changed
+7 -6
@@ -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>
),