From 5586be6fdbbdceec655ce48bc7efac058eb08602 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Mon, 26 Jan 2026 18:20:29 +1000 Subject: [PATCH] fix(studio): legal page buttons (#42149) * basics * adjustments * format * rabbit * format --- .../Organization/Documents/CustomDocument.tsx | 22 +++--- .../interfaces/Organization/Documents/DPA.tsx | 34 ++++---- .../Organization/Documents/Documents.tsx | 19 +++-- .../Organization/Documents/HIPAA.tsx | 78 +++++++++---------- .../Organization/Documents/SOC2.tsx | 22 +++--- .../Documents/SecurityQuestionnaire.tsx | 71 +++++++++-------- .../interfaces/Organization/Documents/TIA.tsx | 48 ++++++------ 7 files changed, 154 insertions(+), 140 deletions(-) diff --git a/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx b/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx index 76c9b4ca7de..29702c97b30 100644 --- a/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx +++ b/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx @@ -15,17 +15,21 @@ interface CustomDocumentProps { export const CustomDocument = ({ doc }: CustomDocumentProps) => { return ( - - + +

{doc.name}

-

{doc.description}

+
+

{doc.description}

+
- - + +
diff --git a/apps/studio/components/interfaces/Organization/Documents/DPA.tsx b/apps/studio/components/interfaces/Organization/Documents/DPA.tsx index 57a394deafa..0f103df312e 100644 --- a/apps/studio/components/interfaces/Organization/Documents/DPA.tsx +++ b/apps/studio/components/interfaces/Organization/Documents/DPA.tsx @@ -37,10 +37,10 @@ export const DPA = () => { return ( <> - - -

Data Processing Addendum (DPA)

-
+ + +

Data Processing Addendum (DPA)

+

All organizations can sign our Data Processing Addendum ("DPA") as part of their GDPR compliance. @@ -62,18 +62,20 @@ export const DPA = () => {

- - + +
+ +
diff --git a/apps/studio/components/interfaces/Organization/Documents/Documents.tsx b/apps/studio/components/interfaces/Organization/Documents/Documents.tsx index 0dcb754fb69..ef8b097ed9d 100644 --- a/apps/studio/components/interfaces/Organization/Documents/Documents.tsx +++ b/apps/studio/components/interfaces/Organization/Documents/Documents.tsx @@ -1,5 +1,10 @@ import { SupportLink } from 'components/interfaces/Support/SupportLink' -import { ScaffoldContainer, ScaffoldDivider, ScaffoldSection } from 'components/layouts/Scaffold' +import { + ScaffoldContainer, + ScaffoldDivider, + ScaffoldSection, + ScaffoldSectionDetail, +} from 'components/layouts/Scaffold' import { InlineLinkClassName } from 'components/ui/InlineLink' import { useCustomContent } from 'hooks/custom-content/useCustomContent' import { Fragment } from 'react' @@ -57,11 +62,13 @@ export const Documents = () => { - -

- Submit a support request if - you require additional documents for financial or tax reasons, such as a W-9 form. -

+ + +

+ Submit a support request if + you require additional documents for financial or tax reasons, such as a W-9 form. +

+
diff --git a/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx b/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx index c73781d99e1..f48408e5d96 100644 --- a/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx +++ b/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx @@ -14,45 +14,43 @@ export const HIPAA = () => { const { mutate: sendEvent } = useSendEventMutation() return ( - <> - - -

HIPAA

-
-

- This is only for HIPAA requests. Please ignore this if you already have HIPAA enabled. -

-

- Organizations on the Team Plan or above are eligible for a paid HIPAA compliance - add-on. You can submit a request here and we will get back to you on the pricing and - process for your use case. -

-

- Organizations on the Free or Pro Plan can also submit a request for HIPAA. Note that - you are still required to upgrade to the Team Plan after your request is approved. -

-
-
- - - -
- + + +

HIPAA

+
+

+ This is only for HIPAA requests. Please ignore this if you already have HIPAA enabled. +

+

+ Organizations on the Team Plan or above are eligible for a paid HIPAA compliance add-on. + You can submit a request here and we will get back to you on the pricing and process for + your use case. +

+

+ Organizations on the Free or Pro Plan can also submit a request for HIPAA. Note that you + are still required to upgrade to the Team Plan after your request is approved. +

+
+
+ + + +
) } diff --git a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx index 4a097721b55..e460e858cdd 100644 --- a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx +++ b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx @@ -56,10 +56,10 @@ export const SOC2 = () => { } return ( - - -

SOC2 Type 2

-
+ + +

SOC2 Type 2

+

Organizations on Team Plan or above have access to our most recent SOC2 Type 2 report.

@@ -67,19 +67,21 @@ export const SOC2 = () => { {isLoadingPermissions || isLoadingEntitlement ? ( -
+
) : !canReadSubscriptions ? ( ) : !hasAccessToSoc2Report ? ( -
- - - +
+
) : ( -
+
+ Upgrade to Team -
- ) : ( -
- -
- )} - - - + +
+ ) : ( +
+ +
+ )} + + ) } diff --git a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx index 0c1de8b98df..eeecc87cc03 100644 --- a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx +++ b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx @@ -1,4 +1,4 @@ -import { ExternalLink } from 'lucide-react' +import { Download } from 'lucide-react' import { ScaffoldSection, @@ -14,34 +14,36 @@ export const TIA = () => { const { mutate: sendEvent } = useSendEventMutation() return ( - - -

Transfer Impact Assessment (TIA)

-