The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Feat/get layout - Project pages updated to use getLayout (#33365)
Jonathan Summers-Muira09ffd01048b
diff --git a/apps/studio/components/interfaces/App/AppBannerWrapper.tsx b/apps/studio/components/interfaces/App/AppBannerWrapper.tsxindex 4ff8e49c2e2..df824bb697f 100644--- a/apps/studio/components/interfaces/App/AppBannerWrapper.tsx+++ b/apps/studio/components/interfaces/App/AppBannerWrapper.tsx@@ -29,8 +29,8 @@ const AppBannerWrapper = ({ children }: PropsWithChildren<{}>) => {}, [resolvedTheme, monaco])return (- <div className="h-screen flex flex-col">- <div className="flex-none">+ <div className="flex flex-col">+ <div className="flex-shrink-0">{ongoingIncident && <IncidentBanner />}{showNoticeBanner && <NoticeBanner />}{profile !== undefined && <RestrictionBanner />}diff --git a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsxindex 16ef1db313f..7fcab1d904b 100644--- a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx+++ b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx@@ -47,7 +47,7 @@ const WithSidebar = ({/>)}<div className="flex flex-1 flex-col">- <LayoutHeader breadcrumbs={breadcrumbs} showProductMenu={!hideSidebar && !noContent} />+ <LayoutHeader breadcrumbs={breadcrumbs} /><div className="flex-1 flex-grow overflow-y-auto">{children}</div></div><MobileSheetNav open={mobileMenuOpen} onOpenChange={setMobileMenuOpen}>diff --git a/apps/studio/components/layouts/DefaultLayout.tsx b/apps/studio/components/layouts/DefaultLayout.tsxnew file mode 100644index 00000000000..37537952544--- /dev/null+++ b/apps/studio/components/layouts/DefaultLayout.tsx@@ -0,0 +1,41 @@+import { AppBannerWrapper } from 'components/interfaces/App'+import { AppBannerContextProvider } from 'components/interfaces/App/AppBannerWrapperContext'+import { PropsWithChildren, ReactNode } from 'react'+import { LayoutHeader } from './ProjectLayout/LayoutHeader'+import NavigationBar from './ProjectLayout/NavigationBar/NavigationBar'+import MobileNavigationBar from './ProjectLayout/NavigationBar/MobileNavigationBar'++export interface DefaultLayoutProps {+ title?: string+ product?: string+ selectedTable?: string+ hasProductMenu?: boolean+ // Shows header in the top left of the page+ headerTitle?: string+}++const DefaultLayout = ({ children }: PropsWithChildren<DefaultLayoutProps>) => {+ return (+ <>+ <AppBannerContextProvider>+ <div className="flex flex-col h-screen w-screen">+ {/* Top Banner */}+ <AppBannerWrapper />+ <div className="flex-shrink-0">+ <MobileNavigationBar />+ <LayoutHeader />+ </div>+ {/* Main Content Area */}+ <div className="flex flex-1 w-full overflow-y-hidden">+ {/* Sidebar */}+ <NavigationBar />+ {/* Main Content */}+ <div className="flex-grow h-full overflow-y-auto">{children}</div>+ </div>+ </div>+ </AppBannerContextProvider>+ </>+ )+}++export default DefaultLayoutdiff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsxindex 023fc804ead..1e02d2fea21 100644--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx@@ -45,16 +45,13 @@ interface LayoutHeaderProps {breadcrumbs?: any[]headerBorder?: booleanshowProductMenu?: boolean- customSidebarContent?: ReactNode- showHomeLink?: boolean}const LayoutHeader = ({customHeaderComponents,breadcrumbs = [],headerBorder = true,- showProductMenu,- showHomeLink = false,+ showProductMenu = true,}: LayoutHeaderProps) => {const router = useRouter()const { ref: projectRef } = useParams()@@ -105,7 +102,7 @@ const LayoutHeader = ({<div className="relative flex flex-1 overflow-hidden"><div className="flex w-full items-center justify-between py-2 pl-1 pr-3 md:px-3 flex-nowrap overflow-x-auto no-scrollbar"><div className="flex items-center text-sm">- {showHomeLink && (+ {projectRef && (<Linkhref={IS_PLATFORM ? '/projects' : `/project/${projectRef}`}className="mx-1 hidden md:flex items-center w-[40px] h-[40px]"diff --git a/apps/studio/components/layouts/ProjectLayout/ProjectContext.tsx b/apps/studio/components/layouts/ProjectLayout/ProjectContext.tsxindex 8727e522355..dd7b88091f4 100644--- a/apps/studio/components/layouts/ProjectLayout/ProjectContext.tsx+++ b/apps/studio/components/layouts/ProjectLayout/ProjectContext.tsx@@ -1,6 +1,5 @@import { createContext, PropsWithChildren, useContext, useMemo } from 'react'-import { useParams } from 'common'import { Project, useProjectDetailQuery } from 'data/projects/project-detail-query'import { PROJECT_STATUS } from 'lib/constants'import { DatabaseSelectorStateContextProvider } from 'state/database-selector'@@ -51,12 +50,6 @@ export const ProjectContextProvider = ({)}-export const ProjectContextFromParamsProvider = ({ children }: PropsWithChildren<{}>) => {- const { ref: projectRef } = useParams()-- return <ProjectContextProvider projectRef={projectRef}>{children}</ProjectContextProvider>-}-export const useIsProjectActive = () => {const { project } = useProjectContext()return project?.status === PROJECT_STATUS.ACTIVE_HEALTHYdiff --git a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsxindex a1c19354464..7dfdae53565 100644--- a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx+++ b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx@@ -8,7 +8,7 @@ import { AnimatePresence, motion } from 'framer-motion'import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'import { useSelectedProject } from 'hooks/misc/useSelectedProject'import { withAuth } from 'hooks/misc/withAuth'-import { IS_PLATFORM, PROJECT_STATUS } from 'lib/constants'+import { PROJECT_STATUS } from 'lib/constants'import Head from 'next/head'import { useRouter } from 'next/router'import { forwardRef, Fragment, PropsWithChildren, ReactNode, useEffect, useState } from 'react'@@ -19,11 +19,7 @@ import MobileSheetNav from 'ui-patterns/MobileSheetNav/MobileSheetNav'import EnableBranchingModal from '../AppLayout/EnableBranchingButton/EnableBranchingModal'import BuildingState from './BuildingState'import ConnectingState from './ConnectingState'-import { LayoutHeader } from './LayoutHeader'import LoadingState from './LoadingState'-import MobileNavigationBar from './NavigationBar/MobileNavigationBar'-import MobileViewNav from './NavigationBar/MobileViewNav'-import NavigationBar from './NavigationBar/NavigationBar'import { ProjectPausedState } from './PausedState/ProjectPausedState'import PauseFailedState from './PauseFailedState'import PausingState from './PausingState'@@ -128,7 +124,7 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayout// eslint-disable-next-line react-hooks/exhaustive-deps}, [open])- const sideBarIsOpen = true // @mildtomato - var to use later to control collapsible sidebar+ const sideBarIsOpen = true // @mildtomato - var for later to use collapsible sidebarreturn (<>@@ -147,118 +143,101 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayout</title><meta name="description" content="Supabase Studio" /></Head>-- <div className="flex flex-col h-screen w-screen">- {/* Top Nav to access products from mobile */}- {!hideIconBar && <MobileNavigationBar />}- {!hideHeader && IS_PLATFORM && (- <LayoutHeader showHomeLink showProductMenu={!!(showProductMenu && productMenu)} />- )}- <div className="flex h-full flex-row grow overflow-y-auto">- {showProductMenu && productMenu && !(!hideHeader && IS_PLATFORM) && (- <MobileViewNav title={product} />+ <div className="flex flex-row h-full w-full">+ <ResizablePanelGroup className="" direction="horizontal" autoSaveId="project-layout">+ {showProductMenu && productMenu && (+ <ResizablePanel+ order={1}+ maxSize={33}+ defaultSize={1}+ id="panel-left"+ className={cn(+ 'transition-all duration-[120ms]',+ sideBarIsOpen+ ? resizableSidebar+ ? 'min-w-64 max-w-[32rem]'+ : 'min-w-64 max-w-64'+ : 'w-0 flex-shrink-0 max-w-0'+ )}+ >+ {sideBarIsOpen && (+ <AnimatePresence initial={false}>+ <motion.div+ initial={{ width: 0, opacity: 0, height: '100%' }}+ animate={{ width: 'auto', opacity: 1, height: '100%' }}+ exit={{ width: 0, opacity: 0, height: '100%' }}+ className="h-full"+ transition={{ duration: 0.12 }}+ >+ <MenuBarWrapper+ isLoading={isLoading}+ isBlocking={isBlocking}+ productMenu={productMenu}+ >+ <ProductMenuBar title={product}>{productMenu}</ProductMenuBar>+ </MenuBarWrapper>+ </motion.div>+ </AnimatePresence>+ )}+ </ResizablePanel>)}- {/* Left-most navigation side bar to access products */}- {!hideIconBar && <NavigationBar />}- {/* Product menu bar */}- <ResizablePanelGroup- className="flex h-full"- direction="horizontal"- autoSaveId="project-layout"- >- {/* Existing desktop menu */}- {showProductMenu && productMenu && (+ {showProductMenu && productMenu && sideBarIsOpen && (+ <ResizableHandle withHandle disabled={resizableSidebar ? false : true} />+ )}+ <ResizablePanel order={2} id="panel-right" className="h-full flex flex-col w-full">+ <ResizablePanelGroup+ className="h-full w-full overflow-x-hidden flex-1 flex flex-row gap-0"+ direction="horizontal"+ autoSaveId="project-layout-content"+ ><ResizablePanel- order={1}- defaultSize={1}- id="panel-left"- className={cn(- 'hidden md:flex',- 'transition-all duration-[120ms]',- sideBarIsOpen- ? resizableSidebar- ? 'min-w-64 max-w-[32rem]'- : 'min-w-64 max-w-64'- : 'w-0 flex-shrink-0 max-w-0'- )}- >- {sideBarIsOpen && (- <AnimatePresence>- <motion.div- initial={{ width: 0, opacity: 0, height: '100%' }}- animate={{ width: 'auto', opacity: 1, height: '100%' }}- exit={{ width: 0, opacity: 0, height: '100%' }}- className="h-full flex-grow max-w-full"- transition={{ duration: 0.12 }}- >- <MenuBarWrapper- isLoading={isLoading}- isBlocking={isBlocking}- productMenu={productMenu}- >- <ProductMenuBar title={product}>{productMenu}</ProductMenuBar>- </MenuBarWrapper>- </motion.div>- </AnimatePresence>- )}- </ResizablePanel>- )}- {showProductMenu && productMenu && sideBarIsOpen && (- <ResizableHandle withHandle disabled={resizableSidebar ? false : true} />- )}- <ResizablePanel order={2} id="panel-right" className="h-full flex flex-col">- <ResizablePanelGroup- className="h-full w-full overflow-x-hidden flex-1"- direction="horizontal"- autoSaveId="project-layout-content"+ id="panel-content"+ className={cn('w-full min-w-[600px] bg-dash-sidebar')}>- <ResizablePanel id="panel-content" className="w-full md:min-w-[600px]">- <main- className="h-full flex flex-col flex-1 w-full overflow-y-auto overflow-x-hidden"- ref={ref}- >- {showPausedState ? (- <div className="mx-auto my-16 w-full h-full max-w-7xl flex items-center">- <div className="w-full">- <ProjectPausedState product={product} />- </div>+ <main+ className="h-full flex flex-col flex-1 w-full overflow-y-auto overflow-x-hidden"+ ref={ref}+ >+ {showPausedState ? (+ <div className="mx-auto my-16 w-full h-full max-w-7xl flex items-center">+ <div className="w-full">+ <ProjectPausedState product={product} /></div>- ) : (- <ContentWrapper isLoading={isLoading} isBlocking={isBlocking}>- <ResourceExhaustionWarningBanner />- {children}- </ContentWrapper>+ </div>+ ) : (+ <ContentWrapper isLoading={isLoading} isBlocking={isBlocking}>+ <ResourceExhaustionWarningBanner />+ {children}+ </ContentWrapper>+ )}+ </main>+ </ResizablePanel>+ {isClient && aiAssistantPanel.open && (+ <>+ <ResizableHandle withHandle />+ <ResizablePanel+ id="panel-assistant"+ className={cn(+ 'border-l xl:border-l-0 bg fixed z-40 md:absolute md:z-0 right-0 top-0 md:top-[48px] bottom-0 xl:relative xl:top-0',+ 'w-screen h-[100dvh] md:h-auto md:w-auto md:min-w-[400px] max-w-[500px]',+ '2xl:min-w-[500px] 2xl:max-w-[600px]')}- </main>- </ResizablePanel>- {isClient && aiAssistantPanel.open && (- <>- <ResizableHandle />- <ResizablePanel- id="panel-assistant"- className={cn(- 'bg fixed z-40 md:absolute right-0 top-0 md:top-[48px] bottom-0 xl:relative xl:top-0',- 'w-screen h-[100dvh] md:h-auto md:w-auto md:min-w-[400px] max-w-[500px]',- '2xl:min-w-[500px] 2xl:max-w-[600px]'- )}- >- <AIAssistantPanel />- </ResizablePanel>- </>- )}- </ResizablePanelGroup>- </ResizablePanel>- </ResizablePanelGroup>- </div>+ >+ <AIAssistantPanel />+ </ResizablePanel>+ </>+ )}+ </ResizablePanelGroup>+ </ResizablePanel>+ </ResizablePanelGroup></div>-<EnableBranchingModal /><AISettingsModal /><ProjectAPIDocs />+ <MobileSheetNav open={mobileMenuOpen} onOpenChange={setMobileMenuOpen}>+ {productMenu}+ </MobileSheetNav></ProjectContextProvider>- <MobileSheetNav open={mobileMenuOpen} onOpenChange={setMobileMenuOpen}>- {productMenu}- </MobileSheetNav></>)}diff --git a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsxindex 8e05c1e64c7..c9dd782a25f 100644--- a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx+++ b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx@@ -82,7 +82,7 @@ const SignInLayout = ({return (<>- <div className="relative flex flex-col bg-alternative h-full">+ <div className="relative flex flex-col bg-alternative h-screen"><divclassName={`absolute top-0 w-full px-8 mx-auto sm:px-6 lg:px-8 ${ongoingIncident ? 'mt-14' : 'mt-6'diff --git a/apps/studio/pages/_app.tsx b/apps/studio/pages/_app.tsxindex 308771daa3d..8ae9da848ad 100644--- a/apps/studio/pages/_app.tsx+++ b/apps/studio/pages/_app.tsx@@ -123,14 +123,12 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) {><AppBannerContextProvider><CommandProvider>- <AppBannerWrapper>- <FeaturePreviewContextProvider>- {getLayout(<Component {...pageProps} />)}- <StudioCommandMenu />- <GenerateSql />- <FeaturePreviewModal />- </FeaturePreviewContextProvider>- </AppBannerWrapper>+ <FeaturePreviewContextProvider>+ {getLayout(<Component {...pageProps} />)}+ <StudioCommandMenu />+ <GenerateSql />+ <FeaturePreviewModal />+ </FeaturePreviewContextProvider><SonnerToaster position="top-right" /></CommandProvider></AppBannerContextProvider>diff --git a/apps/studio/pages/project/[ref]/advisors/performance.tsx b/apps/studio/pages/project/[ref]/advisors/performance.tsxindex 9f5e33c643c..f9ad3a6ecca 100644--- a/apps/studio/pages/project/[ref]/advisors/performance.tsx+++ b/apps/studio/pages/project/[ref]/advisors/performance.tsx@@ -13,6 +13,7 @@ import { Lint, useProjectLintsQuery } from 'data/lint/lint-query'import { useSelectedProject } from 'hooks/misc/useSelectedProject'import type { NextPageWithLayout } from 'types'import { LoadingLine } from 'ui'+import DefaultLayout from 'components/layouts/DefaultLayout'const ProjectLints: NextPageWithLayout = () => {const project = useSelectedProject()@@ -94,6 +95,10 @@ const ProjectLints: NextPageWithLayout = () => {)}-ProjectLints.getLayout = (page) => <AdvisorsLayout title="Linter">{page}</AdvisorsLayout>+ProjectLints.getLayout = (page) => (+ <DefaultLayout>+ <AdvisorsLayout title="Linter">{page}</AdvisorsLayout>+ </DefaultLayout>+)export default ProjectLintsdiff --git a/apps/studio/pages/project/[ref]/advisors/query-performance.tsx b/apps/studio/pages/project/[ref]/advisors/query-performance.tsxindex 6ec244ce9b1..be76267a2f2 100644--- a/apps/studio/pages/project/[ref]/advisors/query-performance.tsx+++ b/apps/studio/pages/project/[ref]/advisors/query-performance.tsx@@ -14,6 +14,7 @@ import AdvisorsLayout from 'components/layouts/AdvisorsLayout/AdvisorsLayout'import DatabaseSelector from 'components/ui/DatabaseSelector'import { FormHeader } from 'components/ui/Forms/FormHeader'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const PRESET_MAP = {[QUERY_PERFORMANCE_REPORT_TYPES.MOST_TIME_CONSUMING]: 'mostTimeConsuming',@@ -58,7 +59,9 @@ const QueryPerformanceReport: NextPageWithLayout = () => {}QueryPerformanceReport.getLayout = (page) => (- <AdvisorsLayout title="Query performance">{page}</AdvisorsLayout>+ <DefaultLayout>+ <AdvisorsLayout title="Query performance">{page}</AdvisorsLayout>+ </DefaultLayout>)export default QueryPerformanceReportdiff --git a/apps/studio/pages/project/[ref]/advisors/security.tsx b/apps/studio/pages/project/[ref]/advisors/security.tsxindex 588c5cc4ab5..e4051838a5f 100644--- a/apps/studio/pages/project/[ref]/advisors/security.tsx+++ b/apps/studio/pages/project/[ref]/advisors/security.tsx@@ -13,6 +13,7 @@ import { Lint, useProjectLintsQuery } from 'data/lint/lint-query'import { useSelectedProject } from 'hooks/misc/useSelectedProject'import type { NextPageWithLayout } from 'types'import { LoadingLine } from 'ui'+import DefaultLayout from 'components/layouts/DefaultLayout'const ProjectLints: NextPageWithLayout = () => {const project = useSelectedProject()@@ -96,6 +97,10 @@ const ProjectLints: NextPageWithLayout = () => {)}-ProjectLints.getLayout = (page) => <AdvisorsLayout title="Linter">{page}</AdvisorsLayout>+ProjectLints.getLayout = (page) => (+ <DefaultLayout>+ <AdvisorsLayout title="Linter">{page}</AdvisorsLayout>+ </DefaultLayout>+)export default ProjectLintsdiff --git a/apps/studio/pages/project/[ref]/api/index.tsx b/apps/studio/pages/project/[ref]/api/index.tsxindex db96b907935..9e34e08a2b7 100644--- a/apps/studio/pages/project/[ref]/api/index.tsx+++ b/apps/studio/pages/project/[ref]/api/index.tsx@@ -9,12 +9,17 @@ import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'import { useProjectJsonSchemaQuery } from 'data/docs/project-json-schema-query'import { snakeToCamel } from 'lib/helpers'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const PageConfig: NextPageWithLayout = () => {return <DocView />}-PageConfig.getLayout = (page) => <DocsLayout title="API">{page}</DocsLayout>+PageConfig.getLayout = (page) => (+ <DefaultLayout>+ <DocsLayout title="API">{page}</DocsLayout>+ </DefaultLayout>+)export default PageConfigdiff --git a/apps/studio/pages/project/[ref]/auth/hooks.tsx b/apps/studio/pages/project/[ref]/auth/hooks.tsxindex b1cb3e10d0a..e939b807163 100644--- a/apps/studio/pages/project/[ref]/auth/hooks.tsx+++ b/apps/studio/pages/project/[ref]/auth/hooks.tsx@@ -11,7 +11,7 @@ import {import NoPermission from 'components/ui/NoPermission'import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'import type { NextPageWithLayout } from 'types'-+import DefaultLayout from 'components/layouts/DefaultLayout'const Hooks: NextPageWithLayout = () => {const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')const isPermissionsLoaded = usePermissionsLoaded()@@ -39,8 +39,10 @@ const Hooks: NextPageWithLayout = () => {}}-Hooks.getLayout = (page) => {- return <AuthLayout>{page}</AuthLayout>-}+Hooks.getLayout = (page) => (+ <DefaultLayout>+ <AuthLayout>{page}</AuthLayout>+ </DefaultLayout>+)export default Hooksdiff --git a/apps/studio/pages/project/[ref]/auth/index.tsx b/apps/studio/pages/project/[ref]/auth/index.tsxindex 4e05c781762..30ffe3662c9 100644--- a/apps/studio/pages/project/[ref]/auth/index.tsx+++ b/apps/studio/pages/project/[ref]/auth/index.tsx@@ -1,10 +1,15 @@import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import type { NextPageWithLayout } from 'types'const Authentication: NextPageWithLayout = () => {return <>{/* <h1>Use this as a template for authentication pages</h1> */}</>}-Authentication.getLayout = (page) => <AuthLayout title="Authentication">{page}</AuthLayout>+Authentication.getLayout = (page) => (+ <DefaultLayout>+ <AuthLayout title="Authentication">{page}</AuthLayout>+ </DefaultLayout>+)export default Authenticationdiff --git a/apps/studio/pages/project/[ref]/auth/policies.tsx b/apps/studio/pages/project/[ref]/auth/policies.tsxindex bf56fbe8f6f..4e52ee86078 100644--- a/apps/studio/pages/project/[ref]/auth/policies.tsx+++ b/apps/studio/pages/project/[ref]/auth/policies.tsx@@ -21,6 +21,7 @@ import { useUrlState } from 'hooks/ui/useUrlState'import { PROTECTED_SCHEMAS } from 'lib/constants/schemas'import type { NextPageWithLayout } from 'types'import { Input } from 'ui'+import DefaultLayout from 'components/layouts/DefaultLayout'/*** Filter tables by table name and policy name@@ -174,9 +175,11 @@ const AuthPoliciesPage: NextPageWithLayout = () => {}AuthPoliciesPage.getLayout = (page) => (- <AuthLayout title="Auth">- <div className="h-full p-4">{page}</div>- </AuthLayout>+ <DefaultLayout>+ <AuthLayout title="Auth">+ <div className="h-full p-4">{page}</div>+ </AuthLayout>+ </DefaultLayout>)export default AuthPoliciesPagediff --git a/apps/studio/pages/project/[ref]/auth/providers.tsx b/apps/studio/pages/project/[ref]/auth/providers.tsxindex 63b0f7e83fb..63c5d4e6cd6 100644--- a/apps/studio/pages/project/[ref]/auth/providers.tsx+++ b/apps/studio/pages/project/[ref]/auth/providers.tsx@@ -1,12 +1,8 @@import { PermissionAction } from '@supabase/shared-types/out/constants'-+import { useParams } from 'common'import { AuthProvidersForm, BasicAuthSettingsForm } from 'components/interfaces/Auth'import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'-import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'-import { useParams } from 'common'-import { useCurrentPath } from 'hooks/misc/useCurrentPath'-import Link from 'next/link'-import { NavMenu, NavMenuItem } from 'ui'+import DefaultLayout from 'components/layouts/DefaultLayout'import {ScaffoldContainer,ScaffoldDescription,@@ -15,7 +11,11 @@ import {ScaffoldTitle,} from 'components/layouts/Scaffold'import NoPermission from 'components/ui/NoPermission'+import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'+import { useCurrentPath } from 'hooks/misc/useCurrentPath'+import Link from 'next/link'import type { NextPageWithLayout } from 'types'+import { NavMenu, NavMenuItem } from 'ui'const PageLayout: NextPageWithLayout = () => {const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')@@ -70,7 +70,11 @@ const PageLayout: NextPageWithLayout = () => {}PageLayout.getLayout = (page) => {- return <AuthLayout>{page}</AuthLayout>+ return (+ <DefaultLayout>+ <AuthLayout>{page}</AuthLayout>+ </DefaultLayout>+ )}export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/auth/rate-limits.tsx b/apps/studio/pages/project/[ref]/auth/rate-limits.tsxindex 8629026f85e..2043aec5ba0 100644--- a/apps/studio/pages/project/[ref]/auth/rate-limits.tsx+++ b/apps/studio/pages/project/[ref]/auth/rate-limits.tsx@@ -12,6 +12,7 @@ import { DocsButton } from 'components/ui/DocsButton'import NoPermission from 'components/ui/NoPermission'import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const PageLayout: NextPageWithLayout = () => {const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')@@ -43,7 +44,11 @@ const PageLayout: NextPageWithLayout = () => {}PageLayout.getLayout = (page) => {- return <AuthLayout>{page}</AuthLayout>+ return (+ <DefaultLayout>+ <AuthLayout>{page}</AuthLayout>+ </DefaultLayout>+ )}export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/auth/templates.tsx b/apps/studio/pages/project/[ref]/auth/templates.tsxindex 51f4bbaeb9a..a9a136d4d2a 100644--- a/apps/studio/pages/project/[ref]/auth/templates.tsx+++ b/apps/studio/pages/project/[ref]/auth/templates.tsx@@ -15,7 +15,7 @@ import {} from 'components/layouts/Scaffold'import NoPermission from 'components/ui/NoPermission'import type { NextPageWithLayout } from 'types'-+import DefaultLayout from 'components/layouts/DefaultLayout'const PageLayout: NextPageWithLayout = () => {const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')const isPermissionsLoaded = usePermissionsLoaded()@@ -67,8 +67,10 @@ const PageLayout: NextPageWithLayout = () => {)}-PageLayout.getLayout = (page) => {- return <AuthLayout>{page}</AuthLayout>-}+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <AuthLayout>{page}</AuthLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/auth/url-configuration.tsx b/apps/studio/pages/project/[ref]/auth/url-configuration.tsxindex d611b93aa5a..0eb6ebb8f4b 100644--- a/apps/studio/pages/project/[ref]/auth/url-configuration.tsx+++ b/apps/studio/pages/project/[ref]/auth/url-configuration.tsx@@ -8,7 +8,7 @@ import { FormsContainer } from 'components/ui/Forms/FormsContainer'import NoPermission from 'components/ui/NoPermission'import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'import type { NextPageWithLayout } from 'types'-+import DefaultLayout from 'components/layouts/DefaultLayout'const URLConfiguration: NextPageWithLayout = () => {const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')const isPermissionsLoaded = usePermissionsLoaded()@@ -33,8 +33,10 @@ const URLConfiguration: NextPageWithLayout = () => {}}-URLConfiguration.getLayout = (page) => {- return <AuthLayout>{page}</AuthLayout>-}+URLConfiguration.getLayout = (page) => (+ <DefaultLayout>+ <AuthLayout>{page}</AuthLayout>+ </DefaultLayout>+)export default URLConfigurationdiff --git a/apps/studio/pages/project/[ref]/auth/users.tsx b/apps/studio/pages/project/[ref]/auth/users.tsxindex 8093df24dd6..6fe46239939 100644--- a/apps/studio/pages/project/[ref]/auth/users.tsx+++ b/apps/studio/pages/project/[ref]/auth/users.tsx@@ -1,11 +1,16 @@import { UsersV2 } from 'components/interfaces/Auth/Users/UsersV2'import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import type { NextPageWithLayout } from 'types'const UsersPage: NextPageWithLayout = () => {return <UsersV2 />}-UsersPage.getLayout = (page) => <AuthLayout title="Auth">{page}</AuthLayout>+UsersPage.getLayout = (page) => (+ <DefaultLayout>+ <AuthLayout title="Auth">{page}</AuthLayout>+ </DefaultLayout>+)export default UsersPagediff --git a/apps/studio/pages/project/[ref]/branches.tsx b/apps/studio/pages/project/[ref]/branches.tsxindex 252de784cdf..355bee32e2a 100644--- a/apps/studio/pages/project/[ref]/branches.tsx+++ b/apps/studio/pages/project/[ref]/branches.tsx@@ -1,11 +1,16 @@import BranchManagement from 'components/interfaces/BranchManagement/BranchManagement'import { ProjectLayoutWithAuth } from 'components/layouts/ProjectLayout/ProjectLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import type { NextPageWithLayout } from 'types'const BranchManagementPage: NextPageWithLayout = () => {return <BranchManagement />}-BranchManagementPage.getLayout = (page) => <ProjectLayoutWithAuth>{page}</ProjectLayoutWithAuth>+BranchManagementPage.getLayout = (page) => (+ <DefaultLayout>+ <ProjectLayoutWithAuth>{page}</ProjectLayoutWithAuth>+ </DefaultLayout>+)export default BranchManagementPagediff --git a/apps/studio/pages/project/[ref]/building.tsx b/apps/studio/pages/project/[ref]/building.tsxindex e1e600e0089..907c2777980 100644--- a/apps/studio/pages/project/[ref]/building.tsx+++ b/apps/studio/pages/project/[ref]/building.tsx@@ -1,4 +1,5 @@import { ProjectLayoutWithAuth } from 'components/layouts/ProjectLayout/ProjectLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import { useRouter } from 'next/router'import { useEffect } from 'react'import type { NextPageWithLayout } from 'types'@@ -8,7 +9,9 @@ const ProjectBuildingPage: NextPageWithLayout = () => {}ProjectBuildingPage.getLayout = (page) => (- <ProjectLayoutWithAuth title="Project Building">{page}</ProjectLayoutWithAuth>+ <DefaultLayout>+ <ProjectLayoutWithAuth title="Project Building">{page}</ProjectLayoutWithAuth>+ </DefaultLayout>)export default ProjectBuildingPagediff --git a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx b/apps/studio/pages/project/[ref]/database/backups/pitr.tsxindex e6db1c7bde4..04cfdb5d989 100644--- a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx+++ b/apps/studio/pages/project/[ref]/database/backups/pitr.tsx@@ -22,6 +22,7 @@ import { PROJECT_STATUS } from 'lib/constants'import type { NextPageWithLayout } from 'types'import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_ } from 'ui'import { Admonition } from 'ui-patterns'+import DefaultLayout from 'components/layouts/DefaultLayout'const DatabasePhysicalBackups: NextPageWithLayout = () => {return (@@ -42,7 +43,9 @@ const DatabasePhysicalBackups: NextPageWithLayout = () => {}DatabasePhysicalBackups.getLayout = (page) => (- <DatabaseLayout title="Database">{page}</DatabaseLayout>+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>)const PITR = () => {diff --git a/apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsx b/apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsxindex 63e72c315ae..b8e08e0cbbb 100644--- a/apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsx+++ b/apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsx@@ -34,6 +34,7 @@ import { projectSpecToMonthlyPrice } from 'components/interfaces/Database/Backupimport { useDiskAttributesQuery } from 'data/config/disk-attributes-query'import { DiskType } from 'components/interfaces/DiskManagement/ui/DiskManagement.constants'import { InfraInstanceSize } from 'components/interfaces/DiskManagement/DiskManagement.types'+import DefaultLayout from 'components/layouts/DefaultLayout'const RestoreToNewProjectPage: NextPageWithLayout = () => {return (@@ -54,7 +55,9 @@ const RestoreToNewProjectPage: NextPageWithLayout = () => {}RestoreToNewProjectPage.getLayout = (page) => (- <DatabaseLayout title="Database">{page}</DatabaseLayout>+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>)const RestoreToNewProject = () => {diff --git a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsxindex 46f2c0d8761..276542a60b4 100644--- a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx+++ b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx@@ -17,6 +17,7 @@ import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPeimport { useIsOrioleDb } from 'hooks/misc/useSelectedProject'import type { NextPageWithLayout } from 'types'import { Admonition } from 'ui-patterns'+import DefaultLayout from 'components/layouts/DefaultLayout'const DatabaseScheduledBackups: NextPageWithLayout = () => {const { ref: projectRef } = useParams()@@ -102,7 +103,9 @@ const DatabaseScheduledBackups: NextPageWithLayout = () => {}DatabaseScheduledBackups.getLayout = (page) => (- <DatabaseLayout title="Database">{page}</DatabaseLayout>+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>)export default DatabaseScheduledBackupsdiff --git a/apps/studio/pages/project/[ref]/database/column-privileges.tsx b/apps/studio/pages/project/[ref]/database/column-privileges.tsxindex 666008e679f..4111c0b4076 100644--- a/apps/studio/pages/project/[ref]/database/column-privileges.tsx+++ b/apps/studio/pages/project/[ref]/database/column-privileges.tsx@@ -31,6 +31,7 @@ import { PROTECTED_SCHEMAS } from 'lib/constants/schemas'import { useAppStateSnapshot } from 'state/app-state'import type { NextPageWithLayout } from 'types'import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui'+import DefaultLayout from 'components/layouts/DefaultLayout'const EDITABLE_ROLES = ['authenticated', 'anon', 'service_role']@@ -361,7 +362,9 @@ const PrivilegesPage: NextPageWithLayout = () => {}PrivilegesPage.getLayout = (page) => (- <DatabaseLayout title="Column Privileges">{page}</DatabaseLayout>+ <DefaultLayout>+ <DatabaseLayout title="Column Privileges">{page}</DatabaseLayout>+ </DefaultLayout>)export default PrivilegesPagediff --git a/apps/studio/pages/project/[ref]/database/extensions.tsx b/apps/studio/pages/project/[ref]/database/extensions.tsxindex c07dad1d7c8..d1c7a3565f4 100644--- a/apps/studio/pages/project/[ref]/database/extensions.tsx+++ b/apps/studio/pages/project/[ref]/database/extensions.tsx@@ -2,6 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { Extensions } from 'components/interfaces/Database'import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'import { FormHeader } from 'components/ui/Forms/FormHeader'import NoPermission from 'components/ui/NoPermission'@@ -31,6 +32,10 @@ const DatabaseExtensions: NextPageWithLayout = () => {)}-DatabaseExtensions.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+DatabaseExtensions.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>+)export default DatabaseExtensionsdiff --git a/apps/studio/pages/project/[ref]/database/functions.tsx b/apps/studio/pages/project/[ref]/database/functions.tsxindex 35e1d3b726b..0a4b183bc82 100644--- a/apps/studio/pages/project/[ref]/database/functions.tsx+++ b/apps/studio/pages/project/[ref]/database/functions.tsx@@ -10,6 +10,7 @@ import NoPermission from 'components/ui/NoPermission'import { DatabaseFunction } from 'data/database-functions/database-functions-query'import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const FunctionsPage: NextPageWithLayout = () => {const [selectedFunction, setSelectedFunction] = useState<DatabaseFunction | undefined>()@@ -69,6 +70,10 @@ const FunctionsPage: NextPageWithLayout = () => {)}-FunctionsPage.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+FunctionsPage.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>+)export default FunctionsPagediff --git a/apps/studio/pages/project/[ref]/database/index.tsx b/apps/studio/pages/project/[ref]/database/index.tsxindex 1c9ade0c442..adbea34ac88 100644--- a/apps/studio/pages/project/[ref]/database/index.tsx+++ b/apps/studio/pages/project/[ref]/database/index.tsx@@ -1,10 +1,15 @@import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import type { NextPageWithLayout } from 'types'const Database: NextPageWithLayout = () => {return <>{/* <h1>Use this as a page template for database</h1> */}</>}-Database.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+Database.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>+)export default Databasediff --git a/apps/studio/pages/project/[ref]/database/indexes.tsx b/apps/studio/pages/project/[ref]/database/indexes.tsxindex 78904d4fb72..b8f936f391f 100644--- a/apps/studio/pages/project/[ref]/database/indexes.tsx+++ b/apps/studio/pages/project/[ref]/database/indexes.tsx@@ -12,6 +12,7 @@ import { DocsButton } from 'components/ui/DocsButton'import { FormHeader } from 'components/ui/Forms/FormHeader'import type { NextPageWithLayout } from 'types'import { Button } from 'ui'+import DefaultLayout from 'components/layouts/DefaultLayout'const IndexesPage: NextPageWithLayout = () => {return (@@ -48,6 +49,10 @@ const IndexesPage: NextPageWithLayout = () => {)}-IndexesPage.getLayout = (page) => <DatabaseLayout title="Indexes">{page}</DatabaseLayout>+IndexesPage.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Indexes">{page}</DatabaseLayout>+ </DefaultLayout>+)export default IndexesPagediff --git a/apps/studio/pages/project/[ref]/database/migrations.tsx b/apps/studio/pages/project/[ref]/database/migrations.tsxindex d1e4b56ccb5..6824c121b0e 100644--- a/apps/studio/pages/project/[ref]/database/migrations.tsx+++ b/apps/studio/pages/project/[ref]/database/migrations.tsx@@ -12,6 +12,7 @@ import { FormHeader } from 'components/ui/Forms/FormHeader'import type { NextPageWithLayout } from 'types'import { Button } from 'ui'import { DocsButton } from 'components/ui/DocsButton'+import DefaultLayout from 'components/layouts/DefaultLayout'const MigrationsPage: NextPageWithLayout = () => {return (@@ -38,6 +39,10 @@ const MigrationsPage: NextPageWithLayout = () => {)}-MigrationsPage.getLayout = (page) => <DatabaseLayout title="Migrations">{page}</DatabaseLayout>+MigrationsPage.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Migrations">{page}</DatabaseLayout>+ </DefaultLayout>+)export default MigrationsPagediff --git a/apps/studio/pages/project/[ref]/database/publications.tsx b/apps/studio/pages/project/[ref]/database/publications.tsxindex f5dfecfdb82..e153e6e41c3 100644--- a/apps/studio/pages/project/[ref]/database/publications.tsx+++ b/apps/studio/pages/project/[ref]/database/publications.tsx@@ -10,6 +10,7 @@ import NoPermission from 'components/ui/NoPermission'import { useDatabasePublicationsQuery } from 'data/database-publications/database-publications-query'import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'// [Joshen] Technically, best that we have these as separate URLs// makes it easier to manage state, but foresee that this page might@@ -56,6 +57,10 @@ const DatabasePublications: NextPageWithLayout = () => {)}-DatabasePublications.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+DatabasePublications.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>+)export default DatabasePublicationsdiff --git a/apps/studio/pages/project/[ref]/database/roles.tsx b/apps/studio/pages/project/[ref]/database/roles.tsxindex f5a38eea1aa..3336d719610 100644--- a/apps/studio/pages/project/[ref]/database/roles.tsx+++ b/apps/studio/pages/project/[ref]/database/roles.tsx@@ -1,5 +1,6 @@import { RolesList } from 'components/interfaces/Database'import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'import { FormHeader } from 'components/ui/Forms/FormHeader'import type { NextPageWithLayout } from 'types'@@ -20,6 +21,10 @@ const DatabaseRoles: NextPageWithLayout = () => {)}-DatabaseRoles.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+DatabaseRoles.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>+)export default DatabaseRolesdiff --git a/apps/studio/pages/project/[ref]/database/schemas.tsx b/apps/studio/pages/project/[ref]/database/schemas.tsxindex b68017a0b0f..d653dd912e8 100644--- a/apps/studio/pages/project/[ref]/database/schemas.tsx+++ b/apps/studio/pages/project/[ref]/database/schemas.tsx@@ -3,6 +3,7 @@ import { ReactFlowProvider } from 'reactflow'import { SchemaGraph } from 'components/interfaces/Database/Schemas/SchemaGraph'import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const SchemasPage: NextPageWithLayout = () => {return (@@ -14,6 +15,10 @@ const SchemasPage: NextPageWithLayout = () => {)}-SchemasPage.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+SchemasPage.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>+)export default SchemasPagediff --git a/apps/studio/pages/project/[ref]/database/tables/[id].tsx b/apps/studio/pages/project/[ref]/database/tables/[id].tsxindex 683523862f5..9d1508ea9e1 100644--- a/apps/studio/pages/project/[ref]/database/tables/[id].tsx+++ b/apps/studio/pages/project/[ref]/database/tables/[id].tsx@@ -13,6 +13,7 @@ import { isTableLike } from 'data/table-editor/table-editor-types'import { useTableEditorStateSnapshot } from 'state/table-editor'import type { NextPageWithLayout } from 'types'import ShimmeringLoader from 'ui-patterns/ShimmeringLoader'+import DefaultLayout from 'components/layouts/DefaultLayout'const DatabaseTables: NextPageWithLayout = () => {const snap = useTableEditorStateSnapshot()@@ -59,6 +60,10 @@ const DatabaseTables: NextPageWithLayout = () => {)}-DatabaseTables.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+DatabaseTables.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>+)export default DatabaseTablesdiff --git a/apps/studio/pages/project/[ref]/database/tables/index.tsx b/apps/studio/pages/project/[ref]/database/tables/index.tsxindex 139056842b3..6767ddbf54b 100644--- a/apps/studio/pages/project/[ref]/database/tables/index.tsx+++ b/apps/studio/pages/project/[ref]/database/tables/index.tsx@@ -9,6 +9,7 @@ import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'import { FormHeader } from 'components/ui/Forms/FormHeader'import { useTableEditorStateSnapshot } from 'state/table-editor'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const DatabaseTables: NextPageWithLayout = () => {const snap = useTableEditorStateSnapshot()@@ -45,6 +46,10 @@ const DatabaseTables: NextPageWithLayout = () => {)}-DatabaseTables.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+DatabaseTables.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>+)export default DatabaseTablesdiff --git a/apps/studio/pages/project/[ref]/database/triggers.tsx b/apps/studio/pages/project/[ref]/database/triggers.tsxindex c11b3877c1c..ecb8a6e03f8 100644--- a/apps/studio/pages/project/[ref]/database/triggers.tsx+++ b/apps/studio/pages/project/[ref]/database/triggers.tsx@@ -9,6 +9,7 @@ import { FormHeader } from 'components/ui/Forms/FormHeader'import NoPermission from 'components/ui/NoPermission'import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const TriggersPage: NextPageWithLayout = () => {const [selectedTrigger, setSelectedTrigger] = useState<any>()@@ -69,6 +70,10 @@ const TriggersPage: NextPageWithLayout = () => {)}-TriggersPage.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+TriggersPage.getLayout = (page) => (+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>+)export default TriggersPagediff --git a/apps/studio/pages/project/[ref]/database/types.tsx b/apps/studio/pages/project/[ref]/database/types.tsxindex adb50596465..828b43f373d 100644--- a/apps/studio/pages/project/[ref]/database/types.tsx+++ b/apps/studio/pages/project/[ref]/database/types.tsx@@ -2,6 +2,7 @@ import { ExternalLink } from 'lucide-react'import { EnumeratedTypes } from 'components/interfaces/Database'import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import {ScaffoldContainer,ScaffoldSection,@@ -33,7 +34,9 @@ const DatabaseEnumeratedTypes: NextPageWithLayout = () => {}DatabaseEnumeratedTypes.getLayout = (page) => (- <DatabaseLayout title="Database">{page}</DatabaseLayout>+ <DefaultLayout>+ <DatabaseLayout title="Database">{page}</DatabaseLayout>+ </DefaultLayout>)export default DatabaseEnumeratedTypesdiff --git a/apps/studio/pages/project/[ref]/editor/[id].tsx b/apps/studio/pages/project/[ref]/editor/[id].tsxindex a75964a6aa0..3c7f0a171e8 100644--- a/apps/studio/pages/project/[ref]/editor/[id].tsx+++ b/apps/studio/pages/project/[ref]/editor/[id].tsx@@ -4,10 +4,8 @@ import { useRouter } from 'next/router'import { useParams } from 'common/hooks'import { TableGridEditor } from 'components/interfaces/TableGridEditor'import DeleteConfirmationDialogs from 'components/interfaces/TableGridEditor/DeleteConfirmationDialogs'-import {- ProjectContextFromParamsProvider,- useProjectContext,-} from 'components/layouts/ProjectLayout/ProjectContext'+import DefaultLayout from 'components/layouts/DefaultLayout'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import TableEditorLayout from 'components/layouts/TableEditorLayout/TableEditorLayout'import { useTableEditorQuery } from 'data/table-editor/table-editor-query'import type { NextPageWithLayout } from 'types'@@ -48,9 +46,9 @@ const TableEditorPage: NextPageWithLayout = () => {}TableEditorPage.getLayout = (page) => (- <ProjectContextFromParamsProvider>+ <DefaultLayout><TableEditorLayout>{page}</TableEditorLayout>- </ProjectContextFromParamsProvider>+ </DefaultLayout>)export default TableEditorPagediff --git a/apps/studio/pages/project/[ref]/editor/index.tsx b/apps/studio/pages/project/[ref]/editor/index.tsxindex a7922e7f570..ca9392c8485 100644--- a/apps/studio/pages/project/[ref]/editor/index.tsx+++ b/apps/studio/pages/project/[ref]/editor/index.tsx@@ -4,7 +4,7 @@ import { useParams } from 'common'import EmptyState from 'components/interfaces/TableGridEditor/EmptyState'import SidePanelEditor from 'components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor'-import { ProjectContextFromParamsProvider } from 'components/layouts/ProjectLayout/ProjectContext'+import DefaultLayout from 'components/layouts/DefaultLayout'import TableEditorLayout from 'components/layouts/TableEditorLayout/TableEditorLayout'import type { NextPageWithLayout } from 'types'@@ -25,9 +25,9 @@ const TableEditorPage: NextPageWithLayout = () => {}TableEditorPage.getLayout = (page) => (- <ProjectContextFromParamsProvider>+ <DefaultLayout><TableEditorLayout>{page}</TableEditorLayout>- </ProjectContextFromParamsProvider>+ </DefaultLayout>)export default TableEditorPagediff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/details.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/details.tsxindex 893b8efb3ed..169b1c57e2c 100644--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/details.tsx+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/details.tsx@@ -1,8 +1,13 @@import { EdgeFunctionDetails } from 'components/interfaces/Functions'import FunctionsLayout from 'components/layouts/FunctionsLayout/FunctionsLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import type { NextPageWithLayout } from 'types'const PageLayout: NextPageWithLayout = () => <EdgeFunctionDetails />-PageLayout.getLayout = (page) => <FunctionsLayout>{page}</FunctionsLayout>+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <FunctionsLayout>{page}</FunctionsLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/index.tsxindex b165afbd74b..077b1818dd3 100644--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx@@ -30,6 +30,7 @@ import {Button,WarningIcon,} from 'ui'+import DefaultLayout from 'components/layouts/DefaultLayout'const CHART_INTERVALS: ChartIntervals[] = [{@@ -330,6 +331,10 @@ const PageLayout: NextPageWithLayout = () => {)}-PageLayout.getLayout = (page) => <FunctionsLayout>{page}</FunctionsLayout>+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <FunctionsLayout>{page}</FunctionsLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/invocations.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/invocations.tsxindex 5ecb05564fd..63cb65a8620 100644--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/invocations.tsx+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/invocations.tsx@@ -2,6 +2,7 @@ import { useParams } from 'common'import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import FunctionsLayout from 'components/layouts/FunctionsLayout/FunctionsLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import { useEdgeFunctionQuery } from 'data/edge-functions/edge-function-query'import type { NextPageWithLayout } from 'types'@@ -28,6 +29,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <FunctionsLayout>{page}</FunctionsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <FunctionsLayout>{page}</FunctionsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/logs.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/logs.tsxindex e82144574d1..abf9396d1e8 100644--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/logs.tsx+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/logs.tsx@@ -1,6 +1,7 @@import { useParams } from 'common/hooks'import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import FunctionsLayout from 'components/layouts/FunctionsLayout/FunctionsLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import { useEdgeFunctionQuery } from 'data/edge-functions/edge-function-query'import type { NextPageWithLayout } from 'types'@@ -25,6 +26,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <FunctionsLayout>{page}</FunctionsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <FunctionsLayout>{page}</FunctionsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/functions/index.tsx b/apps/studio/pages/project/[ref]/functions/index.tsxindex 684fa07eda2..acb63901d95 100644--- a/apps/studio/pages/project/[ref]/functions/index.tsx+++ b/apps/studio/pages/project/[ref]/functions/index.tsx@@ -7,6 +7,7 @@ import {TerminalInstructions,} from 'components/interfaces/Functions'import FunctionsLayout from 'components/layouts/FunctionsLayout/FunctionsLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import Table from 'components/to-be-cleaned/Table'import AlertError from 'components/ui/AlertError'import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'@@ -82,6 +83,10 @@ const PageLayout: NextPageWithLayout = () => {)}-PageLayout.getLayout = (page) => <FunctionsLayout>{page}</FunctionsLayout>+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <FunctionsLayout>{page}</FunctionsLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/index.tsx b/apps/studio/pages/project/[ref]/index.tsxindex 6182618a35f..2c5ae885c7d 100644--- a/apps/studio/pages/project/[ref]/index.tsx+++ b/apps/studio/pages/project/[ref]/index.tsx@@ -26,6 +26,8 @@ import {TooltipContent,TooltipTrigger,} from 'ui'+import AppLayout from 'components/layouts/AppLayout/AppLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'const Home: NextPageWithLayout = () => {const organization = useSelectedOrganization()@@ -140,6 +142,10 @@ const Home: NextPageWithLayout = () => {)}-Home.getLayout = (page) => <ProjectLayoutWithAuth>{page}</ProjectLayoutWithAuth>+Home.getLayout = (page) => (+ <DefaultLayout>+ <ProjectLayoutWithAuth>{page}</ProjectLayoutWithAuth>+ </DefaultLayout>+)export default Homediff --git a/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/[childId]/index.tsx b/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/[childId]/index.tsxindex 99f17904eb3..91321e9afde 100644--- a/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/[childId]/index.tsx+++ b/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/[childId]/index.tsx@@ -1,6 +1,7 @@import { useParams } from 'common'import { INTEGRATIONS } from 'components/interfaces/Integrations/Landing/Integrations.constants'import { useInstalledIntegrations } from 'components/interfaces/Integrations/Landing/useInstalledIntegrations'+import DefaultLayout from 'components/layouts/DefaultLayout'import IntegrationsLayout from 'components/layouts/Integrations/layout'import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useRouter } from 'next/compat/router'@@ -58,6 +59,10 @@ const IntegrationPage: NextPageWithLayout = () => {return <Component />}-IntegrationPage.getLayout = (page) => <IntegrationsLayout>{page}</IntegrationsLayout>+IntegrationPage.getLayout = (page) => (+ <DefaultLayout>+ <IntegrationsLayout>{page}</IntegrationsLayout>+ </DefaultLayout>+)export default IntegrationPagediff --git a/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/index.tsx b/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/index.tsxindex 99f17904eb3..91321e9afde 100644--- a/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/index.tsx+++ b/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/index.tsx@@ -1,6 +1,7 @@import { useParams } from 'common'import { INTEGRATIONS } from 'components/interfaces/Integrations/Landing/Integrations.constants'import { useInstalledIntegrations } from 'components/interfaces/Integrations/Landing/useInstalledIntegrations'+import DefaultLayout from 'components/layouts/DefaultLayout'import IntegrationsLayout from 'components/layouts/Integrations/layout'import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useRouter } from 'next/compat/router'@@ -58,6 +59,10 @@ const IntegrationPage: NextPageWithLayout = () => {return <Component />}-IntegrationPage.getLayout = (page) => <IntegrationsLayout>{page}</IntegrationsLayout>+IntegrationPage.getLayout = (page) => (+ <DefaultLayout>+ <IntegrationsLayout>{page}</IntegrationsLayout>+ </DefaultLayout>+)export default IntegrationPagediff --git a/apps/studio/pages/project/[ref]/integrations/[id]/index.tsx b/apps/studio/pages/project/[ref]/integrations/[id]/index.tsxindex 99f17904eb3..91321e9afde 100644--- a/apps/studio/pages/project/[ref]/integrations/[id]/index.tsx+++ b/apps/studio/pages/project/[ref]/integrations/[id]/index.tsx@@ -1,6 +1,7 @@import { useParams } from 'common'import { INTEGRATIONS } from 'components/interfaces/Integrations/Landing/Integrations.constants'import { useInstalledIntegrations } from 'components/interfaces/Integrations/Landing/useInstalledIntegrations'+import DefaultLayout from 'components/layouts/DefaultLayout'import IntegrationsLayout from 'components/layouts/Integrations/layout'import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useRouter } from 'next/compat/router'@@ -58,6 +59,10 @@ const IntegrationPage: NextPageWithLayout = () => {return <Component />}-IntegrationPage.getLayout = (page) => <IntegrationsLayout>{page}</IntegrationsLayout>+IntegrationPage.getLayout = (page) => (+ <DefaultLayout>+ <IntegrationsLayout>{page}</IntegrationsLayout>+ </DefaultLayout>+)export default IntegrationPagediff --git a/apps/studio/pages/project/[ref]/integrations/index.tsx b/apps/studio/pages/project/[ref]/integrations/index.tsxindex 58b1087c516..45364188a61 100644--- a/apps/studio/pages/project/[ref]/integrations/index.tsx+++ b/apps/studio/pages/project/[ref]/integrations/index.tsx@@ -1,5 +1,6 @@import { AvailableIntegrations } from 'components/interfaces/Integrations/Landing/AvailableIntegrations'import { InstalledIntegrations } from 'components/interfaces/Integrations/Landing/InstalledIntegrations'+import DefaultLayout from 'components/layouts/DefaultLayout'import IntegrationsLayout from 'components/layouts/Integrations/layout'import type { NextPageWithLayout } from 'types'@@ -12,6 +13,10 @@ const IntegrationsPage: NextPageWithLayout = () => {)}-IntegrationsPage.getLayout = (page) => <IntegrationsLayout>{page}</IntegrationsLayout>+IntegrationsPage.getLayout = (page) => (+ <DefaultLayout>+ <IntegrationsLayout>{page}</IntegrationsLayout>+ </DefaultLayout>+)export default IntegrationsPagediff --git a/apps/studio/pages/project/[ref]/logs/auth-logs.tsx b/apps/studio/pages/project/[ref]/logs/auth-logs.tsxindex b8cab60071b..92c24441abd 100644--- a/apps/studio/pages/project/[ref]/logs/auth-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/auth-logs.tsx@@ -1,6 +1,7 @@import { PermissionAction } from '@supabase/shared-types/out/constants'import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'+import DefaultLayout from 'components/layouts/DefaultLayout'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import NoPermission from 'components/ui/NoPermission'@@ -19,6 +20,10 @@ const LogsPage: NextPageWithLayout = () => {)}-LogsPage.getLayout = (page) => <LogsLayout title="Auth Logs">{page}</LogsLayout>+LogsPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="Auth Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogsPagediff --git a/apps/studio/pages/project/[ref]/logs/collections/[collectionToken].tsx b/apps/studio/pages/project/[ref]/logs/collections/[collectionToken].tsxindex 4fb57d4dd28..f10f5f2a3da 100644--- a/apps/studio/pages/project/[ref]/logs/collections/[collectionToken].tsx+++ b/apps/studio/pages/project/[ref]/logs/collections/[collectionToken].tsx@@ -1,9 +1,14 @@import { WarehouseCollectionDetail } from 'components/interfaces/DataWarehouse/WarehouseCollectionDetail'+import DefaultLayout from 'components/layouts/DefaultLayout'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import { NextPageWithLayout } from 'types'const PageLayout: NextPageWithLayout = () => <WarehouseCollectionDetail />-PageLayout.getLayout = (page) => <LogsLayout>{page}</LogsLayout>+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout>{page}</LogsLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/logs/cron-logs.tsx b/apps/studio/pages/project/[ref]/logs/cron-logs.tsxindex d6a549a1394..44bb6f108d4 100644--- a/apps/studio/pages/project/[ref]/logs/cron-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/cron-logs.tsx@@ -6,6 +6,7 @@ import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import type { NextPageWithLayout } from 'types'import { LogsTableName } from 'components/interfaces/Settings/Logs/Logs.constants'+import DefaultLayout from 'components/layouts/DefaultLayout'export const LogPage: NextPageWithLayout = () => {const router = useRouter()@@ -21,6 +22,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <LogsLayout title="Cron Logs">{page}</LogsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="Cron Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/logs/edge-functions-logs.tsx b/apps/studio/pages/project/[ref]/logs/edge-functions-logs.tsxindex f94e5795654..213544a74de 100644--- a/apps/studio/pages/project/[ref]/logs/edge-functions-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/edge-functions-logs.tsx@@ -4,7 +4,7 @@ import { LogsTableName } from 'components/interfaces/Settings/Logs/Logs.constantimport LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import type { NextPageWithLayout } from 'types'-+import DefaultLayout from 'components/layouts/DefaultLayout'export const LogPage: NextPageWithLayout = () => {const router = useRouter()const { ref } = router.query@@ -19,6 +19,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <LogsLayout title="Edge Functions Logs">{page}</LogsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="Edge Functions Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/logs/edge-logs.tsx b/apps/studio/pages/project/[ref]/logs/edge-logs.tsxindex 923dca7a204..21cbc34cc86 100644--- a/apps/studio/pages/project/[ref]/logs/edge-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/edge-logs.tsx@@ -4,6 +4,7 @@ import { LogsTableName } from 'components/interfaces/Settings/Logs/Logs.constantimport LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'export const LogPage: NextPageWithLayout = () => {const router = useRouter()@@ -19,6 +20,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <LogsLayout title="Edge Logs">{page}</LogsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="Edge Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/logs/explorer/index.tsx b/apps/studio/pages/project/[ref]/logs/explorer/index.tsxindex 587768ab428..bf885850642 100644--- a/apps/studio/pages/project/[ref]/logs/explorer/index.tsx+++ b/apps/studio/pages/project/[ref]/logs/explorer/index.tsx@@ -53,6 +53,7 @@ import { LOCAL_STORAGE_KEYS } from 'lib/constants'import { uuidv4 } from 'lib/helpers'import { useProfile } from 'lib/profile'import type { LogSqlSnippets, NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const PLACEHOLDER_WAREHOUSE_QUERY ='-- Fetch the last 10 logs in the last 7 days \nselect id, timestamp, event_message from `COLLECTION_NAME` \nwhere timestamp > timestamp_sub(current_timestamp(), interval 7 day) \norder by timestamp desc limit 10'@@ -467,6 +468,10 @@ export const LogsExplorerPage: NextPageWithLayout = () => {)}-LogsExplorerPage.getLayout = (page) => <LogsLayout>{page}</LogsLayout>+LogsExplorerPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout>{page}</LogsLayout>+ </DefaultLayout>+)export default LogsExplorerPagediff --git a/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx b/apps/studio/pages/project/[ref]/logs/explorer/recent.tsxindex c4cd91cef4f..ec9ff6a5e50 100644--- a/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx+++ b/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx@@ -9,6 +9,7 @@ import { useLocalStorage } from 'hooks/misc/useLocalStorage'import type { LogSqlSnippets, NextPageWithLayout } from 'types'import { Button } from 'ui'import { Clock } from 'lucide-react'+import DefaultLayout from 'components/layouts/DefaultLayout'export const LogsSavedPage: NextPageWithLayout = () => {const { ref } = useParams()@@ -58,6 +59,10 @@ export const LogsSavedPage: NextPageWithLayout = () => {)}-LogsSavedPage.getLayout = (page) => <LogsLayout>{page}</LogsLayout>+LogsSavedPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout>{page}</LogsLayout>+ </DefaultLayout>+)export default LogsSavedPagediff --git a/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx b/apps/studio/pages/project/[ref]/logs/explorer/saved.tsxindex 5f772d240d7..19024f03005 100644--- a/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx+++ b/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx@@ -9,6 +9,7 @@ import LogsExplorerHeader from 'components/ui/Logs/LogsExplorerHeader'import { useContentQuery } from 'data/content/content-query'import type { NextPageWithLayout } from 'types'import { Loading } from 'ui'+import DefaultLayout from 'components/layouts/DefaultLayout'// [Joshen] This page looks like its not longer in use from a UI POV - double checking and deprecate + add redirectsexport const LogsSavedPage: NextPageWithLayout = () => {@@ -65,6 +66,10 @@ export const LogsSavedPage: NextPageWithLayout = () => {)}-LogsSavedPage.getLayout = (page) => <LogsLayout>{page}</LogsLayout>+LogsSavedPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout>{page}</LogsLayout>+ </DefaultLayout>+)export default LogsSavedPagediff --git a/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx b/apps/studio/pages/project/[ref]/logs/explorer/templates.tsxindex cc6fc90b3da..491604e25d3 100644--- a/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx+++ b/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx@@ -9,6 +9,7 @@ import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import CardButton from 'components/ui/CardButton'import LogsExplorerHeader from 'components/ui/Logs/LogsExplorerHeader'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'export const LogsTemplatesPage: NextPageWithLayout = () => {const { ref: projectRef } = useParams()@@ -27,7 +28,11 @@ export const LogsTemplatesPage: NextPageWithLayout = () => {)}-LogsTemplatesPage.getLayout = (page) => <LogsLayout>{page}</LogsLayout>+LogsTemplatesPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout>{page}</LogsLayout>+ </DefaultLayout>+)export default LogsTemplatesPagediff --git a/apps/studio/pages/project/[ref]/logs/pgcron-logs.tsx b/apps/studio/pages/project/[ref]/logs/pgcron-logs.tsxindex 25ba5c01e35..fbb829360f7 100644--- a/apps/studio/pages/project/[ref]/logs/pgcron-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/pgcron-logs.tsx@@ -3,6 +3,7 @@ import { useRouter } from 'next/router'import { LogsTableName } from 'components/interfaces/Settings/Logs/Logs.constants'import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import type { NextPageWithLayout } from 'types'export const LogPage: NextPageWithLayout = () => {@@ -19,6 +20,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <LogsLayout title="PgCron Logs">{page}</LogsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="PgCron Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/logs/pooler-logs.tsx b/apps/studio/pages/project/[ref]/logs/pooler-logs.tsxindex 37c02c2e667..fd4885f9fc0 100644--- a/apps/studio/pages/project/[ref]/logs/pooler-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/pooler-logs.tsx@@ -1,6 +1,7 @@import { useParams } from 'common'import { LogsTableName } from 'components/interfaces/Settings/Logs/Logs.constants'import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'+import DefaultLayout from 'components/layouts/DefaultLayout'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import { Loading } from 'components/ui/Loading'import { usePoolingConfigurationQuery } from 'data/database/pooling-configuration-query'@@ -23,6 +24,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <LogsLayout title="Pooler Logs">{page}</LogsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="Pooler Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/logs/postgres-logs.tsx b/apps/studio/pages/project/[ref]/logs/postgres-logs.tsxindex 90e6a292bb3..3f93fb25981 100644--- a/apps/studio/pages/project/[ref]/logs/postgres-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/postgres-logs.tsx@@ -4,6 +4,7 @@ import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import type { NextPageWithLayout } from 'types'import { LogsTableName } from 'components/interfaces/Settings/Logs/Logs.constants'+import DefaultLayout from 'components/layouts/DefaultLayout'export const LogPage: NextPageWithLayout = () => {const router = useRouter()@@ -19,6 +20,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <LogsLayout title="Postgres Logs">{page}</LogsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="Postgres Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/logs/postgrest-logs.tsx b/apps/studio/pages/project/[ref]/logs/postgrest-logs.tsxindex 37901dfe793..09c25060447 100644--- a/apps/studio/pages/project/[ref]/logs/postgrest-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/postgrest-logs.tsx@@ -5,6 +5,7 @@ import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import type { NextPageWithLayout } from 'types'import { LogsTableEmptyState } from 'components/interfaces/Settings/Logs/LogsTableEmptyState'+import DefaultLayout from 'components/layouts/DefaultLayout'export const LogPage: NextPageWithLayout = () => {const router = useRouter()@@ -26,6 +27,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <LogsLayout title="Postgrest Logs">{page}</LogsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="Postgrest Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/logs/realtime-logs.tsx b/apps/studio/pages/project/[ref]/logs/realtime-logs.tsxindex 636ffa945da..ac99ca8a000 100644--- a/apps/studio/pages/project/[ref]/logs/realtime-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/realtime-logs.tsx@@ -3,6 +3,7 @@ import { useRouter } from 'next/router'import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'export const LogPage: NextPageWithLayout = () => {const router = useRouter()@@ -19,6 +20,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <LogsLayout title="Realtime Logs">{page}</LogsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="Realtime Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/logs/storage-logs.tsx b/apps/studio/pages/project/[ref]/logs/storage-logs.tsxindex 41a65f98281..2be8683e54d 100644--- a/apps/studio/pages/project/[ref]/logs/storage-logs.tsx+++ b/apps/studio/pages/project/[ref]/logs/storage-logs.tsx@@ -2,6 +2,7 @@ import { useRouter } from 'next/router'import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import type { NextPageWithLayout } from 'types'export const LogPage: NextPageWithLayout = () => {@@ -19,6 +20,10 @@ export const LogPage: NextPageWithLayout = () => {)}-LogPage.getLayout = (page) => <LogsLayout title="Storage Logs">{page}</LogsLayout>+LogPage.getLayout = (page) => (+ <DefaultLayout>+ <LogsLayout title="Storage Logs">{page}</LogsLayout>+ </DefaultLayout>+)export default LogPagediff --git a/apps/studio/pages/project/[ref]/realtime/inspector.tsx b/apps/studio/pages/project/[ref]/realtime/inspector.tsxindex b180cf75bac..12c7968597f 100644--- a/apps/studio/pages/project/[ref]/realtime/inspector.tsx+++ b/apps/studio/pages/project/[ref]/realtime/inspector.tsx@@ -3,6 +3,7 @@ import type { NextPageWithLayout } from 'types'import { RealtimeInspector } from 'components/interfaces/Realtime/Inspector'import RealtimeLayout from 'components/layouts/RealtimeLayout/RealtimeLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import NoPermission from 'components/ui/NoPermission'import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'@@ -17,7 +18,9 @@ export const InspectorPage: NextPageWithLayout = () => {}InspectorPage.getLayout = (page) => (- <RealtimeLayout title="Realtime Inspector">{page}</RealtimeLayout>+ <DefaultLayout>+ <RealtimeLayout title="Realtime Inspector">{page}</RealtimeLayout>+ </DefaultLayout>)export default InspectorPagediff --git a/apps/studio/pages/project/[ref]/realtime/policies.tsx b/apps/studio/pages/project/[ref]/realtime/policies.tsxindex 9f80d443f91..20555d9d134 100644--- a/apps/studio/pages/project/[ref]/realtime/policies.tsx+++ b/apps/studio/pages/project/[ref]/realtime/policies.tsx@@ -2,11 +2,16 @@ import { RealtimePolicies } from 'components/interfaces/Realtime/Policies'import type { NextPageWithLayout } from 'types'import RealtimeLayout from 'components/layouts/RealtimeLayout/RealtimeLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'const RealtimePoliciesPage: NextPageWithLayout = () => {return <RealtimePolicies />}-RealtimePoliciesPage.getLayout = (page) => <RealtimeLayout title="Policies">{page}</RealtimeLayout>+RealtimePoliciesPage.getLayout = (page) => (+ <DefaultLayout>+ <RealtimeLayout title="Policies">{page}</RealtimeLayout>+ </DefaultLayout>+)export default RealtimePoliciesPagediff --git a/apps/studio/pages/project/[ref]/reports/[id].tsx b/apps/studio/pages/project/[ref]/reports/[id].tsxindex ffac540da75..9f74349d499 100644--- a/apps/studio/pages/project/[ref]/reports/[id].tsx+++ b/apps/studio/pages/project/[ref]/reports/[id].tsx@@ -1,5 +1,6 @@import ReportPadding from 'components/interfaces/Reports/ReportPadding'import Reports from 'components/interfaces/Reports/Reports'+import DefaultLayout from 'components/layouts/DefaultLayout'import ReportsLayout from 'components/layouts/ReportsLayout/ReportsLayout'import type { NextPageWithLayout } from 'types'@@ -11,6 +12,10 @@ const PageLayout: NextPageWithLayout = () => (</div>)-PageLayout.getLayout = (page) => <ReportsLayout>{page}</ReportsLayout>+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <ReportsLayout>{page}</ReportsLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/reports/api-overview.tsx b/apps/studio/pages/project/[ref]/reports/api-overview.tsxindex 23c9610e2d1..08ed4ddc3a4 100644--- a/apps/studio/pages/project/[ref]/reports/api-overview.tsx+++ b/apps/studio/pages/project/[ref]/reports/api-overview.tsx@@ -11,6 +11,7 @@ import {TotalRequestsChartRenderer,} from 'components/interfaces/Reports/renderers/ApiRenderers'import type { DatePickerToFrom } from 'components/interfaces/Settings/Logs/Logs.types'+import DefaultLayout from 'components/layouts/DefaultLayout'import ReportsLayout from 'components/layouts/ReportsLayout/ReportsLayout'import ShimmerLine from 'components/ui/ShimmerLine'import { useApiReport } from 'data/reports/api-report-query'@@ -116,6 +117,10 @@ export const ApiReport: NextPageWithLayout = () => {)}-ApiReport.getLayout = (page) => <ReportsLayout>{page}</ReportsLayout>+ApiReport.getLayout = (page) => (+ <DefaultLayout>+ <ReportsLayout>{page}</ReportsLayout>+ </DefaultLayout>+)export default ApiReportdiff --git a/apps/studio/pages/project/[ref]/reports/database.tsx b/apps/studio/pages/project/[ref]/reports/database.tsxindex cb5442ff7b3..1cf9e30c563 100644--- a/apps/studio/pages/project/[ref]/reports/database.tsx+++ b/apps/studio/pages/project/[ref]/reports/database.tsx@@ -28,6 +28,7 @@ import { TIME_PERIODS_INFRA } from 'lib/constants/metrics'import { formatBytes } from 'lib/helpers'import { useDatabaseSelectorStateSnapshot } from 'state/database-selector'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const DatabaseReport: NextPageWithLayout = () => {return (@@ -37,7 +38,11 @@ const DatabaseReport: NextPageWithLayout = () => {)}-DatabaseReport.getLayout = (page) => <ReportsLayout title="Database">{page}</ReportsLayout>+DatabaseReport.getLayout = (page) => (+ <DefaultLayout>+ <ReportsLayout title="Database">{page}</ReportsLayout>+ </DefaultLayout>+)export default DatabaseReportdiff --git a/apps/studio/pages/project/[ref]/reports/index.tsx b/apps/studio/pages/project/[ref]/reports/index.tsxindex bda2e93bec5..c063658e31f 100644--- a/apps/studio/pages/project/[ref]/reports/index.tsx+++ b/apps/studio/pages/project/[ref]/reports/index.tsx@@ -11,6 +11,7 @@ import { useContentQuery } from 'data/content/content-query'import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'import { useProfile } from 'lib/profile'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'export const UserReportPage: NextPageWithLayout = () => {const router = useRouter()@@ -74,6 +75,10 @@ export const UserReportPage: NextPageWithLayout = () => {)}-UserReportPage.getLayout = (page) => <ReportsLayout>{page}</ReportsLayout>+UserReportPage.getLayout = (page) => (+ <DefaultLayout>+ <ReportsLayout>{page}</ReportsLayout>+ </DefaultLayout>+)export default UserReportPagediff --git a/apps/studio/pages/project/[ref]/reports/storage.tsx b/apps/studio/pages/project/[ref]/reports/storage.tsxindex 9d8f711367a..8467d395946 100644--- a/apps/studio/pages/project/[ref]/reports/storage.tsx+++ b/apps/studio/pages/project/[ref]/reports/storage.tsx@@ -18,6 +18,7 @@ import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-queimport { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'import { RefreshCw } from 'lucide-react'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'export const StorageReport: NextPageWithLayout = () => {const report = useStorageReport()@@ -83,6 +84,10 @@ export const StorageReport: NextPageWithLayout = () => {)}-StorageReport.getLayout = (page) => <ReportsLayout>{page}</ReportsLayout>+StorageReport.getLayout = (page) => (+ <DefaultLayout>+ <ReportsLayout>{page}</ReportsLayout>+ </DefaultLayout>+)export default StorageReportdiff --git a/apps/studio/pages/project/[ref]/settings/addons.tsx b/apps/studio/pages/project/[ref]/settings/addons.tsxindex 9d906d289fc..d9bf4b63684 100644--- a/apps/studio/pages/project/[ref]/settings/addons.tsx+++ b/apps/studio/pages/project/[ref]/settings/addons.tsx@@ -1,4 +1,5 @@import Addons from 'components/interfaces/Settings/Addons/Addons'+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import {ScaffoldContainer,@@ -22,5 +23,9 @@ const ProjectAddons: NextPageWithLayout = () => {)}-ProjectAddons.getLayout = (page) => <SettingsLayout title="Add ons">{page}</SettingsLayout>+ProjectAddons.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout title="Add ons">{page}</SettingsLayout>+ </DefaultLayout>+)export default ProjectAddonsdiff --git a/apps/studio/pages/project/[ref]/settings/api.tsx b/apps/studio/pages/project/[ref]/settings/api.tsxindex 1b5d2c6211d..2b0ad1b5c19 100644--- a/apps/studio/pages/project/[ref]/settings/api.tsx+++ b/apps/studio/pages/project/[ref]/settings/api.tsx@@ -1,4 +1,5 @@import ServiceList from 'components/interfaces/Settings/API/ServiceList'+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import { ScaffoldContainer, ScaffoldHeader, ScaffoldTitle } from 'components/layouts/Scaffold'import type { NextPageWithLayout } from 'types'@@ -18,5 +19,9 @@ const ApiSettings: NextPageWithLayout = () => {)}-ApiSettings.getLayout = (page) => <SettingsLayout title="API Settings">{page}</SettingsLayout>+ApiSettings.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout title="API Settings">{page}</SettingsLayout>+ </DefaultLayout>+)export default ApiSettingsdiff --git a/apps/studio/pages/project/[ref]/settings/auth.tsx b/apps/studio/pages/project/[ref]/settings/auth.tsxindex 6976328b857..cd528d2f017 100644--- a/apps/studio/pages/project/[ref]/settings/auth.tsx+++ b/apps/studio/pages/project/[ref]/settings/auth.tsx@@ -1,4 +1,5 @@import { useParams } from 'common'+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'import { ChevronRight } from 'lucide-react'@@ -97,6 +98,10 @@ const ProjectSettings: NextPageWithLayout = () => {)}-ProjectSettings.getLayout = (page) => <SettingsLayout title="Authentication">{page}</SettingsLayout>+ProjectSettings.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout title="Authentication">{page}</SettingsLayout>+ </DefaultLayout>+)export default ProjectSettingsdiff --git a/apps/studio/pages/project/[ref]/settings/billing/usage.tsx b/apps/studio/pages/project/[ref]/settings/billing/usage.tsxindex 10f1ee0770e..95b05e37631 100644--- a/apps/studio/pages/project/[ref]/settings/billing/usage.tsx+++ b/apps/studio/pages/project/[ref]/settings/billing/usage.tsx@@ -5,6 +5,7 @@ import { useParams } from 'common'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const ProjectBillingUsage: NextPageWithLayout = () => {// This component is only used for redirects, as nextjs cant redirect based on hash@@ -32,6 +33,10 @@ const ProjectBillingUsage: NextPageWithLayout = () => {return null}-ProjectBillingUsage.getLayout = (page) => <SettingsLayout title="Usage">{page}</SettingsLayout>+ProjectBillingUsage.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout title="Usage">{page}</SettingsLayout>+ </DefaultLayout>+)export default ProjectBillingUsagediff --git a/apps/studio/pages/project/[ref]/settings/compute-and-disk.tsx b/apps/studio/pages/project/[ref]/settings/compute-and-disk.tsxindex ec27c90d262..b7368afb060 100644--- a/apps/studio/pages/project/[ref]/settings/compute-and-disk.tsx+++ b/apps/studio/pages/project/[ref]/settings/compute-and-disk.tsx@@ -1,4 +1,5 @@import { DiskManagementForm } from 'components/interfaces/DiskManagement/DiskManagementForm'+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import {ScaffoldContainer,@@ -24,5 +25,9 @@ const AuthSettings: NextPageWithLayout = () => {)}-AuthSettings.getLayout = (page) => <SettingsLayout>{page}</SettingsLayout>+AuthSettings.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout>{page}</SettingsLayout>+ </DefaultLayout>+)export default AuthSettingsdiff --git a/apps/studio/pages/project/[ref]/settings/database.tsx b/apps/studio/pages/project/[ref]/settings/database.tsxindex 180d58743d6..e374b026ee8 100644--- a/apps/studio/pages/project/[ref]/settings/database.tsx+++ b/apps/studio/pages/project/[ref]/settings/database.tsx@@ -7,6 +7,7 @@ import ResetDbPassword from 'components/interfaces/Settings/Database/DatabaseSetimport DiskSizeConfiguration from 'components/interfaces/Settings/Database/DiskSizeConfiguration'import { PoolingModesModal } from 'components/interfaces/Settings/Database/PoolingModesModal'import SSLConfiguration from 'components/interfaces/Settings/Database/SSLConfiguration'+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import { ScaffoldContainer, ScaffoldHeader, ScaffoldTitle } from 'components/layouts/Scaffold'import { useSelectedProject } from 'hooks/misc/useSelectedProject'@@ -48,6 +49,10 @@ const ProjectSettings: NextPageWithLayout = () => {)}-ProjectSettings.getLayout = (page) => <SettingsLayout title="Database">{page}</SettingsLayout>+ProjectSettings.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout title="Database">{page}</SettingsLayout>+ </DefaultLayout>+)export default ProjectSettingsdiff --git a/apps/studio/pages/project/[ref]/settings/functions.tsx b/apps/studio/pages/project/[ref]/settings/functions.tsxindex 46baeecc562..8ed9a74e353 100644--- a/apps/studio/pages/project/[ref]/settings/functions.tsx+++ b/apps/studio/pages/project/[ref]/settings/functions.tsx@@ -1,4 +1,5 @@import EdgeFunctionSecrets from 'components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets'+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import {ScaffoldContainer,@@ -26,6 +27,10 @@ const PageLayout: NextPageWithLayout = () => {)}-PageLayout.getLayout = (page) => <SettingsLayout title="Settings">{page}</SettingsLayout>+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout title="Settings">{page}</SettingsLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/settings/general.tsx b/apps/studio/pages/project/[ref]/settings/general.tsxindex 4ad1579cfce..c6e4981befa 100644--- a/apps/studio/pages/project/[ref]/settings/general.tsx+++ b/apps/studio/pages/project/[ref]/settings/general.tsx@@ -6,6 +6,7 @@ import {General,TransferProjectPanel,} from 'components/interfaces/Settings/General'+import DefaultLayout from 'components/layouts/DefaultLayout'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import { ScaffoldContainer, ScaffoldHeader, ScaffoldTitle } from 'components/layouts/Scaffold'@@ -47,5 +48,9 @@ const ProjectSettings: NextPageWithLayout = () => {)}-ProjectSettings.getLayout = (page) => <SettingsLayout title="General">{page}</SettingsLayout>+ProjectSettings.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout title="General">{page}</SettingsLayout>+ </DefaultLayout>+)export default ProjectSettingsdiff --git a/apps/studio/pages/project/[ref]/settings/index.tsx b/apps/studio/pages/project/[ref]/settings/index.tsxindex e66b6c2ecc9..cc72e8e673c 100644--- a/apps/studio/pages/project/[ref]/settings/index.tsx+++ b/apps/studio/pages/project/[ref]/settings/index.tsx@@ -1,3 +1,4 @@+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import type { NextPageWithLayout } from 'types'@@ -5,6 +6,10 @@ const Settings: NextPageWithLayout = () => {return <>{/* <h1>Use this as a page template for settings pages</h1> */}</>}-Settings.getLayout = (page) => <SettingsLayout>{page}</SettingsLayout>+Settings.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout>{page}</SettingsLayout>+ </DefaultLayout>+)export default Settingsdiff --git a/apps/studio/pages/project/[ref]/settings/infrastructure.tsx b/apps/studio/pages/project/[ref]/settings/infrastructure.tsxindex 415339b51c0..13800cd0652 100644--- a/apps/studio/pages/project/[ref]/settings/infrastructure.tsx+++ b/apps/studio/pages/project/[ref]/settings/infrastructure.tsx@@ -1,5 +1,6 @@import InfrastructureActivity from 'components/interfaces/Settings/Infrastructure/InfrastructureActivity'import InfrastructureInfo from 'components/interfaces/Settings/Infrastructure/InfrastructureInfo'+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import {ScaffoldContainer,@@ -29,7 +30,9 @@ const ProjectInfrastructure: NextPageWithLayout = () => {}ProjectInfrastructure.getLayout = (page) => (- <SettingsLayout title="Infrastructure">{page}</SettingsLayout>+ <DefaultLayout>+ <SettingsLayout title="Infrastructure">{page}</SettingsLayout>+ </DefaultLayout>)export default ProjectInfrastructurediff --git a/apps/studio/pages/project/[ref]/settings/integrations.tsx b/apps/studio/pages/project/[ref]/settings/integrations.tsxindex d2877d3fe1d..e6aa44922ea 100644--- a/apps/studio/pages/project/[ref]/settings/integrations.tsx+++ b/apps/studio/pages/project/[ref]/settings/integrations.tsx@@ -1,4 +1,5 @@import IntegrationSettings from 'components/interfaces/Settings/Integrations/IntegrationsSettings'+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import {ScaffoldContainer,@@ -22,5 +23,9 @@ const OrgIntegrationSettings: NextPageWithLayout = () => {)}-OrgIntegrationSettings.getLayout = (page) => <SettingsLayout>{page}</SettingsLayout>+OrgIntegrationSettings.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout>{page}</SettingsLayout>+ </DefaultLayout>+)export default OrgIntegrationSettingsdiff --git a/apps/studio/pages/project/[ref]/settings/log-drains.tsx b/apps/studio/pages/project/[ref]/settings/log-drains.tsxindex 5ed27057f7f..e84dcaea91f 100644--- a/apps/studio/pages/project/[ref]/settings/log-drains.tsx+++ b/apps/studio/pages/project/[ref]/settings/log-drains.tsx@@ -21,6 +21,7 @@ import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'import { useCurrentOrgPlan } from 'hooks/misc/useCurrentOrgPlan'import type { NextPageWithLayout } from 'types'import { Alert_Shadcn_, Button } from 'ui'+import DefaultLayout from 'components/layouts/DefaultLayout'const LogDrainsSettings: NextPageWithLayout = () => {const canManageLogDrains = useCheckPermissions(PermissionAction.ANALYTICS_ADMIN_WRITE, 'logflare')@@ -155,5 +156,9 @@ const LogDrainsSettings: NextPageWithLayout = () => {)}-LogDrainsSettings.getLayout = (page) => <SettingsLayout title="Log Drains">{page}</SettingsLayout>+LogDrainsSettings.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout title="Log Drains">{page}</SettingsLayout>+ </DefaultLayout>+)export default LogDrainsSettingsdiff --git a/apps/studio/pages/project/[ref]/settings/storage.tsx b/apps/studio/pages/project/[ref]/settings/storage.tsxindex a2e1077d5dc..2d489c48362 100644--- a/apps/studio/pages/project/[ref]/settings/storage.tsx+++ b/apps/studio/pages/project/[ref]/settings/storage.tsx@@ -1,3 +1,4 @@+import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import {ScaffoldContainer,@@ -26,5 +27,9 @@ const PageLayout: NextPageWithLayout = () => {)}-PageLayout.getLayout = (page) => <SettingsLayout title="Settings">{page}</SettingsLayout>+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <SettingsLayout title="Settings">{page}</SettingsLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/sql/[id].tsx b/apps/studio/pages/project/[ref]/sql/[id].tsxindex 39874c355a4..38f310f2078 100644--- a/apps/studio/pages/project/[ref]/sql/[id].tsx+++ b/apps/studio/pages/project/[ref]/sql/[id].tsx@@ -8,6 +8,7 @@ import { useContentIdQuery } from 'data/content/content-id-query'import { useAppStateSnapshot } from 'state/app-state'import { SnippetWithContent, useSnippets, useSqlEditorV2StateSnapshot } from 'state/sql-editor-v2'import type { NextPageWithLayout } from 'types'+import DefaultLayout from 'components/layouts/DefaultLayout'const SqlEditor: NextPageWithLayout = () => {const router = useRouter()@@ -57,6 +58,10 @@ const SqlEditor: NextPageWithLayout = () => {)}-SqlEditor.getLayout = (page) => <SQLEditorLayout title="SQL">{page}</SQLEditorLayout>+SqlEditor.getLayout = (page) => (+ <DefaultLayout>+ <SQLEditorLayout title="SQL">{page}</SQLEditorLayout>+ </DefaultLayout>+)export default SqlEditordiff --git a/apps/studio/pages/project/[ref]/sql/quickstarts.tsx b/apps/studio/pages/project/[ref]/sql/quickstarts.tsxindex 17d1071ce34..7d53fea7325 100644--- a/apps/studio/pages/project/[ref]/sql/quickstarts.tsx+++ b/apps/studio/pages/project/[ref]/sql/quickstarts.tsx@@ -1,4 +1,5 @@import SQLQuickstarts from 'components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts'+import DefaultLayout from 'components/layouts/DefaultLayout'import SQLEditorLayout from 'components/layouts/SQLEditorLayout/SQLEditorLayout'import type { NextPageWithLayout } from 'types'@@ -6,6 +7,10 @@ const SqlEditorWelcome: NextPageWithLayout = () => {return <SQLQuickstarts />}-SqlEditorWelcome.getLayout = (page) => <SQLEditorLayout title="Quickstarts">{page}</SQLEditorLayout>+SqlEditorWelcome.getLayout = (page) => (+ <DefaultLayout>+ <SQLEditorLayout title="Quickstarts">{page}</SQLEditorLayout>+ </DefaultLayout>+)export default SqlEditorWelcomediff --git a/apps/studio/pages/project/[ref]/sql/templates.tsx b/apps/studio/pages/project/[ref]/sql/templates.tsxindex c988a373dcc..de06e63259a 100644--- a/apps/studio/pages/project/[ref]/sql/templates.tsx+++ b/apps/studio/pages/project/[ref]/sql/templates.tsx@@ -1,4 +1,5 @@import SQLTemplates from 'components/interfaces/SQLEditor/SQLTemplates/SQLTemplates'+import DefaultLayout from 'components/layouts/DefaultLayout'import SQLEditorLayout from 'components/layouts/SQLEditorLayout/SQLEditorLayout'import type { NextPageWithLayout } from 'types'@@ -6,6 +7,10 @@ const SqlEditorWelcome: NextPageWithLayout = () => {return <SQLTemplates />}-SqlEditorWelcome.getLayout = (page) => <SQLEditorLayout title="SQL">{page}</SQLEditorLayout>+SqlEditorWelcome.getLayout = (page) => (+ <DefaultLayout>+ <SQLEditorLayout title="SQL">{page}</SQLEditorLayout>+ </DefaultLayout>+)export default SqlEditorWelcomediff --git a/apps/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx b/apps/studio/pages/project/[ref]/storage/buckets/[bucketId].tsxindex 89726e6bcea..20f1c7a3b54 100644--- a/apps/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx+++ b/apps/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx@@ -4,6 +4,7 @@ import { find } from 'lodash'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import StorageBucketsError from 'components/layouts/StorageLayout/StorageBucketsError'import StorageLayout from 'components/layouts/StorageLayout/StorageLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import { StorageExplorer } from 'components/to-be-cleaned/Storage'import { useBucketsQuery } from 'data/storage/buckets-query'import type { NextPageWithLayout } from 'types'@@ -37,6 +38,10 @@ const PageLayout: NextPageWithLayout = () => {)}-PageLayout.getLayout = (page) => <StorageLayout title="Buckets">{page}</StorageLayout>+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <StorageLayout title="Buckets">{page}</StorageLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/storage/buckets/index.tsx b/apps/studio/pages/project/[ref]/storage/buckets/index.tsxindex f65bd2b61f5..85ee5497522 100644--- a/apps/studio/pages/project/[ref]/storage/buckets/index.tsx+++ b/apps/studio/pages/project/[ref]/storage/buckets/index.tsx@@ -3,6 +3,7 @@ import { useParams } from 'common'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import StorageBucketsError from 'components/layouts/StorageLayout/StorageBucketsError'import StorageLayout from 'components/layouts/StorageLayout/StorageLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'import { useBucketsQuery } from 'data/storage/buckets-query'import type { NextPageWithLayout } from 'types'@@ -37,6 +38,10 @@ const PageLayout: NextPageWithLayout = () => {)}-PageLayout.getLayout = (page) => <StorageLayout title="Buckets">{page}</StorageLayout>+PageLayout.getLayout = (page) => (+ <DefaultLayout>+ <StorageLayout title="Buckets">{page}</StorageLayout>+ </DefaultLayout>+)export default PageLayoutdiff --git a/apps/studio/pages/project/[ref]/storage/index.tsx b/apps/studio/pages/project/[ref]/storage/index.tsxindex c3d9981ca6a..153afc04db5 100644--- a/apps/studio/pages/project/[ref]/storage/index.tsx+++ b/apps/studio/pages/project/[ref]/storage/index.tsx@@ -1,10 +1,15 @@import StorageLayout from 'components/layouts/StorageLayout/StorageLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import type { NextPageWithLayout } from 'types'const Storage: NextPageWithLayout = () => {return <>{/* <h1>Use this as a template for storage pages</h1> */}</>}-Storage.getLayout = (page) => <StorageLayout title="Storage">{page}</StorageLayout>+Storage.getLayout = (page) => (+ <DefaultLayout>+ <StorageLayout title="Storage">{page}</StorageLayout>+ </DefaultLayout>+)export default Storagediff --git a/apps/studio/pages/project/[ref]/storage/policies.tsx b/apps/studio/pages/project/[ref]/storage/policies.tsxindex 18200a699cd..d2daedb8925 100644--- a/apps/studio/pages/project/[ref]/storage/policies.tsx+++ b/apps/studio/pages/project/[ref]/storage/policies.tsx@@ -1,4 +1,5 @@import StorageLayout from 'components/layouts/StorageLayout/StorageLayout'+import DefaultLayout from 'components/layouts/DefaultLayout'import { StoragePolicies } from 'components/to-be-cleaned/Storage'import type { NextPageWithLayout } from 'types'@@ -10,6 +11,10 @@ const StoragePoliciesPage: NextPageWithLayout = () => {)}-StoragePoliciesPage.getLayout = (page) => <StorageLayout title="Policies">{page}</StorageLayout>+StoragePoliciesPage.getLayout = (page) => (+ <DefaultLayout>+ <StorageLayout title="Policies">{page}</StorageLayout>+ </DefaultLayout>+)export default StoragePoliciesPagediff --git a/apps/studio/pages/sign-in-fly-tos.tsx b/apps/studio/pages/sign-in-fly-tos.tsxindex 93cdf7d5520..5929127bceb 100644--- a/apps/studio/pages/sign-in-fly-tos.tsx+++ b/apps/studio/pages/sign-in-fly-tos.tsx@@ -68,7 +68,7 @@ const SignInFlyTos = () => {}return (- <div className="relative mx-auto flex flex-1 w-full flex-col items-center justify-center space-y-6">+ <div className="relative mx-auto flex flex-1 w-full flex-col items-center justify-center space-y-6 h-screen"><div className="absolute top-0 mx-auto w-full max-w-7xl px-8 pt-6 sm:px-6 lg:px-8"><nav className="relative flex items-center justify-between sm:h-10"><div className="flex flex-shrink-0 flex-grow items-center lg:flex-grow-0">diff --git a/apps/studio/pages/sign-in-mfa.tsx b/apps/studio/pages/sign-in-mfa.tsxindex ba0f0fde5cf..b73e2922c79 100644--- a/apps/studio/pages/sign-in-mfa.tsx+++ b/apps/studio/pages/sign-in-mfa.tsx@@ -3,13 +3,13 @@ import { useRouter } from 'next/router'import { useEffect, useState } from 'react'import { toast } from 'sonner'+import { TelemetryActions } from 'common/telemetry-constants'import SignInMfaForm from 'components/interfaces/SignIn/SignInMfaForm'import SignInLayout from 'components/layouts/SignInLayout/SignInLayout'import { Loading } from 'components/ui/Loading'+import { useSendEventMutation } from 'data/telemetry/send-event-mutation'import { auth, buildPathWithParams, getAccessToken, getReturnToPath } from 'lib/gotrue'import type { NextPageWithLayout } from 'types'-import { useSendEventMutation } from 'data/telemetry/send-event-mutation'-import { TelemetryActions } from 'common/telemetry-constants'const SignInMfaPage: NextPageWithLayout = () => {const router = useRouter()@@ -64,7 +64,7 @@ const SignInMfaPage: NextPageWithLayout = () => {if (loading) {return (- <div className="flex flex-col flex-1 bg-alternative h-full items-center justify-center">+ <div className="flex flex-col flex-1 bg-alternative h-screen items-center justify-center"><Loading /></div>)