diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx index 03783ead682..b7f5d538551 100644 --- a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx +++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx @@ -397,37 +397,37 @@ export function DiskManagementForm() { return
Error: {error.message}
} - if (planId === 'free') { - return ( -
- - - - - Disk size configuration is not available for projects on the Free Plan - - -

- If you are intending to use more than 500MB of disk space, then you will need to - upgrade to at least the Pro Plan. -

- -
-
-
- ) - } + // if (planId === 'team') { + // return ( + //
+ // + // + // + // + // Disk size configuration is not available for projects on the Free Plan + // + // + //

+ // If you are intending to use more than 500MB of disk space, then you will need to + // upgrade to at least the Pro Plan. + //

+ // + //
+ //
+ //
+ // ) + // } // return <> @@ -750,39 +750,6 @@ export function DiskManagementForm() { label="IOPS" description={
-
- {/* {watchedStorageType === 'io2' ? ( - <> - - IOPS must be{' '} - {watchedTotalSize >= 8 - ? `between ${minIOPS} and ${maxIOPS.toLocaleString()} based on your disk size.` - : `at least ${minIOPS}`} - - - For io2 storage type, min IOPS is at {minIOPS}, while max IOPS is - at 1000 * disk size in GB or{' '} - {IOPS_RANGE[DiskType.IO2].max.toLocaleString()}, whichever is - lower - - - ) : ( - <> - - IOPS must be{' '} - {watchedTotalSize >= 8 - ? `between ${minIOPS.toLocaleString()} and ${maxIOPS.toLocaleString()} based on your disk size.` - : `at least ${minIOPS.toLocaleString()}`} - - - For gp3 storage type, min IOPS is at {minIOPS} while max IOPS is - at 500 * disk size in GB or{' '} - {IOPS_RANGE[DiskType.GP3].max.toLocaleString()}, whichever is - lower - - - )} */} -
} /> - {/* {!form.formState.errors.provisionedIOPS && - field.value > maxIopsBasedOnCompute && ( -

- Note: Final usable IOPS will be at{' '} - - {maxIopsBasedOnCompute.toLocaleString()} - {' '} - based on your current compute size of {currentCompute?.name} -

- )} */} - {!form.formState.errors.provisionedIOPS && ( -
-
- {/* - Throughput must be between {minThroughput.toLocaleString()}{' '} - and {maxThroughput?.toLocaleString()} MB/s based on your IOPS. - - - Min throughput is at 125MB/s, while max throughput is at - 0.25MB/s * IOPS or 1,000, whichever is lower - */} -
- {!form.formState.errors.throughput && - field.value !== undefined && - field.value > maxThroughputBasedOnCompute && ( -

- Note: Final usable throughput will be at{' '} - - {maxThroughputBasedOnCompute.toFixed(0)} - {' '} - MB/s based on your current compute size of{' '} - {currentCompute?.name} -

- )} -
- {!form.formState.errors.throughput && ( - - )} -
+ !form.formState.errors.throughput && ( + + ) } labelOptional={ <>