diff --git a/dashboard/src/main/home/app-dashboard/create-app/CreateApp.tsx b/dashboard/src/main/home/app-dashboard/create-app/CreateApp.tsx index 5aa959875b..0d0ae21855 100644 --- a/dashboard/src/main/home/app-dashboard/create-app/CreateApp.tsx +++ b/dashboard/src/main/home/app-dashboard/create-app/CreateApp.tsx @@ -409,6 +409,8 @@ const CreateApp: React.FC = ({ history }) => { // TODO: create a more unified way of parsing form/apply errors, unified with the logic in AppDataContainer const errorKeys = Object.keys(errors); if (errorKeys.length > 0) { + const stringifiedJson = JSON.stringify(errors); + let errorMessage = "App could not be deployed as defined."; if (errorKeys.includes("app")) { const appErrors = Object.keys(errors.app ?? {}); @@ -431,7 +433,7 @@ const CreateApp: React.FC = ({ history }) => { void updateAppStep({ step: "stack-launch-failure", - errorMessage: `Form validation error: ${errorMessage}`, + errorMessage: `Form validation error (visible to user): ${errorMessage}. Stringified JSON errors (invisible to user): ${stringifiedJson}`, appName: name.value, }); diff --git a/dashboard/src/shared/ClusterResourcesContext.tsx b/dashboard/src/shared/ClusterResourcesContext.tsx index 0a3038b6fd..cbb625a26a 100644 --- a/dashboard/src/shared/ClusterResourcesContext.tsx +++ b/dashboard/src/shared/ClusterResourcesContext.tsx @@ -41,7 +41,7 @@ const ClusterResourcesProvider = ({ }): JSX.Element => { const { currentCluster, currentProject } = useContext(Context); - var { + const { maxCPU, maxRAM, defaultCPU, @@ -56,21 +56,14 @@ const ClusterResourcesProvider = ({ clusterStatus: currentCluster?.status, }); - if (currentProject?.sandbox_enabled) { - defaultCPU = 0.1 - defaultRAM = 120 - maxRAM = 250 - maxCPU = 0.2 - } - return (