diff --git a/studio/components/interfaces/Authentication/Users/UserDropdown.tsx b/studio/components/interfaces/Authentication/Users/UserDropdown.tsx index 835588550b5..5a2e36dd827 100644 --- a/studio/components/interfaces/Authentication/Users/UserDropdown.tsx +++ b/studio/components/interfaces/Authentication/Users/UserDropdown.tsx @@ -106,6 +106,7 @@ const UserDropdown: FC<{ user: any }> = ({ user }) => { } else { ui.setNotification({ category: 'success', message: `Successfully deleted ${user.email}` }) PageState.users = PageState.users.filter((x: any) => x.id != user.id) + PageState.totalUsers -= 1 } setLoading(false) }, diff --git a/studio/components/interfaces/Authentication/Users/UsersList.tsx b/studio/components/interfaces/Authentication/Users/UsersList.tsx index 16a59383d58..23452cb9dbf 100644 --- a/studio/components/interfaces/Authentication/Users/UsersList.tsx +++ b/studio/components/interfaces/Authentication/Users/UsersList.tsx @@ -1,6 +1,6 @@ import { useContext } from 'react' import { observer } from 'mobx-react-lite' -import { Loading } from '@supabase/ui' +import { IconAlertCircle, Loading, Typography } from '@supabase/ui' import { PageContext } from 'pages/project/[ref]/auth/users' import Table from 'components/to-be-cleaned/Table' @@ -26,13 +26,29 @@ const UsersList = ({}) => { } body={ <> - {PageState.users.length == 0 && ( + {PageState.usersLoading && ( {/* @ts-ignore */} + className="h-14 p-4 whitespace-nowrap border-t leading-5 text-gray-300 text-sm" + > + Retrieving users + + + )} + {!PageState.usersLoading && PageState.users.length == 0 && ( + + {/* @ts-ignore */} + +
+ + No users in your project yet +
+
)} {PageState.users.length > 0 && diff --git a/studio/components/interfaces/Database/Backups/BackupsList.tsx b/studio/components/interfaces/Database/Backups/BackupsList.tsx index c18a6b9e2b2..001e118c1ef 100644 --- a/studio/components/interfaces/Database/Backups/BackupsList.tsx +++ b/studio/components/interfaces/Database/Backups/BackupsList.tsx @@ -49,10 +49,16 @@ const BackupsList: FC = ({}) => { */} {tierId === STRIPE_PRODUCT_IDS.FREE && ( -
+
- +
diff --git a/studio/components/interfaces/Database/Extensions/Extensions.tsx b/studio/components/interfaces/Database/Extensions/Extensions.tsx index 5cbb144babb..69aaad67ca0 100644 --- a/studio/components/interfaces/Database/Extensions/Extensions.tsx +++ b/studio/components/interfaces/Database/Extensions/Extensions.tsx @@ -37,7 +37,7 @@ const Extensions: FC = ({}) => {
{enabledExtensions.length > 0 && ( -
+
Enabled
{enabledExtensions.map((extension) => ( @@ -48,7 +48,7 @@ const Extensions: FC = ({}) => { )} {disabledExtensions.length > 0 && ( -
+
Extensions
{disabledExtensions.map((extension) => (