mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Context
Final clean up of deprecated Scaffold components, just touches
- Account audit logs
- Project home page
- Database -> Column privileges
- Storage -> Analytics bucket details
- Storage -> Vector bucket details
- Settings -> Infrastructure -> Disk management
- Settings -> Infrastructure -> Read replica details
- Integrations -> Wrappers overview (Only for non supported integration
UI)
- Edge functions -> Empty state
- Auth -> Performance
Also replaces usage of `ScaffoldDivider` with just the `Separator`
component
And also adjusts the page container sizes of database pages from large
to default - these only have visual differences on viewport widths
larger than a laptop
Testing just needs a quick sweep of all these surfaces to make sure
nothing looks weird - will do so on my end too once the builds go
through!
For @supabase/security's review - review requirement was triggered as
`Documents.tsx` was updated in the organization settings page. But it
was just to change the Divider component 🙏
25 lines
840 B
TypeScript
25 lines
840 B
TypeScript
import { AlertCircleIcon } from 'lucide-react'
|
|
import { Alert, AlertTitle } from 'ui'
|
|
import { PageSection } from 'ui-patterns/PageSection'
|
|
|
|
import { PostgrestConfig } from './PostgrestConfig'
|
|
import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'
|
|
import { PROJECT_STATUS } from '@/lib/constants'
|
|
|
|
export const ServiceList = () => {
|
|
const { data: project, isPending: isLoading } = useSelectedProjectQuery()
|
|
|
|
return (
|
|
<PageSection id="api-settings" className="pt-0 last:pb-0">
|
|
{!isLoading && project?.status !== PROJECT_STATUS.ACTIVE_HEALTHY ? (
|
|
<Alert variant="destructive">
|
|
<AlertCircleIcon size={16} />
|
|
<AlertTitle>API settings are unavailable as the project is not active</AlertTitle>
|
|
</Alert>
|
|
) : (
|
|
<PostgrestConfig />
|
|
)}
|
|
</PageSection>
|
|
)
|
|
}
|