diff --git a/apps/studio/components/grid/components/footer/pagination/Pagination.tsx b/apps/studio/components/grid/components/footer/pagination/Pagination.tsx
index 8c0ff3af65754..d9cc6f64e2d88 100644
--- a/apps/studio/components/grid/components/footer/pagination/Pagination.tsx
+++ b/apps/studio/components/grid/components/footer/pagination/Pagination.tsx
@@ -69,9 +69,10 @@ const Pagination = () => {
}
)
- const count = data?.is_estimate ? formatEstimatedCount(data.count) : data?.count.toLocaleString()
- const maxPages = Math.ceil((data?.count ?? 0) / tableEditorSnap.rowsPerPage)
- const totalPages = (data?.count ?? 0) > 0 ? maxPages : 1
+ const count = data?.count ?? 0
+ const countString = data?.is_estimate ? formatEstimatedCount(count) : count.toLocaleString()
+ const maxPages = Math.ceil(count / tableEditorSnap.rowsPerPage)
+ const totalPages = count > 0 ? maxPages : 1
const onPreviousPage = () => {
if (page > 1) {
@@ -202,7 +203,7 @@ const Pagination = () => {
- {`${count} ${data.count === 0 || data.count > 1 ? `records` : 'record'}`}{' '}
+ {`${countString} ${count === 0 || count > 1 ? `records` : 'record'}`}{' '}
{data.is_estimate ? '(estimated)' : ''}
@@ -217,7 +218,7 @@ const Pagination = () => {
icon={
}
onClick={() => {
// Show warning if either NOT a table entity, or table rows estimate is beyond threshold
- if (rowsCountEstimate === null || data.count > THRESHOLD_COUNT) {
+ if (rowsCountEstimate === null || count > THRESHOLD_COUNT) {
setIsConfirmFetchExactCountModalOpen(true)
} else snap.setEnforceExactCount(true)
}}
diff --git a/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx
index 75d12fc5d41b2..6f7245d9d5e14 100644
--- a/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx
@@ -33,6 +33,7 @@ import {
import { BillingChangeBadge } from '../ui/BillingChangeBadge'
import FormMessage from '../ui/FormMessage'
import { NoticeBar } from '../ui/NoticeBar'
+import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
/**
* to do: this could be a type from api-types
@@ -55,6 +56,8 @@ export function ComputeSizeField({ form, disabled }: ComputeSizeFieldProps) {
const { data: org } = useSelectedOrganizationQuery()
const { data: project, isLoading: isProjectLoading } = useSelectedProjectQuery()
+ const showComputePrice = useIsFeatureEnabled('project_addons:show_compute_price')
+
const { computeSize, storageType } = form.watch()
const {
@@ -221,21 +224,23 @@ export function ComputeSizeField({ form, disabled }: ComputeSizeFieldProps) {
) : (
- <>
-