diff --git a/apps/console/app/routes/apps/$clientId/storage.ostrich.tsx b/apps/console/app/routes/apps/$clientId/storage.ostrich.tsx index 32d2b9c4f..2d3614e75 100644 --- a/apps/console/app/routes/apps/$clientId/storage.ostrich.tsx +++ b/apps/console/app/routes/apps/$clientId/storage.ostrich.tsx @@ -58,6 +58,7 @@ import { packageTypeToTopUpPriceID, } from '@proofzero/utils/external-app-data' import ExternalAppDataPackages from '@proofzero/utils/externalAppDataPackages' +import { HiExclamationTriangle } from 'react-icons/hi2' export const loader: LoaderFunction = getRollupReqFunctionErrorWrapper( async ({ request, context, params }) => { @@ -382,6 +383,42 @@ export default () => { )} + {appDetails.externalAppDataPackageDefinition && + appDetails.externalAppDataPackageDefinition.status === + ExternalAppDataPackageStatus.Enabled && + !appDetails.externalAppDataPackageDefinition.autoTopUp && + appExternalStorageUsage && + (appExternalStorageUsage.readUsage >= + Math.floor(0.9 * appExternalStorageUsage.readAvailable) || + appExternalStorageUsage.writeUsage >= + Math.floor(0.9 * appExternalStorageUsage.writeAvailable)) && ( +
+ + +
+ + Number of Reads / Writes available dropped below 10% in your + Data Unit Package. Upgrade Package or enable auto-top up to + ensure your services run as expected. + +
+ + +
+ )} +