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 🙏
82 lines
2.1 KiB
TypeScript
82 lines
2.1 KiB
TypeScript
import { Fragment } from 'react'
|
|
import { Separator } from 'ui'
|
|
import { PageContainer } from 'ui-patterns/PageContainer'
|
|
import { PageSection, PageSectionContent } from 'ui-patterns/PageSection'
|
|
|
|
import { CustomDocument } from './CustomDocument'
|
|
import { DPA } from './DPA'
|
|
import { HIPAA } from './HIPAA'
|
|
import { ISO27001 } from './ISO27001'
|
|
import { SecurityQuestionnaire } from './SecurityQuestionnaire'
|
|
import { SOC2 } from './SOC2'
|
|
import { TIA } from './TIA'
|
|
import { SupportLink } from '@/components/interfaces/Support/SupportLink'
|
|
import { InlineLinkClassName } from '@/components/ui/InlineLink'
|
|
import { useCustomContent } from '@/hooks/custom-content/useCustomContent'
|
|
|
|
export const Documents = () => {
|
|
const { organizationLegalDocuments } = useCustomContent(['organization:legal_documents'])
|
|
|
|
if (Array.isArray(organizationLegalDocuments)) {
|
|
return organizationLegalDocuments.map((doc, idx) => {
|
|
return (
|
|
<Fragment key={doc.id}>
|
|
<CustomDocument doc={doc} />
|
|
{idx !== organizationLegalDocuments.length - 1 && <Separator />}
|
|
</Fragment>
|
|
)
|
|
})
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<PageContainer id="dpa">
|
|
<DPA />
|
|
</PageContainer>
|
|
|
|
<Separator />
|
|
|
|
<PageContainer id="tia">
|
|
<TIA />
|
|
</PageContainer>
|
|
|
|
<Separator />
|
|
|
|
<PageContainer id="soc2">
|
|
<SOC2 />
|
|
</PageContainer>
|
|
|
|
<Separator />
|
|
|
|
<PageContainer id="iso27001">
|
|
<ISO27001 />
|
|
</PageContainer>
|
|
|
|
<Separator />
|
|
|
|
<PageContainer id="hipaa">
|
|
<HIPAA />
|
|
</PageContainer>
|
|
|
|
<Separator />
|
|
|
|
<PageContainer id="security-questionnaire">
|
|
<SecurityQuestionnaire />
|
|
</PageContainer>
|
|
|
|
<Separator />
|
|
|
|
<PageContainer>
|
|
<PageSection>
|
|
<PageSectionContent>
|
|
<p className="text-sm text-foreground-light m-0">
|
|
<SupportLink className={InlineLinkClassName}>Submit a support request</SupportLink> if
|
|
you require additional documents for financial or tax reasons, such as a W-9 form.
|
|
</p>
|
|
</PageSectionContent>
|
|
</PageSection>
|
|
</PageContainer>
|
|
</>
|
|
)
|
|
}
|