-
- 6-hour wait period between disk modifications
-
-
- You can't modify your disk configuration until the 6-hour cool down period ends.
- You can however change the compute size..
-
+
+
+
+ 6-hour cooldown period is in progress
+
+
+ You can't modify your disk configuration again until the 6-hour cool down period
+ ends.
+
+
diff --git a/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementCoolDownSection.tsx b/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementCoolDownSection.tsx
index b90e7389a2d..c3df91e6a20 100644
--- a/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementCoolDownSection.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementCoolDownSection.tsx
@@ -1,9 +1,7 @@
+import CountdownTimerRadial from 'components/ui/CountdownTimer/CountdownTimerRadial'
import { AnimatePresence, motion } from 'framer-motion'
-import { X } from 'lucide-react'
import React, { useEffect, useState } from 'react'
-
-import { DialogSection, TableCell, TableRow } from 'ui'
-import CountdownTimerRadial from '../../../ui/CountdownTimer/CountdownTimerRadial'
+import { DialogSection } from 'ui'
export const DiskMangementCoolDownSection: React.FC = () => {
const [progress, setProgress] = useState(100)
@@ -39,8 +37,6 @@ export const DiskMangementCoolDownSection: React.FC = () => {
return () => clearTimeout(initialDelay)
}, [])
- const MotionTableRow = motion(TableRow)
-
return (
{isVisible && (
@@ -51,7 +47,7 @@ export const DiskMangementCoolDownSection: React.FC = () => {
className="w-full"
>
-
+
{showCountdown && (
{
This is due to a cooldown period between disk changes.
-
+ */}
)}
diff --git a/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx b/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx
index 18a218303d1..78d12f36505 100644
--- a/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx
@@ -54,7 +54,7 @@ export default function DiskSpaceBar({ form }: DiskSpaceBarProps) {
const databaseSizeBytes = data?.result[0].db_size ?? 0
return (
-
+
{usedSize.toFixed(2)}
@@ -75,7 +75,7 @@ export default function DiskSpaceBar({ form }: DiskSpaceBarProps) {
diff --git a/apps/studio/components/interfaces/DiskManagement/ui/NoticeBar.tsx b/apps/studio/components/interfaces/DiskManagement/ui/NoticeBar.tsx
index dc5848692a3..aa2285b7745 100644
--- a/apps/studio/components/interfaces/DiskManagement/ui/NoticeBar.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/ui/NoticeBar.tsx
@@ -1,30 +1,40 @@
-import { Card, CardContent } from 'ui'
-import { formatComputeName } from '../DiskManagement.utils'
+import { AnimatePresence, motion } from 'framer-motion'
import { LucideIcon } from 'lucide-react'
+import { Card, CardContent } from 'ui'
interface NoticeBarProps {
title?: string
description?: string
icon?: LucideIcon
+ visible: boolean
}
export function NoticeBar({
+ visible,
title = 'Project about to restart',
description = `This project is about to restart to change compute to.`,
icon: Icon,
}: NoticeBarProps) {
return (
-
-
- {Icon && }
-
-
{title}
-
{description}
-
-
-
+
+
+ {visible && (
+
+
+ {Icon && }
+
+
{title}
+
{description}
+
+
+
+ )}
+
+
)
}
diff --git a/apps/studio/components/layouts/ProjectLayout/ResizingState.tsx b/apps/studio/components/layouts/ProjectLayout/ResizingState.tsx
index d5bc190f251..9a2d96d34e5 100644
--- a/apps/studio/components/layouts/ProjectLayout/ResizingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/ResizingState.tsx
@@ -24,13 +24,15 @@ export const ResizingState = () => {
-
+
-
-
Resizing project...
+
+
Resizing Project Compute size
- Your project is being restarted to apply compute size changes. It can take a few
- minutes. Your project will be offline while it is being restarted.
+ Your project is being restarted to apply compute size changes.
+
+
+ This can take a few minutes. Project will be offline while it is being restarted.
diff --git a/apps/studio/components/ui/CountdownTimer/CountdownTimerSpan.tsx b/apps/studio/components/ui/CountdownTimer/CountdownTimerSpan.tsx
index db91c93dec1..166e7818ae0 100644
--- a/apps/studio/components/ui/CountdownTimer/CountdownTimerSpan.tsx
+++ b/apps/studio/components/ui/CountdownTimer/CountdownTimerSpan.tsx
@@ -17,25 +17,27 @@ const CountdownTimerSpan = ({ seconds }: CountdownTimerSpanProps) => {
const formatValue = (value: number) => value.toString().padStart(2, '0')
return (
-
-
- hr
-
- m
-
- s
+
+ Time remaining:
+
+
+ hr
+
+ m
+
+
)
}