- Application error: a client-side exception has occurred (see browser console for more
- information)
-
-
Error: {errorMessage}
-
-
- {isRemoveChildError && (
-
-
-
- This error might be caused by Google translate or third-party browser extensions
-
-
- You may try to avoid using Google translate or disable certain browser extensions to
- avoid running into the 'removeChild' on 'Node' error.
-
-
- }>
-
- More information
-
-
-
-
- )}
-
-
- }>
-
- Report to support
-
-
- {/* [Joshen] For local and staging, allow us to escape the error boundary */}
- {/* We could actually investigate how to make this available on prod, but without being able to reliably test this, I'm not keen to do it now */}
- {process.env.NEXT_PUBLIC_ENVIRONMENT !== 'prod' ? (
-
- ) : (
-
- )}
-
+ Application error: a client-side exception has occurred (see browser console for more
+ information)
+
+
{errorMessage}
+
+
+ {isRemoveChildError ? (
+
+
+
+ This error might be caused by Google translate or third-party browser extensions
+
+
+ You may try to avoid using Google translate or disable certain browser extensions to
+ avoid running into the 'removeChild' on 'Node' error.
+
+
+ }>
+
+ More information
+
+
+
+
+ ) : (
+
+ We recommend trying the following:
+
+
+ router.push('/logout')}
+ >
+ Sign out
+ {' '}
+ and sign back in
+
+
+
+ Clear your browser storage
+ {' '}
+ to clean potentially outdated data
+
+
+ Disable browser extensions that might modify page content (e.g., Google Translate)
+
+
If the problem persists, please contact support for assistance
+
+
+
+ )}
+
+
+ }>
+
+ Contact support
+
+
+ {/* [Joshen] For local and staging, allow us to escape the error boundary */}
+ {/* We could actually investigate how to make this available on prod, but without being able to reliably test this, I'm not keen to do it now */}
+ {process.env.NEXT_PUBLIC_ENVIRONMENT !== 'prod' ? (
+
+ ) : (
+
+ )}
+
+
+
+ )
+}
diff --git a/apps/studio/next-env.d.ts b/apps/studio/next-env.d.ts
index a4a7b3f5cfa..52e831b4342 100644
--- a/apps/studio/next-env.d.ts
+++ b/apps/studio/next-env.d.ts
@@ -2,4 +2,4 @@
///
// NOTE: This file should not be edited
-// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
+// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
diff --git a/apps/studio/pages/_app.tsx b/apps/studio/pages/_app.tsx
index 82dde900ed4..f8f95bfbb55 100644
--- a/apps/studio/pages/_app.tsx
+++ b/apps/studio/pages/_app.tsx
@@ -40,7 +40,7 @@ import { FeaturePreviewContextProvider } from 'components/interfaces/App/Feature
import FeaturePreviewModal from 'components/interfaces/App/FeaturePreview/FeaturePreviewModal'
import { MonacoThemeProvider } from 'components/interfaces/App/MonacoThemeProvider'
import { GenerateSql } from 'components/interfaces/SqlGenerator/SqlGenerator'
-import { ErrorBoundaryState } from 'components/ui/ErrorBoundaryState'
+import { GlobalErrorBoundaryState } from 'components/ui/GlobalErrorBoundaryState'
import { useRootQueryClient } from 'data/query-client'
import { customFont, sourceCodePro } from 'fonts'
import { AuthProvider } from 'lib/auth'
@@ -95,7 +95,7 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) {
const isTestEnv = process.env.NEXT_PUBLIC_NODE_ENV === 'test'
return (
-
+
diff --git a/apps/studio/pages/project/[ref]/index.tsx b/apps/studio/pages/project/[ref]/index.tsx
index 4cb8529816b..2f13073bbf0 100644
--- a/apps/studio/pages/project/[ref]/index.tsx
+++ b/apps/studio/pages/project/[ref]/index.tsx
@@ -23,6 +23,7 @@ import { useAppStateSnapshot } from 'state/app-state'
import type { NextPageWithLayout } from 'types'
import {
Badge,
+ Button,
cn,
Tabs_Shadcn_,
TabsContent_Shadcn_,
@@ -81,6 +82,13 @@ const Home: NextPageWithLayout = () => {