Skip to content

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

chore/disable-more-sections-03 (#38060)

Joshen Lim39639a40730d
diff --git a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
index 0d6d2f67061..c4dab21d894 100644
--- a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
@@ -65,8 +65,7 @@ const GridHeaderActions = ({ table }: GridHeaderActionsProps) => {
const isView = isTableLikeView(table)
const isMaterializedView = isTableLikeMaterializedView(table)
- const { realtimeAll: realtimeEnabled, tableEditorEnableRlsToggle: enableRlsToggle } =
- useIsFeatureEnabled(['realtime:all', 'table_editor:enable_rls_toggle'])
+ const { realtimeAll: realtimeEnabled } = useIsFeatureEnabled(['realtime:all'])
const { isSchemaLocked } = useIsProtectedSchema({ schema: table.schema })
const { mutate: updateTable } = useTableUpdateMutation({
@@ -212,7 +211,7 @@ const GridHeaderActions = ({ table }: GridHeaderActionsProps) => {
</Tooltip>
)}
- {enableRlsToggle && isTable && !isSchemaLocked ? (
+ {isTable && !isSchemaLocked ? (
table.rls_enabled ? (
<>
{policies.length < 1 && !isSchemaLocked ? (
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
index 369adc2673a..c9ca072bd52 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
@@ -48,7 +48,7 @@ import {
updateTable,
} from './SidePanelEditor.utils'
import SpreadsheetImport from './SpreadsheetImport/SpreadsheetImport'
-import TableEditor from './TableEditor/TableEditor'
+import { TableEditor } from './TableEditor/TableEditor'
import type { ImportContent } from './TableEditor/TableEditor.types'
export interface SidePanelEditorProps {
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
index b62381c2a5b..cb4f1d26eeb 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
@@ -72,7 +72,7 @@ export interface TableEditorProps {
updateEditorDirty: () => void
}
-const TableEditor = ({
+export const TableEditor = ({
table,
isDuplicating,
visible = false,
@@ -85,8 +85,7 @@ const TableEditor = ({
const { data: org } = useSelectedOrganizationQuery()
const { selectedSchema } = useQuerySchemaState()
const isNewRecord = isUndefined(table)
- const { realtimeAll: realtimeEnabled, tableEditorEnableRlsToggle: enableRlsToggle } =
- useIsFeatureEnabled(['realtime:all', 'table_editor:enable_rls_toggle'])
+ const { realtimeAll: realtimeEnabled } = useIsFeatureEnabled(['realtime:all'])
const { mutate: sendEvent } = useSendEventMutation()
const [params, setParams] = useUrlState()
@@ -293,69 +292,67 @@ const TableEditor = ({
</SidePanel.Content>
<SidePanel.Separator />
<SidePanel.Content className="space-y-10 py-6">
- {enableRlsToggle && (
- <>
- <Checkbox
- id="enable-rls"
- // @ts-ignore
- label={
- <div className="flex items-center space-x-2">
- <span>Enable Row Level Security (RLS)</span>
- <Badge>Recommended</Badge>
- </div>
- }
- description="Restrict access to your table by enabling RLS and writing Postgres policies."
- checked={tableFields.isRLSEnabled}
- onChange={() => {
- // if isEnabled, show confirm modal to turn off
- // if not enabled, allow turning on without modal confirmation
- tableFields.isRLSEnabled
- ? setRlsConfirmVisible(true)
- : onUpdateField({ isRLSEnabled: !tableFields.isRLSEnabled })
- }}
- size="medium"
+ <Checkbox
+ id="enable-rls"
+ // @ts-ignore
+ label={
+ <div className="flex items-center space-x-2">
+ <span>Enable Row Level Security (RLS)</span>
+ <Badge>Recommended</Badge>
+ </div>
+ }
+ description="Restrict access to your table by enabling RLS and writing Postgres policies."
+ checked={tableFields.isRLSEnabled}
+ onChange={() => {
+ // if isEnabled, show confirm modal to turn off
+ // if not enabled, allow turning on without modal confirmation
+ tableFields.isRLSEnabled
+ ? setRlsConfirmVisible(true)
+ : onUpdateField({ isRLSEnabled: !tableFields.isRLSEnabled })
+ }}
+ size="medium"
+ />
+
+ {tableFields.isRLSEnabled ? (
+ <Admonition
+ type="default"
+ className="!mt-3"
+ title="Policies are required to query data"
+ description={
+ <>
+ You need to create an access policy before you can query data from this table.
+ Without a policy, querying this table will return an{' '}
+ <u className="text-foreground">empty array</u> of results.{' '}
+ {isNewRecord ? 'You can create policies after saving this table.' : ''}
+ </>
+ }
+ >
+ <DocsButton
+ abbrev={false}
+ className="mt-2"
+ href="https://supabase.com/docs/guides/auth/row-level-security"
/>
- {tableFields.isRLSEnabled ? (
- <Admonition
- type="default"
- className="!mt-3"
- title="Policies are required to query data"
- description={
- <>
- You need to create an access policy before you can query data from this table.
- Without a policy, querying this table will return an{' '}
- <u className="text-foreground">empty array</u> of results.{' '}
- {isNewRecord ? 'You can create policies after saving this table.' : ''}
- </>
- }
- >
- <DocsButton
- abbrev={false}
- className="mt-2"
- href="https://supabase.com/docs/guides/auth/row-level-security"
- />
- </Admonition>
- ) : (
- <Admonition
- type="warning"
- className="!mt-3"
- title="You are allowing anonymous access to your table"
- description={
- <>
- {tableFields.name ? `The table ${tableFields.name}` : 'Your table'} will be
- publicly writable and readable
- </>
- }
- >
- <DocsButton
- abbrev={false}
- className="mt-2"
- href="https://supabase.com/docs/guides/auth/row-level-security"
- />
- </Admonition>
- )}
- </>
+ </Admonition>
+ ) : (
+ <Admonition
+ type="warning"
+ className="!mt-3"
+ title="You are allowing anonymous access to your table"
+ description={
+ <>
+ {tableFields.name ? `The table ${tableFields.name}` : 'Your table'} will be publicly
+ writable and readable
+ </>
+ }
+ >
+ <DocsButton
+ abbrev={false}
+ className="mt-2"
+ href="https://supabase.com/docs/guides/auth/row-level-security"
+ />
+ </Admonition>
)}
+
{realtimeEnabled && (
<Checkbox
id="enable-realtime"
@@ -380,7 +377,9 @@ const TableEditor = ({
/>
)}
</SidePanel.Content>
+
<SidePanel.Separator />
+
<SidePanel.Content className="space-y-10 py-6">
{!isDuplicating && (
<ColumnManagement
@@ -455,5 +454,3 @@ const TableEditor = ({
</SidePanel>
)
}
-
-export default TableEditor
diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx
index 5d10e1bccdd..a57815f65d4 100644
--- a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx
+++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx
@@ -14,7 +14,6 @@ const AuthProductMenu = () => {
const { ref: projectRef = 'default' } = useParams()
const {
- authenticationPolicies,
authenticationSignInProviders,
authenticationRateLimits,
authenticationEmails,
@@ -22,7 +21,6 @@ const AuthProductMenu = () => {
authenticationAttackProtection,
authenticationAdvanced,
} = useIsFeatureEnabled([
- 'authentication:policies',
'authentication:sign_in_providers',
'authentication:rate_limits',
'authentication:emails',
@@ -38,7 +36,6 @@ const AuthProductMenu = () => {
<ProductMenu
page={page}
menu={generateAuthMenu(projectRef, {
- authenticationPolicies,
authenticationSignInProviders,
authenticationRateLimits,
authenticationEmails,
diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
index 468bc0b2b2f..8bf8dd7da55 100644
--- a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
+++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
@@ -4,7 +4,6 @@ import { IS_PLATFORM } from 'lib/constants'
export const generateAuthMenu = (
ref: string,
flags?: {
- authenticationPolicies: boolean
authenticationSignInProviders: boolean
authenticationRateLimits: boolean
authenticationEmails: boolean
@@ -14,7 +13,6 @@ export const generateAuthMenu = (
}
): ProductMenuGroup[] => {
const {
- authenticationPolicies,
authenticationSignInProviders,
authenticationRateLimits,
authenticationEmails,
@@ -31,16 +29,12 @@ export const generateAuthMenu = (
{
title: 'Configuration',
items: [
- ...(authenticationPolicies
- ? [
- {
- name: 'Policies',
- key: 'policies',
- url: `/project/${ref}/auth/policies`,
- items: [],
- },
- ]
- : []),
+ {
+ name: 'Policies',
+ key: 'policies',
+ url: `/project/${ref}/auth/policies`,
+ items: [],
+ },
...(IS_PLATFORM
? [
...(authenticationSignInProviders
diff --git a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx
index af234cf85cd..7ab7becd756 100644
--- a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx
+++ b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx
@@ -41,8 +41,6 @@ const SettingsLayout = ({ title, children }: PropsWithChildren<SettingsLayoutPro
projectSettingsLegacyJwtKeys: legacyJWTKeysEnabled,
projectSettingsLogDrains,
billingAll,
- authenticationPolicies,
- authenticationSignInProviders,
} = useIsFeatureEnabled([
'project_auth:all',
'project_edge_function:all',
@@ -51,8 +49,6 @@ const SettingsLayout = ({ title, children }: PropsWithChildren<SettingsLayoutPro
'project_settings:legacy_jwt_keys',
'project_settings:log_drains',
'billing:all',
- 'authentication:policies',
- 'authentication:sign_in_providers',
])
const menuRoutes = generateSettingsMenu(ref, project, organization, {
@@ -63,8 +59,6 @@ const SettingsLayout = ({ title, children }: PropsWithChildren<SettingsLayoutPro
legacyJwtKeys: legacyJWTKeysEnabled,
logDrains: projectSettingsLogDrains,
billing: billingAll,
- authPolicies: authenticationPolicies,
- authSignInProviders: authenticationSignInProviders,
})
return (
diff --git a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx
index 2967cf03493..ceb8c60d8c9 100644
--- a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx
+++ b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx
@@ -17,8 +17,6 @@ export const generateSettingsMenu = (
legacyJwtKeys?: boolean
logDrains?: boolean
billing?: boolean
- authPolicies?: boolean
- authSignInProviders?: boolean
}
): ProductMenuGroup[] => {
const isProjectBuilding = project?.status === PROJECT_STATUS.COMING_UP
@@ -31,12 +29,6 @@ export const generateSettingsMenu = (
const logDrainsEnabled = features?.logDrains ?? true
const billingEnabled = features?.billing ?? true
- const authSettingsURL = features?.authPolicies
- ? `/project/${ref}/auth/policies`
- : features?.authSignInProviders
- ? `/project/${ref}/auth/providers`
- : `/project/${ref}/auth/sessions`
-
return [
{
title: 'Project Settings',
@@ -136,7 +128,7 @@ export const generateSettingsMenu = (
{
name: 'Authentication',
key: 'auth',
- url: authSettingsURL,
+ url: `/project/${ref}/auth/policies`,
items: [],
rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,
},
diff --git a/apps/studio/components/layouts/RealtimeLayout/RealtimeLayout.tsx b/apps/studio/components/layouts/RealtimeLayout/RealtimeLayout.tsx
index 047132d86e7..e4cef928a73 100644
--- a/apps/studio/components/layouts/RealtimeLayout/RealtimeLayout.tsx
+++ b/apps/studio/components/layouts/RealtimeLayout/RealtimeLayout.tsx
@@ -3,7 +3,6 @@ import { PropsWithChildren } from 'react'
import { useIsRealtimeSettingsEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext'
import { ProductMenu } from 'components/ui/ProductMenu'
-import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
import { withAuth } from 'hooks/misc/withAuth'
import { useIsRealtimeSettingsFFEnabled } from 'hooks/ui/useFlag'
@@ -18,7 +17,6 @@ const RealtimeLayout = ({ title, children }: PropsWithChildren<RealtimeLayoutPro
const { data: project } = useSelectedProjectQuery()
const enableRealtimeSettingsFF = useIsRealtimeSettingsFFEnabled()
const enableRealtimeSettingsFP = useIsRealtimeSettingsEnabled()
- const showPolicies = useIsFeatureEnabled('authentication:policies')
const enableRealtimeSettings = enableRealtimeSettingsFF && enableRealtimeSettingsFP
@@ -32,7 +30,7 @@ const RealtimeLayout = ({ title, children }: PropsWithChildren<RealtimeLayoutPro
productMenu={
<ProductMenu
page={page}
- menu={generateRealtimeMenu(project!, { enableRealtimeSettings, showPolicies })}
+ menu={generateRealtimeMenu(project!, { enableRealtimeSettings })}
/>
}
>
diff --git a/apps/studio/components/layouts/RealtimeLayout/RealtimeMenu.utils.ts b/apps/studio/components/layouts/RealtimeLayout/RealtimeMenu.utils.ts
index 59a494dd9de..1aa33aeb64a 100644
--- a/apps/studio/components/layouts/RealtimeLayout/RealtimeMenu.utils.ts
+++ b/apps/studio/components/layouts/RealtimeLayout/RealtimeMenu.utils.ts
@@ -4,10 +4,10 @@ import { IS_PLATFORM } from 'lib/constants'
export const generateRealtimeMenu = (
project: Project,
- flags?: { enableRealtimeSettings: boolean; showPolicies: boolean }
+ flags?: { enableRealtimeSettings: boolean }
): ProductMenuGroup[] => {
const ref = project?.ref ?? 'default'
- const { enableRealtimeSettings, showPolicies } = flags || {}
+ const { enableRealtimeSettings } = flags || {}
const showRealtimeSettings = IS_PLATFORM && enableRealtimeSettings
return [
@@ -22,34 +22,26 @@ export const generateRealtimeMenu = (
},
],
},
- ...(showRealtimeSettings || showPolicies
- ? [
- {
- title: 'Configuration',
- items: [
- ...(showPolicies
- ? [
- {
- name: 'Policies',
- key: 'policies',
- url: `/project/${ref}/realtime/policies`,
- items: [],
- },
- ]
- : []),
- ...(showRealtimeSettings
- ? [
- {
- name: 'Settings',
- key: 'settings',
- url: `/project/${ref}/realtime/settings`,
- items: [],
- },
- ]
- : []),
- ],
- },
- ]
- : []),
+ {
+ title: 'Configuration',
+ items: [
+ {
+ name: 'Policies',
+ key: 'policies',
+ url: `/project/${ref}/realtime/policies`,
+ items: [],
+ },
+ ...(showRealtimeSettings
+ ? [
+ {
+ name: 'Settings',
+ key: 'settings',
+ url: `/project/${ref}/realtime/settings`,
+ items: [],
+ },
+ ]
+ : []),
+ ],
+ },
]
}
diff --git a/apps/studio/pages/account/me.tsx b/apps/studio/pages/account/me.tsx
index 6c7fed647c9..21c23c2af64 100644
--- a/apps/studio/pages/account/me.tsx
+++ b/apps/studio/pages/account/me.tsx
@@ -9,17 +9,17 @@ import { AccountSettingsLayout } from 'components/layouts/AccountLayout/AccountS
import AppLayout from 'components/layouts/AppLayout/AppLayout'
import DefaultLayout from 'components/layouts/DefaultLayout'
import OrganizationLayout from 'components/layouts/OrganizationLayout'
+import {
+ ScaffoldContainer,
+ ScaffoldHeader,
+ ScaffoldSectionTitle,
+} from 'components/layouts/Scaffold'
import AlertError from 'components/ui/AlertError'
import Panel from 'components/ui/Panel'
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
import { useProfile } from 'lib/profile'
import type { NextPageWithLayout } from 'types'
-import {
- ScaffoldContainer,
- ScaffoldHeader,
- ScaffoldSectionTitle,
-} from 'components/layouts/Scaffold'
const User: NextPageWithLayout = () => {
return <ProfileCard />
@@ -40,7 +40,12 @@ User.getLayout = (page) => (
export default User
const ProfileCard = () => {
- const profileShowInformation = useIsFeatureEnabled('profile:show_information')
+ const { profileShowInformation, profileShowAnalyticsAndMarketing, profileShowAccountDeletion } =
+ useIsFeatureEnabled([
+ 'profile:show_information',
+ 'profile:show_analytics_and_marketing',
+ 'profile:show_account_deletion',
+ ])
const { error, isLoading, isError, isSuccess } = useProfile()
return (
@@ -81,13 +86,17 @@ const ProfileCard = () => {
<ThemeSettings />
</section>
- <section>
- <AnalyticsSettings />
- </section>
+ {profileShowAnalyticsAndMarketing && (
+ <section>
+ <AnalyticsSettings />
+ </section>
+ )}
- <section>
- <AccountDeletion />
- </section>
+ {profileShowAccountDeletion && (
+ <section>
+ <AccountDeletion />
+ </section>
+ )}
</article>
</ScaffoldContainer>
</>
diff --git a/apps/studio/pages/project/[ref]/auth/policies.tsx b/apps/studio/pages/project/[ref]/auth/policies.tsx
index 86223aabbf2..f379c6d457a 100644
--- a/apps/studio/pages/project/[ref]/auth/policies.tsx
+++ b/apps/studio/pages/project/[ref]/auth/policies.tsx
@@ -17,11 +17,9 @@ import { EditorPanel } from 'components/ui/EditorPanel/EditorPanel'
import NoPermission from 'components/ui/NoPermission'
import SchemaSelector from 'components/ui/SchemaSelector'
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
-import { UnknownInterface } from 'components/ui/UnknownInterface'
import { useDatabasePoliciesQuery } from 'data/database-policies/database-policies-query'
import { useTablesQuery } from 'data/tables/tables-query'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'
-import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
import { useUrlState } from 'hooks/ui/useUrlState'
import { useIsProtectedSchema } from 'hooks/useProtectedSchemas'
@@ -72,7 +70,6 @@ const AuthPoliciesPage: NextPageWithLayout = () => {
const { schema = 'public', search: searchString = '' } = params
const { data: project } = useSelectedProjectQuery()
const isInlineEditorEnabled = useIsInlineEditorEnabled()
- const showPolicies = useIsFeatureEnabled('authentication:policies')
const [selectedTable, setSelectedTable] = useState<string>()
const [showPolicyAiEditor, setShowPolicyAiEditor] = useState(false)
@@ -104,10 +101,6 @@ const AuthPoliciesPage: NextPageWithLayout = () => {
const canReadPolicies = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'policies')
const isPermissionsLoaded = usePermissionsLoaded()
- if (!showPolicies) {
- return <UnknownInterface urlBack={`/project/${ref}/auth/users`} />
- }
-
if (isPermissionsLoaded && !canReadPolicies) {
return <NoPermission isFullPage resourceText="view this project's RLS policies" />
}
diff --git a/apps/studio/pages/project/[ref]/realtime/policies.tsx b/apps/studio/pages/project/[ref]/realtime/policies.tsx
index 38fc9f84d7d..028d3990d2e 100644
--- a/apps/studio/pages/project/[ref]/realtime/policies.tsx
+++ b/apps/studio/pages/project/[ref]/realtime/policies.tsx
@@ -1,21 +1,11 @@
import { RealtimePolicies } from 'components/interfaces/Realtime/Policies'
import type { NextPageWithLayout } from 'types'
-import { useParams } from 'common'
import DefaultLayout from 'components/layouts/DefaultLayout'
import RealtimeLayout from 'components/layouts/RealtimeLayout/RealtimeLayout'
-import { UnknownInterface } from 'components/ui/UnknownInterface'
-import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
const RealtimePoliciesPage: NextPageWithLayout = () => {
- const { ref } = useParams()
- const { authenticationPolicies } = useIsFeatureEnabled(['authentication:policies'])
-
- if (authenticationPolicies) {
- return <RealtimePolicies />
- } else {
- return <UnknownInterface urlBack={`/project/${ref}/realtime/inspector`} />
- }
+ return <RealtimePolicies />
}
RealtimePoliciesPage.getLayout = (page) => (
diff --git a/packages/common/enabled-features/enabled-features.json b/packages/common/enabled-features/enabled-features.json
index 726353ef525..41de346f04d 100644
--- a/packages/common/enabled-features/enabled-features.json
+++ b/packages/common/enabled-features/enabled-features.json
@@ -6,7 +6,6 @@
"ai:opt_in_level_schema_and_log": true,
"ai:opt_in_level_schema_and_log_and_data": true,
- "authentication:policies": true,
"authentication:sign_in_providers": true,
"authentication:third_party_auth": true,
"authentication:rate_limits": true,
@@ -36,6 +35,8 @@
"profile:show_email": true,
"profile:show_information": true,
+ "profile:show_analytics_and_marketing": true,
+ "profile:show_account_deletion": true,
"project_connection:javascript_example": true,
"project_connection:dart_example": true,
@@ -52,7 +53,5 @@
"project_settings:legacy_jwt_keys": true,
"project_settings:log_drains": true,
- "reports:all": true,
-
- "table_editor:enable_rls_toggle": true
+ "reports:all": true
}
diff --git a/packages/common/enabled-features/enabled-features.schema.json b/packages/common/enabled-features/enabled-features.schema.json
index e6cd53fb668..f75bab7b4b5 100644
--- a/packages/common/enabled-features/enabled-features.schema.json
+++ b/packages/common/enabled-features/enabled-features.schema.json
@@ -23,10 +23,6 @@
"description": "Enable the AI opt in level 'schema_and_log_and_data'"
},
- "authentication:policies": {
- "type": "boolean",
- "description": "Enable the authentication policies page (as well as all other product's policies page)"
- },
"authentication:sign_in_providers": {
"type": "boolean",
"description": "Enable the authentication sign in / providers page"
@@ -125,6 +121,14 @@
"type": "boolean",
"description": "Shows the user's profile information (first name, last name) in account preferences"
},
+ "profile:show_analytics_and_marketing": {
+ "type": "boolean",
+ "description": "Shows the analytics and marketing section in account preferences"
+ },
+ "profile:show_account_deletion": {
+ "type": "boolean",
+ "description": "Shows the account deletion section in account preferences"
+ },
"project_connection:javascript_example": {
"type": "boolean",
@@ -178,11 +182,6 @@
"reports:all": {
"type": "boolean",
"description": "Enable the project reports page"
- },
-
- "table_editor:enable_rls_toggle": {
- "type": "boolean",
- "description": "Show the RLS toggle in the table creation flow and table editor header"
}
},
"required": [
@@ -190,7 +189,6 @@
"ai:opt_in_level_schema",
"ai:opt_in_level_schema_and_log",
"ai:opt_in_level_schema_and_log_and_data",
- "authentication:policies",
"authentication:sign_in_providers",
"authentication:third_party_auth",
"authentication:rate_limits",
@@ -212,6 +210,8 @@
"integrations:show_stripe_wrapper",
"profile:show_email",
"profile:show_information",
+ "profile:show_analytics_and_marketing",
+ "profile:show_account_deletion",
"logs:templates",
"logs:collections",
"project_creation:show_advanced_config",
@@ -225,8 +225,7 @@
"project_settings:log_drains",
"project_connection:javascript_example",
"project_connection:dart_example",
- "reports:all",
- "table_editor:enable_rls_toggle"
+ "reports:all"
],
"additionalProperties": false
}