Files
supabase/apps/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx
Danny White 706207436f chore(studio): move organization settings nav to sidebar layout (#43228)
## What kind of change does this PR introduce?

UI change

## What is the current behavior?

Organization settings are currently spread across a NavMenu. This is
getting unweildy as the amount of children within Organization settings
grows.

## What is the new behavior?

Organization settings are now on a sidebar, just like Project Settings
and most other surfaces.

| Before | After |
| --- | --- |
| <img width="1024" height="563" alt="Supabase"
src="https://github.com/user-attachments/assets/3889858c-157a-4deb-8714-71fe9cf002e6"
/> | <img width="1024" height="563" alt="General Supabase"
src="https://github.com/user-attachments/assets/1b4eb2c3-a67c-4eda-ab3c-e6610dd5ccf4"
/> |

## Additional context

@fsansalvadore and the design team have have other efforts going on to
reduce interface clutter, e.g. nested sidebars.
2026-03-03 10:15:40 +11:00

59 lines
1.7 KiB
TypeScript

import { NoProjectsOnPaidOrgInfo } from 'components/interfaces/Billing/NoProjectsOnPaidOrgInfo'
import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
import {
PageSection,
PageSectionContent,
PageSectionMeta,
PageSectionSummary,
PageSectionTitle,
} from 'ui-patterns/PageSection'
import { OrganizationDeletePanel } from './OrganizationDeletePanel'
import { DataPrivacyForm } from './DataPrivacyForm'
import { OrganizationDetailsForm } from './OrganizationDetailsForm'
export const GeneralSettings = () => {
const organizationDeletionEnabled = useIsFeatureEnabled('organizations:delete')
return (
<>
<NoProjectsOnPaidOrgInfo />
<PageSection>
<PageSectionMeta>
<PageSectionSummary>
<PageSectionTitle>Organization details</PageSectionTitle>
</PageSectionSummary>
</PageSectionMeta>
<PageSectionContent>
<OrganizationDetailsForm />
</PageSectionContent>
</PageSection>
<PageSection>
<PageSectionMeta>
<PageSectionSummary>
<PageSectionTitle>Data privacy</PageSectionTitle>
</PageSectionSummary>
</PageSectionMeta>
<PageSectionContent>
<DataPrivacyForm />
</PageSectionContent>
</PageSection>
{organizationDeletionEnabled && (
<PageSection>
<PageSectionMeta>
<PageSectionSummary>
<PageSectionTitle>Danger zone</PageSectionTitle>
</PageSectionSummary>
</PageSectionMeta>
<PageSectionContent>
<OrganizationDeletePanel />
</PageSectionContent>
</PageSection>
)}
</>
)
}