Add service version to project infra page

This commit is contained in:
Joshen Lim committed 2023-09-20 20:47:03 +08:00
1 parent 46c429dc4f
commit f8f712ad5d
2 files changed
+16 -3

No files matched your search

@@ -65,8 +65,8 @@ const InfrastructureInfo = () => {
</ScaffoldSection>
<ScaffoldSection className="!pt-0">
<ScaffoldSectionDetail>
<p>Postgres</p>
<p className="text-scale-1000 text-sm">Information on your Postgres instance</p>
<p>Service Versions</p>
<p className="text-scale-1000 text-sm">Information on your provisioned instance</p>
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
{isLoadingUpgradeEligibility && <GenericSkeletonLoader />}
@@ -75,11 +75,23 @@ const InfrastructureInfo = () => {
)}
{isSuccessUpgradeEligibility && (
<>
<Input
readOnly
disabled
label="GoTrue version"
value={project?.serviceVersions.gotrue ?? ''}
/>
<Input
readOnly
disabled
label="PostgREST version"
value={project?.serviceVersions.postgrest ?? ''}
/>
<Input
readOnly
disabled
value={currentPgVersion}
label="Current version"
label="Postgres version"
actions={[
isOnLatestVersion && (
<Tooltip.Root key="tooltip-latest" delayDuration={0}>
+1
View File
@@ -35,6 +35,7 @@ export interface Project extends ProjectBase {
maxDatabasePreprovisionGb?: string | null
parent_project_ref?: string
is_branch_enabled?: boolean
serviceVersions: { gotrue: string; postgrest: string; 'supabase-postgres': string }
/**
* postgrestStatus is available on client side only.