diff --git a/apps/studio/pages/account/me.tsx b/apps/studio/pages/account/me.tsx index 28eee68c799ee..6c7fed647c901 100644 --- a/apps/studio/pages/account/me.tsx +++ b/apps/studio/pages/account/me.tsx @@ -15,6 +15,11 @@ import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader' import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled' import { useProfile } from 'lib/profile' import type { NextPageWithLayout } from 'types' +import { + ScaffoldContainer, + ScaffoldHeader, + ScaffoldSectionTitle, +} from 'components/layouts/Scaffold' const User: NextPageWithLayout = () => { return @@ -39,43 +44,52 @@ const ProfileCard = () => { const { error, isLoading, isError, isSuccess } = useProfile() return ( -
- {isLoading && ( - -
- -
-
- )} - {isError && ( - -
- -
-
- )} - {isSuccess && ( - <> - {profileShowInformation && isSuccess ? : null} - - - )} + <> + + + Preferences + + + +
+ {isLoading && ( + +
+ +
+
+ )} + {isError && ( + +
+ +
+
+ )} + {isSuccess && ( + <> + {profileShowInformation && isSuccess ? : null} + + + )} -
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- -
-
+
+ +
+
+ + ) } diff --git a/apps/studio/pages/account/security.tsx b/apps/studio/pages/account/security.tsx index 8e2a33a3e8a4c..a1ff44e7546e5 100644 --- a/apps/studio/pages/account/security.tsx +++ b/apps/studio/pages/account/security.tsx @@ -15,6 +15,11 @@ import { CollapsibleContent_Shadcn_, CollapsibleTrigger_Shadcn_, } from 'ui' +import { + ScaffoldContainer, + ScaffoldHeader, + ScaffoldSectionTitle, +} from 'components/layouts/Scaffold' const collapsibleClasses = [ 'bg-surface-100', @@ -33,28 +38,37 @@ const Security: NextPageWithLayout = () => { const { data } = useMfaListFactorsQuery() return ( - - - - - - - - + {data ? ( + + {data.totp.length} app{data.totp.length === 1 ? '' : 's'} configured + + ) : null} + + + + + + + + ) } diff --git a/apps/studio/pages/account/tokens.tsx b/apps/studio/pages/account/tokens.tsx index 1d9ea7e999ab2..89f6e22411178 100644 --- a/apps/studio/pages/account/tokens.tsx +++ b/apps/studio/pages/account/tokens.tsx @@ -11,7 +11,6 @@ import DefaultLayout from 'components/layouts/DefaultLayout' import OrganizationLayout from 'components/layouts/OrganizationLayout' import { ScaffoldContainer, - ScaffoldDescription, ScaffoldHeader, ScaffoldSectionTitle, } from 'components/layouts/Scaffold' @@ -27,12 +26,8 @@ const UserAccessTokens: NextPageWithLayout = () => { return ( <> - + Access Tokens - - Personal access tokens can be used to control your whole account and use features added - in the future. Be careful when sharing them! - diff --git a/apps/studio/state/storage-explorer.tsx b/apps/studio/state/storage-explorer.tsx index 37356f4555a67..90ceef7b7875d 100644 --- a/apps/studio/state/storage-explorer.tsx +++ b/apps/studio/state/storage-explorer.tsx @@ -345,7 +345,7 @@ function createStorageExplorerState({ }) } - const newFolder = state.columns[columnIndex].items.find((x) => x.name === formattedName) + const newFolder = state.columns[columnIndex].items?.find((x) => x.name === formattedName) if (newFolder) state.openFolder(columnIndex, newFolder) }, @@ -1654,7 +1654,9 @@ function createStorageExplorerState({ const currentColumnItems = currentColumn.items.filter( (item) => item.status !== STORAGE_ROW_STATUS.EDITING ) - const hasSameNameInColumn = currentColumnItems.filter((item) => item.name === name).length > 0 + const hasSameNameInColumn = + currentColumnItems.filter((item) => item.name.toLowerCase() === name.toLowerCase()).length > + 0 if (hasSameNameInColumn) { if (autofix) {