Skip to content

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

Style formatting

Terry Sutton098b41362997
diff --git a/studio/components/interfaces/Auth/AutoSchemaForm.tsx b/studio/components/interfaces/Auth/AutoSchemaForm.tsx
index 2e85e5ee3e9..0e037598632 100644
--- a/studio/components/interfaces/Auth/AutoSchemaForm.tsx
+++ b/studio/components/interfaces/Auth/AutoSchemaForm.tsx
@@ -87,7 +87,7 @@ const AutoSchemaForm = observer(() => {
return (
<>
<FormHeader
- title="General settings"
+ title="Auth settings"
description="Configure authentication sessions for your users"
/>
<FormPanel
diff --git a/studio/components/interfaces/Database/Pooling/ConnectionPooling.tsx b/studio/components/interfaces/Database/Pooling/ConnectionPooling.tsx
index c6b7ac17242..4780ba57714 100644
--- a/studio/components/interfaces/Database/Pooling/ConnectionPooling.tsx
+++ b/studio/components/interfaces/Database/Pooling/ConnectionPooling.tsx
@@ -162,72 +162,74 @@ export const PgbouncerConfig: FC<ConfigProps> = observer(
}
return (
- <SchemaFormPanel
- title="Connection Pooling"
- schema={formSchema}
- model={updates}
- submitLabel="Save"
- cancelLabel="Cancel"
- onChangeModel={(model: any) => setUpdates(model)}
- onSubmit={(model: any) => updateConfig(model)}
- onReset={() => setUpdates(bouncerInfo)}
- >
- <div className="space-y-6 py-4">
- <ToggleField name="pgbouncer_enabled" />
-
- <Divider light />
-
- {updates.pgbouncer_enabled && (
- <>
- <AutoField
- name="pool_mode"
- showInlineError
- errorMessage="You must select one of the three options"
- />
- <div className="!mt-1 flex" style={{ marginLeft: 'calc(33% + 0.5rem)' }}>
- <p className="text-sm text-scale-900">
- Specify when a connection can be returned to the pool. To find out the most
- suitable mode for your use case,{' '}
- <a
- className="text-green-900"
- target="_blank"
- href="https://supabase.com/docs/guides/database/connecting-to-postgres#connection-pool"
- >
- click here
- </a>
- .
- </p>
- </div>
- <Divider light />
- <AutoField name="ignore_startup_parameters" />
- </>
- )}
- <Divider light />
- <Input
- className="input-mono"
- layout="horizontal"
- readOnly
- copy
- disabled
- value={connectionInfo.db_port}
- label="Port"
- />
- <Divider light />
- <Input
- className="input-mono"
- layout="vertical"
- readOnly
- copy
- disabled
- label="Connection string"
- value={
- `postgres://${connectionInfo.db_user}:[YOUR-PASSWORD]@` +
- `${connectionInfo.db_host}:${connectionInfo.db_port}` +
- `/${connectionInfo.db_name}`
- }
- />
- </div>
- </SchemaFormPanel>
+ <div className="mx-auto max-w-4xl px-12 pb-8">
+ <SchemaFormPanel
+ title="Connection Pooling"
+ schema={formSchema}
+ model={updates}
+ submitLabel="Save"
+ cancelLabel="Cancel"
+ onChangeModel={(model: any) => setUpdates(model)}
+ onSubmit={(model: any) => updateConfig(model)}
+ onReset={() => setUpdates(bouncerInfo)}
+ >
+ <div className="space-y-6 py-4">
+ <ToggleField name="pgbouncer_enabled" />
+
+ <Divider light />
+
+ {updates.pgbouncer_enabled && (
+ <>
+ <AutoField
+ name="pool_mode"
+ showInlineError
+ errorMessage="You must select one of the three options"
+ />
+ <div className="!mt-1 flex" style={{ marginLeft: 'calc(33% + 0.5rem)' }}>
+ <p className="text-sm text-scale-900">
+ Specify when a connection can be returned to the pool. To find out the most
+ suitable mode for your use case,{' '}
+ <a
+ className="text-green-900"
+ target="_blank"
+ href="https://supabase.com/docs/guides/database/connecting-to-postgres#connection-pool"
+ >
+ click here
+ </a>
+ .
+ </p>
+ </div>
+ <Divider light />
+ <AutoField name="ignore_startup_parameters" />
+ </>
+ )}
+ <Divider light />
+ <Input
+ className="input-mono"
+ layout="horizontal"
+ readOnly
+ copy
+ disabled
+ value={connectionInfo.db_port}
+ label="Port"
+ />
+ <Divider light />
+ <Input
+ className="input-mono"
+ layout="vertical"
+ readOnly
+ copy
+ disabled
+ label="Connection string"
+ value={
+ `postgres://${connectionInfo.db_user}:[YOUR-PASSWORD]@` +
+ `${connectionInfo.db_host}:${connectionInfo.db_port}` +
+ `/${connectionInfo.db_name}`
+ }
+ />
+ </div>
+ </SchemaFormPanel>
+ </div>
)
}
)
diff --git a/studio/components/interfaces/Settings/API/ServiceList.tsx b/studio/components/interfaces/Settings/API/ServiceList.tsx
index b3630cc3791..f1dcce06dca 100644
--- a/studio/components/interfaces/Settings/API/ServiceList.tsx
+++ b/studio/components/interfaces/Settings/API/ServiceList.tsx
@@ -62,6 +62,7 @@ const ServiceList: FC<Props> = ({ projectRef }) => {
return (
<>
<div className="">
+ <h3 className="text-scale-1200 mb-6 text-xl">API Settings</h3>
<section>
<Panel title={<h5 className="mb-0">Project URL</h5>}>
<Panel.Content>
diff --git a/studio/components/layouts/AuthLayout/AuthLayout.utils.ts b/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
index 39ea6b17c65..e357c6dcf69 100644
--- a/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
+++ b/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
@@ -4,7 +4,7 @@ import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
export const generateAuthMenu = (ref: string): ProductMenuGroup[] => {
return [
{
- title: 'Users',
+ title: 'Manage',
items: [{ name: 'Users', key: 'users', url: `/project/${ref}/auth/users`, items: [] }],
},
...(IS_PLATFORM
diff --git a/studio/pages/project/[ref]/settings/auth.tsx b/studio/pages/project/[ref]/settings/auth.tsx
index 42ace03d6e5..89878a14aff 100644
--- a/studio/pages/project/[ref]/settings/auth.tsx
+++ b/studio/pages/project/[ref]/settings/auth.tsx
@@ -5,8 +5,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { NextPageWithLayout } from 'types'
import { checkPermissions, useStore } from 'hooks'
import AutoSchemaForm from 'components/interfaces/Auth/AutoSchemaForm'
-import RedirectDomains from 'components/interfaces/Auth/RedirectDomains/RedirectDomains'
-import { AuthLayout, SettingsLayout } from 'components/layouts'
+import { SettingsLayout } from 'components/layouts'
import { FormsContainer } from 'components/ui/Forms'
import NoPermission from 'components/ui/NoPermission'
@@ -25,7 +24,6 @@ const PageLayout: NextPageWithLayout = () => {
return (
<FormsContainer>
<AutoSchemaForm />
- <RedirectDomains />
</FormsContainer>
)
} else {