Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Bring changes from master and reesolve conflicts

Joshen Lim89cfc865ef26
diff --cc studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
index 1424b5f0444,477252ef4eb..9be9046de12
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
@@@ -1,14 -1,22 +1,24 @@@
import type { PostgresColumn, PostgresSchema, PostgresTable } from '@supabase/postgres-meta'
-import { Dictionary } from 'components/grid'
import { find, get, isEmpty, sortBy } from 'lodash'
import { useEffect, useState } from 'react'
+ import {
+ AlertDescription_Shadcn_,
+ AlertTitle_Shadcn_,
+ Alert_Shadcn_,
+ IconAlertTriangle,
+ IconDatabase,
+ IconHelpCircle,
+ Input,
+ Listbox,
+ SidePanel,
+ } from 'ui'
+import { Dictionary } from 'components/grid'
+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import InformationBox from 'components/ui/InformationBox'
import { FOREIGN_KEY_DELETION_ACTION } from 'data/database/database-query-constants'
+import { useSchemasQuery } from 'data/database/schemas-query'
import { useStore } from 'hooks'
- import { IconDatabase, IconHelpCircle, Input, Listbox, SidePanel } from 'ui'
import ActionBar from '../ActionBar'
import { ColumnField } from '../SidePanelEditor.types'
import { FOREIGN_KEY_DELETION_OPTIONS } from './ForeignKeySelector.constants'
diff --cc studio/pages/project/[ref]/editor/[id].tsx
index 0d930b2d7b5,9cf12e1ac2b..238dc291c00
--- a/studio/pages/project/[ref]/editor/[id].tsx
+++ b/studio/pages/project/[ref]/editor/[id].tsx
@@@ -4,10 -5,9 +5,9 @@@ import { isNaN, isUndefined } from 'lod
import { observer } from 'mobx-react-lite'
import Link from 'next/link'
import { useRouter } from 'next/router'
-import { useEffect, useState } from 'react'
+import { useState } from 'react'
+ import { Alert, Button, Checkbox, IconExternalLink, Modal } from 'ui'
- import { useTheme } from 'common'
- import { useParams } from 'common/hooks'
import { Dictionary } from 'components/grid'
import { TableGridEditor } from 'components/interfaces'
import { ForeignRowSelectorProps } from 'components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector'
@@@ -22,9 -22,7 +22,8 @@@ import { Entity } from 'data/entity-typ
import { entityTypeKeys } from 'data/entity-types/keys'
import { sqlKeys } from 'data/sql/keys'
import { useStore, useUrlState, withAuth } from 'hooks'
+import { useTableEditorStateSnapshot } from 'state/table-editor'
import { NextPageWithLayout, SchemaView } from 'types'
- import { Alert, Button, Checkbox, IconExternalLink, Modal } from 'ui'
const TableEditorPage: NextPageWithLayout = () => {
const router = useRouter()