Skip to content

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

Rename some files

Joshen Lim1483e2be77b8
diff --git a/studio/components/interfaces/Database/Wrappers/WrapperCard.tsx b/studio/components/interfaces/Database/Wrappers/WrapperCard.tsx
index f1756648276..533629fee89 100644
--- a/studio/components/interfaces/Database/Wrappers/WrapperCard.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrapperCard.tsx
@@ -5,7 +5,7 @@ import { IconLoader, Toggle } from 'ui'
import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'
import { checkPermissions, useStore } from 'hooks'
-import { Wrapper } from './types'
+import { Wrapper } from './Wrappers.types'
import WrapperEditor from './WrapperEditor'
import { useFDWDeleteMutation } from 'data/fdw/fdw-delete-mutation'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
diff --git a/studio/components/interfaces/Database/Wrappers/WrapperEditor.tsx b/studio/components/interfaces/Database/Wrappers/WrapperEditor.tsx
index 65cde64fa25..94e22632d07 100644
--- a/studio/components/interfaces/Database/Wrappers/WrapperEditor.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrapperEditor.tsx
@@ -6,8 +6,8 @@ import ActionBar from 'components/interfaces/TableGridEditor/SidePanelEditor/Act
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useFDWCreateMutation } from 'data/fdw/fdw-create-mutation'
import { useStore } from 'hooks'
-import { Wrapper } from './types'
-import { makeValidateRequired } from './utils'
+import { Wrapper } from './Wrappers.types'
+import { makeValidateRequired } from './Wrappers.utils'
import WrapperTableEditor from './WrapperTableEditor'
// [Joshen TODO] No longer used, can remove after WrapperRow is working
diff --git a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx
index 6e5bb32d556..f1b39603503 100644
--- a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx
@@ -14,8 +14,8 @@ import {
} from 'ui'
import { useStore } from 'hooks'
-import { Wrapper } from './types'
-import { makeValidateRequired } from './utils'
+import { Wrapper } from './Wrappers.types'
+import { makeValidateRequired } from './Wrappers.utils'
import { useFDWCreateMutation } from 'data/fdw/fdw-create-mutation'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import WrapperTableEditor from './WrapperTableEditor'
diff --git a/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx b/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx
index 22e86236c77..c3f9a6f7561 100644
--- a/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx
@@ -2,8 +2,8 @@ import ActionBar from 'components/interfaces/TableGridEditor/SidePanelEditor/Act
import MultiSelect from 'components/ui/MultiSelect'
import { useEffect, useState } from 'react'
import { Form, Input, Listbox, SidePanel } from 'ui'
-import { Table, TableOption } from './types'
-import { makeValidateRequired } from './utils'
+import { Table, TableOption } from './Wrappers.types'
+import { makeValidateRequired } from './Wrappers.utils'
export type WrapperTableEditorProps = {
visible: boolean
diff --git a/studio/components/interfaces/Database/Wrappers/data.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
similarity index 98%
rename from studio/components/interfaces/Database/Wrappers/data.ts
rename to studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
index e5446326ccf..82be1944647 100644
--- a/studio/components/interfaces/Database/Wrappers/data.ts
+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
@@ -1,4 +1,4 @@
-import { Wrapper } from './types'
+import { Wrapper } from './Wrappers.types'
export const wrappers: Wrapper[] = [
{
diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx b/studio/components/interfaces/Database/Wrappers/Wrappers.tsx
index bbdcf5f8938..704efdadc11 100644
--- a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx
+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.tsx
@@ -2,11 +2,11 @@ import { partition } from 'lodash'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { FormHeader } from 'components/ui/Forms'
import { useFDWsQuery } from 'data/fdw/fdws-query'
-import { wrappers } from './data'
+import { wrappers } from './Wrappers.constants'
import WrapperCard from './WrapperCard'
import WrapperRow from './WrapperRow'
import { useState } from 'react'
-import { Wrapper } from './types'
+import { Wrapper } from './Wrappers.types'
const Wrappers = () => {
const { project } = useProjectContext()
diff --git a/studio/components/interfaces/Database/Wrappers/types.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts
similarity index 100%
rename from studio/components/interfaces/Database/Wrappers/types.ts
rename to studio/components/interfaces/Database/Wrappers/Wrappers.types.ts
diff --git a/studio/components/interfaces/Database/Wrappers/utils.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts
similarity index 100%
rename from studio/components/interfaces/Database/Wrappers/utils.ts
rename to studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts
diff --git a/studio/data/fdw/fdw-create-mutation.ts b/studio/data/fdw/fdw-create-mutation.ts
index e298841df21..4c6000dccef 100644
--- a/studio/data/fdw/fdw-create-mutation.ts
+++ b/studio/data/fdw/fdw-create-mutation.ts
@@ -1,5 +1,5 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
-import { AvailableColumn, Wrapper } from 'components/interfaces/Database/Wrappers/types'
+import { AvailableColumn, Wrapper } from 'components/interfaces/Database/Wrappers/Wrappers.types'
import { executeSql } from 'data/sql/execute-sql-query'
import { sqlKeys } from 'data/sql/keys'