Skip to content

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

chore: remove graphiql feature flag

Alaister Young4fb80635157e
diff --git a/studio/components/layouts/DocsLayout/DocsLayout.tsx b/studio/components/layouts/DocsLayout/DocsLayout.tsx
index 4a1a2addce8..f4d677f2669 100644
--- a/studio/components/layouts/DocsLayout/DocsLayout.tsx
+++ b/studio/components/layouts/DocsLayout/DocsLayout.tsx
@@ -2,7 +2,7 @@ import { ReactElement, useEffect } from 'react'
import { observer } from 'mobx-react-lite'
import { useRouter } from 'next/router'
-import { useFlag, useStore, withAuth } from 'hooks'
+import { useStore, withAuth } from 'hooks'
import Error from 'components/ui/Error'
import ProductMenu from 'components/ui/ProductMenu'
import ProjectLayout from 'components/layouts/ProjectLayout/ProjectLayout'
@@ -13,8 +13,6 @@ function DocsLayout({ title, children }: { title: string; children: ReactElement
const { meta, ui } = useStore()
const { data, isLoading, error } = meta.openApi
- const graphiql = useFlag('graphiql')
-
const getPage = () => {
if (router.pathname.endsWith('graphiql')) return 'graphiql'
@@ -49,7 +47,7 @@ function DocsLayout({ title, children }: { title: string; children: ReactElement
productMenu={
<ProductMenu
page={getPage()}
- menu={generateDocsMenu(projectRef, tableNames, functionNames, graphiql)}
+ menu={generateDocsMenu(projectRef, tableNames, functionNames)}
/>
}
>
diff --git a/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx b/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx
index 9ac8f17a505..8f74b748afe 100644
--- a/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx
+++ b/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx
@@ -6,8 +6,7 @@ import { BASE_PATH } from 'lib/constants'
export const generateDocsMenu = (
ref: string,
tables: string[],
- functions: string[],
- showGraphiql: boolean
+ functions: string[]
): ProductMenuGroup[] => {
return [
{
@@ -61,31 +60,25 @@ export const generateDocsMenu = (
}),
],
},
- ...(showGraphiql
- ? [
- {
- title: 'GraphQL',
- items: [
- {
- name: 'GraphiQL',
- key: 'graphiql',
- url: `/project/${ref}/api/graphiql`,
- icon: (
- <SVG
- src={`${BASE_PATH}/img/graphql.svg`}
- style={{ width: `${16}px`, height: `${16}px` }}
- className="text-scale-1200"
- preProcessor={(code) =>
- code.replace(/svg/, 'svg class="m-auto text-color-inherit"')
- }
- />
- ),
- items: [],
- },
- ],
- },
- ]
- : []),
+ {
+ title: 'GraphQL',
+ items: [
+ {
+ name: 'GraphiQL',
+ key: 'graphiql',
+ url: `/project/${ref}/api/graphiql`,
+ icon: (
+ <SVG
+ src={`${BASE_PATH}/img/graphql.svg`}
+ style={{ width: `${16}px`, height: `${16}px` }}
+ className="text-scale-1200"
+ preProcessor={(code) => code.replace(/svg/, 'svg class="m-auto text-color-inherit"')}
+ />
+ ),
+ items: [],
+ },
+ ],
+ },
{
title: 'More Resources',
items: [