The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Address various console warnings (#38789)
Joshen Lim1160f89b70a8
diff --git a/apps/studio/components/interfaces/APIKeys/APIKeyRow.tsx b/apps/studio/components/interfaces/APIKeys/APIKeyRow.tsxindex 1a0eaa02a9e..a7833369882 100644--- a/apps/studio/components/interfaces/APIKeys/APIKeyRow.tsx+++ b/apps/studio/components/interfaces/APIKeys/APIKeyRow.tsx@@ -19,7 +19,7 @@ export const APIKeyRow = ({apiKey: Extract<APIKeysData[number], { type: 'secret' | 'publishable' }>lastSeen?: { timestamp: string }}) => {- const MotionTableRow = motion(TableRow)+ const MotionTableRow = motion.create(TableRow)return (<MotionTableRowdiff --git a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsxindex 668a627bf0a..93ce13e3f73 100644--- a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx+++ b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx@@ -253,6 +253,7 @@ export const CreateBranchModal = () => {onOpenAutoFocus={(e) => {if (promptProPlanUpgrade) e.preventDefault()}}+ aria-describedby={undefined}><DialogHeader padding="small"><DialogTitle>Create a new preview branch</DialogTitle>diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/signing-key-row.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/signing-key-row.tsxindex cbb86d1f7f0..cd0ded6d0dd 100644--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/signing-key-row.tsx+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/signing-key-row.tsx@@ -39,7 +39,7 @@ interface SigningKeyRowProps {isLoading?: boolean}-const MotionTableRow = motion(TableRow)+const MotionTableRow = motion.create(TableRow)export const SigningKeyRow = ({signingKey,diff --git a/apps/studio/components/interfaces/Sidebar.tsx b/apps/studio/components/interfaces/Sidebar.tsxindex 492a9956556..a4a7b9b4ea5 100644--- a/apps/studio/components/interfaces/Sidebar.tsx+++ b/apps/studio/components/interfaces/Sidebar.tsx@@ -51,7 +51,7 @@ export const ICON_STROKE_WIDTH = 1.5export type SidebarBehaviourType = 'expandable' | 'open' | 'closed'export const DEFAULT_SIDEBAR_BEHAVIOR = 'expandable'-const SidebarMotion = motion(SidebarPrimitive) as FC<+const SidebarMotion = motion.create(SidebarPrimitive) as FC<ComponentProps<typeof SidebarPrimitive> & {transition?: MotionProps['transition']}diff --git a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsxindex 90cd9ca6892..a9f7e2403cc 100644--- a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx+++ b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx@@ -183,7 +183,12 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayoutclassName="hidden md:flex"/>)}- <ResizablePanel order={2} id="panel-right" className="h-full flex flex-col w-full">+ <ResizablePanel+ defaultSize={1}+ order={2}+ id="panel-right"+ className="h-full flex flex-col w-full"+ ><ResizablePanelGroupdirection="horizontal"className="h-full w-full overflow-x-hidden flex-1 flex flex-row gap-0"@@ -191,6 +196,7 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayout><ResizablePanelid="panel-content"+ defaultSize={1}className={cn('w-full xl:min-w-[600px] bg-dash-sidebar')}><main@@ -216,6 +222,7 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayout<ResizableHandle withHandle /><ResizablePanelid="panel-assistant"+ defaultSize={30}minSize={30}maxSize={50}className={cn(diff --git a/apps/studio/components/ui/Charts/useChartHoverState.tsx b/apps/studio/components/ui/Charts/useChartHoverState.tsxindex 672706d4a5a..7c9ad21a9cf 100644--- a/apps/studio/components/ui/Charts/useChartHoverState.tsx+++ b/apps/studio/components/ui/Charts/useChartHoverState.tsx@@ -23,14 +23,16 @@ const subscribers = new Set<(state: ChartHoverState) => void>()// Load initial sync settings from localStoragetry {- const hoverSyncStored = localStorage.getItem(CHART_HOVER_SYNC_STORAGE_KEY)- const tooltipSyncStored = localStorage.getItem(CHART_TOOLTIP_SYNC_STORAGE_KEY)+ if (typeof window !== 'undefined') {+ const hoverSyncStored = localStorage.getItem(CHART_HOVER_SYNC_STORAGE_KEY)+ const tooltipSyncStored = localStorage.getItem(CHART_TOOLTIP_SYNC_STORAGE_KEY)- if (hoverSyncStored !== null) {- globalState.syncHover = JSON.parse(hoverSyncStored)- }- if (tooltipSyncStored !== null) {- globalState.syncTooltip = JSON.parse(tooltipSyncStored)+ if (hoverSyncStored !== null) {+ globalState.syncHover = JSON.parse(hoverSyncStored)+ }+ if (tooltipSyncStored !== null) {+ globalState.syncTooltip = JSON.parse(tooltipSyncStored)+ }}} catch (error) {console.warn('Failed to load chart sync settings from localStorage:', error)diff --git a/apps/studio/pages/_app.tsx b/apps/studio/pages/_app.tsxindex 0fafd6944f4..a4034e0b3ef 100644--- a/apps/studio/pages/_app.tsx+++ b/apps/studio/pages/_app.tsx@@ -32,6 +32,7 @@ import Head from 'next/head'import { NuqsAdapter } from 'nuqs/adapters/next/pages'import { ErrorInfo, useCallback } from 'react'import { ErrorBoundary } from 'react-error-boundary'+import {FeatureFlagProvider,getFlags,diff --git a/packages/common/configcat.ts b/packages/common/configcat.tsindex 419055cbb90..dbfaf43c456 100644--- a/packages/common/configcat.ts+++ b/packages/common/configcat.ts@@ -69,6 +69,8 @@ export async function getFlags(userEmail: string = '', customAttributes?: Recordnew configcat.User(userEmail, undefined, undefined, customAttributes))} else {- return client.getAllValuesAsync()+ return client.getAllValuesAsync(+ new configcat.User('anonymous', undefined, undefined, customAttributes)+ )}}