Skip to content

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

feat: update dpa retrieval (#37563)

Pamela Chiaa61927e790c3
diff --git a/apps/studio/components/interfaces/Organization/Documents/DPA.tsx b/apps/studio/components/interfaces/Organization/Documents/DPA.tsx
index 9409bf237f8..3a11a1c68c3 100644
--- a/apps/studio/components/interfaces/Organization/Documents/DPA.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/DPA.tsx
@@ -1,51 +1,108 @@
-import { ExternalLink } from 'lucide-react'
+import { useState } from 'react'
+import { toast } from 'sonner'
import {
ScaffoldSection,
ScaffoldSectionContent,
ScaffoldSectionDetail,
} from 'components/layouts/Scaffold'
+import { InlineLink } from 'components/ui/InlineLink'
+import { useDpaRequestMutation } from 'data/documents/dpa-request-mutation'
+import { useSendEventMutation } from 'data/telemetry/send-event-mutation'
+import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization'
+import { useProfile } from 'lib/profile'
import { Button } from 'ui'
+import TextConfirmModal from 'ui-patterns/Dialogs/TextConfirmModal'
+
+export const DPA = () => {
+ const { profile } = useProfile()
+ const { data: organization } = useSelectedOrganizationQuery()
+ const slug = organization?.slug
+
+ const [isOpen, setIsOpen] = useState(false)
+
+ const { mutate: sendEvent } = useSendEventMutation()
+ const { mutate: requestDpa, isLoading: isRequesting } = useDpaRequestMutation({
+ onSuccess: () => {
+ toast.success('DPA request sent successfully')
+ setIsOpen(false)
+ },
+ })
+
+ const onConfirmRequest = async () => {
+ if (!slug) return toast.error('Organization not found.')
+ if (!profile?.primary_email) return toast.error('Profile email not found.')
+ requestDpa({ recipient_email: profile?.primary_email, slug: slug })
+ }
-const DPA = () => {
return (
- <ScaffoldSection>
- <ScaffoldSectionDetail className="sticky space-y-6 top-12">
- <p className="text-base m-0">Data Processing Addendum (DPA)</p>
- <div className="space-y-2 text-sm text-foreground-light m-0">
+ <>
+ <ScaffoldSection>
+ <ScaffoldSectionDetail className="sticky space-y-6 top-12">
+ <p className="text-base m-0">Data Processing Addendum (DPA)</p>
+ <div className="space-y-2 text-sm text-foreground-light m-0">
+ <p>
+ All organizations can sign our Data Processing Addendum ("DPA") as part of their GDPR
+ compliance.
+ </p>
+ <p>
+ You can review a static PDF version of our latest DPA document{' '}
+ <InlineLink
+ href="https://supabase.com/downloads/docs/Supabase+DPA+250805.pdf"
+ onClick={() =>
+ sendEvent({
+ action: 'dpa_pdf_opened',
+ properties: { source: 'studio' },
+ })
+ }
+ >
+ here
+ </InlineLink>
+ .
+ </p>
+ </div>
+ </ScaffoldSectionDetail>
+ <ScaffoldSectionContent className="flex items-center justify-center h-full">
+ <Button
+ onClick={() => {
+ setIsOpen(true)
+ sendEvent({
+ action: 'dpa_request_button_clicked',
+ })
+ }}
+ type="default"
+ >
+ Request DPA
+ </Button>
+ </ScaffoldSectionContent>
+ </ScaffoldSection>
+
+ <TextConfirmModal
+ visible={isOpen}
+ title="Request executable DPA to sign"
+ loading={isRequesting}
+ confirmPlaceholder="Enter your email address"
+ confirmString={profile?.primary_email ?? ''}
+ confirmLabel="Send DPA request"
+ errorMessage="Email must match your account email."
+ onCancel={() => setIsOpen(false)}
+ onConfirm={() => onConfirmRequest()}
+ >
+ <div className="space-y-2 text-sm">
+ <p>
+ To make the DPA legally binding, you need to sign and complete the details through a
+ PandaDoc document that we prepare.
+ </p>
<p>
- All organizations can access and use our DPA as part of their GDPR compliance. This is
- only to access the document. Please ignore this if you have sent the signed document to
- us.
+ Please enter your email address to request an executable version of the DPA. You will
+ receive a document link via PandaDoc in the next 24 hours.
</p>
<p>
- Please review these details and add data specific to user processing where required.
- Sign and return the signed DPA document to{' '}
- <a
- href="mailto:[email protected]"
- target="_blank"
- className="text-brand hover:text-brand"
- >
- </a>{' '}
- for the document to be considered executed.
+ Once signed, the DPA will be considered executed and you'll be notified of any future
+ updates via this email.
</p>
</div>
- </ScaffoldSectionDetail>
- <ScaffoldSectionContent className="flex items-center justify-center h-full">
- <Button asChild type="default" iconRight={<ExternalLink />}>
- <a
- download={true}
- target="_blank"
- rel="noreferrer noopener"
- href="https://supabase.com/downloads/docs/Supabase+DPA+250314.pdf"
- >
- View DPA
- </a>
- </Button>
- </ScaffoldSectionContent>
- </ScaffoldSection>
+ </TextConfirmModal>
+ </>
)
}
-
-export default DPA
diff --git a/apps/studio/components/interfaces/Organization/Documents/Documents.tsx b/apps/studio/components/interfaces/Organization/Documents/Documents.tsx
index 08450f1e494..84ecf7b32fe 100644
--- a/apps/studio/components/interfaces/Organization/Documents/Documents.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/Documents.tsx
@@ -1,11 +1,12 @@
-import { ScaffoldContainer, ScaffoldDivider, ScaffoldSection } from 'components/layouts/Scaffold'
-import DPA from './DPA'
-import TIA from './TIA'
-import SecurityQuestionnaire from './SecurityQuestionnaire'
-import SOC2 from './SOC2'
-import HIPAA from './HIPAA'
import Link from 'next/link'
+import { ScaffoldContainer, ScaffoldDivider, ScaffoldSection } from 'components/layouts/Scaffold'
+import { DPA } from './DPA'
+import { HIPAA } from './HIPAA'
+import { SecurityQuestionnaire } from './SecurityQuestionnaire'
+import { SOC2 } from './SOC2'
+import { TIA } from './TIA'
+
const Documents = () => {
return (
<>
diff --git a/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx b/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx
index 90062e5c99d..c73781d99e1 100644
--- a/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx
@@ -1,12 +1,18 @@
+import { ExternalLink } from 'lucide-react'
+
import {
ScaffoldSection,
ScaffoldSectionContent,
ScaffoldSectionDetail,
} from 'components/layouts/Scaffold'
-import { ExternalLink } from 'lucide-react'
+import { useSendEventMutation } from 'data/telemetry/send-event-mutation'
+import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization'
import { Button } from 'ui'
-const HIPAA = () => {
+export const HIPAA = () => {
+ const { data: organization } = useSelectedOrganizationQuery()
+ const { mutate: sendEvent } = useSendEventMutation()
+
return (
<>
<ScaffoldSection>
@@ -29,16 +35,24 @@ const HIPAA = () => {
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
<div className="flex items-center justify-center h-full">
- <a href="https://forms.supabase.com/hipaa2" target="_blank" rel="noreferrer noopener">
- <Button type="default" iconRight={<ExternalLink />}>
+ <Button asChild type="default" iconRight={<ExternalLink />}>
+ <a
+ href="https://forms.supabase.com/hipaa2"
+ target="_blank"
+ rel="noreferrer noopener"
+ onClick={() =>
+ sendEvent({
+ action: 'hipaa_request_button_clicked',
+ groups: { organization: organization?.slug ?? 'Unknown' },
+ })
+ }
+ >
Request HIPAA
- </Button>
- </a>
+ </a>
+ </Button>
</div>
</ScaffoldSectionContent>
</ScaffoldSection>
</>
)
}
-
-export default HIPAA
diff --git a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx
index a484b8f7887..ecf357accf2 100644
--- a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx
@@ -11,14 +11,16 @@ import {
} from 'components/layouts/Scaffold'
import NoPermission from 'components/ui/NoPermission'
import { getDocument } from 'data/documents/document-query'
+import { useSendEventMutation } from 'data/telemetry/send-event-mutation'
import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'
import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization'
import { Button } from 'ui'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
-const SOC2 = () => {
+export const SOC2 = () => {
const { data: organization } = useSelectedOrganizationQuery()
const slug = organization?.slug
+ const { mutate: sendEvent } = useSendEventMutation()
const canReadSubscriptions = useCheckPermissions(
PermissionAction.BILLING_READ,
'stripe.subscriptions'
@@ -58,7 +60,18 @@ const SOC2 = () => {
<Button type="default">Upgrade to Team</Button>
</Link>
) : (
- <Button type="default" icon={<Download />} onClick={() => setIsOpen(true)}>
+ <Button
+ type="default"
+ icon={<Download />}
+ onClick={() => {
+ sendEvent({
+ action: 'document_view_button_clicked',
+ properties: { documentName: 'SOC2' },
+ groups: { organization: organization?.slug ?? 'Unknown' },
+ })
+ setIsOpen(true)
+ }}
+ >
Download SOC2 Type 2 Report
</Button>
)}
@@ -111,5 +124,3 @@ const SOC2 = () => {
</ScaffoldSection>
)
}
-
-export default SOC2
diff --git a/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx b/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx
index 7535133dc0e..624cdfbc39a 100644
--- a/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx
@@ -2,7 +2,6 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { Download } from 'lucide-react'
import Link from 'next/link'
import { toast } from 'sonner'
-import { Button } from 'ui'
import {
ScaffoldSection,
@@ -11,12 +10,15 @@ import {
} from 'components/layouts/Scaffold'
import NoPermission from 'components/ui/NoPermission'
import { getDocument } from 'data/documents/document-query'
+import { useSendEventMutation } from 'data/telemetry/send-event-mutation'
import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'
import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization'
+import { Button } from 'ui'
-const SecurityQuestionnaire = () => {
+export const SecurityQuestionnaire = () => {
const { data: organization } = useSelectedOrganizationQuery()
const slug = organization?.slug
+ const { mutate: sendEvent } = useSendEventMutation()
const canReadSubscriptions = useCheckPermissions(
PermissionAction.BILLING_READ,
'stripe.subscriptions'
@@ -65,6 +67,11 @@ const SecurityQuestionnaire = () => {
type="default"
icon={<Download />}
onClick={() => {
+ sendEvent({
+ action: 'document_view_button_clicked',
+ properties: { documentName: 'Standard Security Questionnaire' },
+ groups: { organization: organization?.slug ?? 'Unknown' },
+ })
if (slug) fetchQuestionnaire(slug)
}}
>
@@ -79,5 +86,3 @@ const SecurityQuestionnaire = () => {
</>
)
}
-
-export default SecurityQuestionnaire
diff --git a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx
index f2589584876..0c1de8b98df 100644
--- a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx
@@ -1,12 +1,18 @@
+import { ExternalLink } from 'lucide-react'
+
import {
ScaffoldSection,
ScaffoldSectionContent,
ScaffoldSectionDetail,
} from 'components/layouts/Scaffold'
-import { ExternalLink } from 'lucide-react'
+import { useSendEventMutation } from 'data/telemetry/send-event-mutation'
+import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization'
import { Button } from 'ui'
-const TIA = () => {
+export const TIA = () => {
+ const { data: organization } = useSelectedOrganizationQuery()
+ const { mutate: sendEvent } = useSendEventMutation()
+
return (
<ScaffoldSection>
<ScaffoldSectionDetail className="sticky space-y-6 top-12">
@@ -19,19 +25,24 @@ const TIA = () => {
</div>
</ScaffoldSectionDetail>
<ScaffoldSectionContent className="flex items-center justify-center h-full">
- <a
- href="https://supabase.com/downloads/docs/Supabase+TIA+250314.pdf"
- target="_blank"
- rel="noreferrer noopener"
- download={true}
- >
- <Button type="default" iconRight={<ExternalLink />}>
+ <Button asChild type="default" iconRight={<ExternalLink />}>
+ <a
+ href="https://supabase.com/downloads/docs/Supabase+TIA+250314.pdf"
+ target="_blank"
+ rel="noreferrer noopener"
+ download={true}
+ onClick={() =>
+ sendEvent({
+ action: 'document_view_button_clicked',
+ properties: { documentName: 'TIA' },
+ groups: { organization: organization?.slug ?? 'Unknown' },
+ })
+ }
+ >
View TIA
- </Button>
- </a>
+ </a>
+ </Button>
</ScaffoldSectionContent>
</ScaffoldSection>
)
}
-
-export default TIA
diff --git a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
index 666dd44c44c..66d036610fe 100644
--- a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
+++ b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
@@ -145,9 +145,9 @@ export const SSOConfig = () => {
metadataXmlUrl: ssoConfig.metadata_xml_url,
metadataXmlFile: ssoConfig.metadata_xml_file,
emailMapping: ssoConfig.email_mapping.map((email) => ({ value: email })),
- userNameMapping: ssoConfig.user_name_mapping.map((userName) => ({ value: userName })),
- firstNameMapping: ssoConfig.first_name_mapping.map((firstName) => ({ value: firstName })),
- lastNameMapping: ssoConfig.last_name_mapping.map((lastName) => ({ value: lastName })),
+ userNameMapping: ssoConfig.user_name_mapping?.map((userName) => ({ value: userName })),
+ firstNameMapping: ssoConfig.first_name_mapping?.map((firstName) => ({ value: firstName })),
+ lastNameMapping: ssoConfig.last_name_mapping?.map((lastName) => ({ value: lastName })),
joinOrgOnSignup: ssoConfig.join_org_on_signup_enabled,
roleOnJoin: ssoConfig.join_org_on_signup_role,
})
diff --git a/apps/studio/components/ui/InlineLink.tsx b/apps/studio/components/ui/InlineLink.tsx
index 55494977bf6..1d69d11e68c 100644
--- a/apps/studio/components/ui/InlineLink.tsx
+++ b/apps/studio/components/ui/InlineLink.tsx
@@ -7,6 +7,7 @@ interface InlineLinkProps {
className?: string
target?: string
rel?: string
+ onClick?: () => void
}
export const InlineLinkClassName =
diff --git a/apps/studio/data/documents/dpa-request-mutation.ts b/apps/studio/data/documents/dpa-request-mutation.ts
new file mode 100644
index 00000000000..486a5c42035
--- /dev/null
+++ b/apps/studio/data/documents/dpa-request-mutation.ts
@@ -0,0 +1,47 @@
+import { useMutation, UseMutationOptions } from '@tanstack/react-query'
+import { toast } from 'sonner'
+
+import { post, handleError } from 'data/fetchers'
+import type { ResponseError } from 'types'
+
+export type DpaRequestVariables = {
+ recipient_email: string
+ slug: string
+}
+
+export async function requestDpa({ recipient_email, slug }: DpaRequestVariables) {
+ const { data, error } = await post(`/platform/organizations/${slug}/documents/dpa` as any, {
+ // Fix type later
+ body: { recipient_email },
+ })
+ if (error) handleError(error)
+ return data
+}
+
+type DpaRequestData = Awaited<ReturnType<typeof requestDpa>>
+
+export const useDpaRequestMutation = ({
+ onSuccess,
+ onError,
+ ...options
+}: Omit<
+ UseMutationOptions<DpaRequestData, ResponseError, DpaRequestVariables>,
+ 'mutationFn'
+> = {}) => {
+ return useMutation<DpaRequestData, ResponseError, DpaRequestVariables>(
+ (vars) => requestDpa(vars),
+ {
+ async onSuccess(data, variables, context) {
+ await onSuccess?.(data, variables, context)
+ },
+ async onError(data, variables, context) {
+ if (onError === undefined) {
+ toast.error(`Failed to request DPA: ${data.message}`)
+ } else {
+ onError(data, variables, context)
+ }
+ },
+ ...options,
+ }
+ )
+}
diff --git a/apps/www/pages/legal/dpa.tsx b/apps/www/pages/legal/dpa.tsx
index e8f7c7d5009..d14eca794d5 100644
--- a/apps/www/pages/legal/dpa.tsx
+++ b/apps/www/pages/legal/dpa.tsx
@@ -1,40 +1,11 @@
-import { useState } from 'react'
-import { Button, Form, Input } from 'ui'
-import * as Yup from 'yup'
-
import CTABanner from 'components/CTABanner/index'
import Layout from '~/components/Layouts/Default'
import SectionContainer from '~/components/Layouts/SectionContainer'
-import supabase from '~/lib/supabaseMisc'
-import { Download } from 'lucide-react'
+import { useSendTelemetryEvent } from '~/lib/telemetry'
const DPA = () => {
- const [email, setEmail] = useState<string>('')
- const [error, setError] = useState<string>()
- const [formSubmitted, setFormSubmitted] = useState<boolean>(false)
-
- const INITIAL_VALUES = { email: '' }
-
- const FormSchema = Yup.object().shape({
- email: Yup.string().email('Invalid email').required('Required'),
- })
+ const sendTelemetryEvent = useSendTelemetryEvent()
- const handleFormSubmit = async (values: typeof INITIAL_VALUES, { resetForm }: any) => {
- try {
- setError(undefined)
- const { error } = await supabase
- .from('dpa_downloads')
- .insert([{ contact_email: values.email, document: 'dpa' }])
-
- if (error) throw error
-
- resetForm()
- setFormSubmitted(true)
- window.open('https://supabase.com/downloads/docs/Supabase+DPA+250314.pdf', '_blank')
- } catch (error: any) {
- setError(error.message)
- }
- }
return (
<>
<Layout>
@@ -44,64 +15,39 @@ const DPA = () => {
<div className="prose flex flex-col space-y-8 pb-16">
<h1 className="text-center text-5xl">DPA</h1>
<p>
- We have a long-standing commitment to customer privacy and data protection, and as
- part of that commitment we have prepared a pre-signed Data Processing Addendum
- ("DPA").
- </p>
-
- <p>
- You can download our latest DPA document by submitting your email here. For the
- document to be considered executed, you must return the signed DPA document to{' '}
+ We have a long-standing commitment to customer privacy and data protection. As
+ part of this commitment, we have prepared a Data Processing Addendum ("DPA"). You
+ can review a static PDF version of our latest DPA document{' '}
<a
- href="mailto:[email protected]"
+ href="https://supabase.com/downloads/docs/Supabase+DPA+250805.pdf"
target="_blank"
- className="text-brand hover:text-brand"
+ rel="noopener noreferrer"
+ className="text-brand hover:underline"
+ onClick={() =>
+ sendTelemetryEvent({
+ action: 'dpa_pdf_opened',
+ properties: { source: 'www' },
+ })
+ }
>
+ here
</a>
.
</p>
- {formSubmitted ? (
- <p className="text-brand">
- Thank you for your submission! A new tab should have opened with the DPA
- document
- </p>
- ) : (
- <Form
- initialValues={INITIAL_VALUES}
- validationSchema={FormSchema}
- onSubmit={handleFormSubmit}
+ <p>
+ To make the DPA legally binding, you need to sign and complete the details through
+ a PandaDoc document that we prepare. To get this version of the DPA,{' '}
+ <a
+ href="https://supabase.com/dashboard/org/_/documents"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-brand hover:underline"
>
- {({ isSubmitting }: any) => (
- <>
- <Input
- value={email}
- onChange={(e) => setEmail(e.target.value)}
- type="email"
- name="email"
- id="email"
- required
- descriptionText="We only keep a record of your email so we can update you when the document has been updated."
- placeholder="Your email address"
- error={error}
- actions={
- <Button
- htmlType="submit"
- type="default"
- iconRight={<Download />}
- className="mr-1"
- loading={isSubmitting}
- >
- Download DPA
- </Button>
- }
- />
- {error && <p>{error}</p>}
- </>
- )}
- </Form>
- )}
+ request it from the legal documents page
+ </a>{' '}
+ of your Supabase dashboard.
+ </p>
</div>
</div>
</div>
diff --git a/apps/www/public/downloads/docs/Supabase+DPA+250805.pdf b/apps/www/public/downloads/docs/Supabase+DPA+250805.pdf
new file mode 100644
index 00000000000..1a7482cc1dc
Binary files /dev/null and b/apps/www/public/downloads/docs/Supabase+DPA+250805.pdf differ
diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.ts
index 4a56c1365e3..08089259c95 100644
--- a/packages/api-types/types/api.d.ts
+++ b/packages/api-types/types/api.d.ts
@@ -929,6 +929,70 @@ export interface paths {
patch?: never
trace?: never
}
+ '/v1/projects/{ref}/database/jit': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Get user-id to role mappings for JIT access
+ * @description Mappings of roles a user can assume in the project database
+ */
+ get: operations['v1-get-jit-access']
+ /**
+ * Updates a user mapping for JIT access
+ * @description Modifies the roles that can be assumed and for how long
+ */
+ put: operations['v1-update-jit-access']
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ '/v1/projects/{ref}/database/jit/{user_id}': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ post?: never
+ /**
+ * Delete JIT access by user-id
+ * @description Remove JIT mappings of a user, revoking all JIT database access
+ */
+ delete: operations['v1-delete-jit-access']
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ '/v1/projects/{ref}/database/jit/list': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * List all user-id to role mappings for JIT access
+ * @description Mappings of roles a user can assume in the project database
+ */
+ get: operations['v1-list-jit-access']
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/v1/projects/{ref}/database/migrations': {
parameters: {
query?: never
@@ -1600,7 +1664,7 @@ export interface components {
name: string
prefix?: string | null
secret_jwt_template?: {
- role: string
+ [key: string]: unknown
} | null
/** @enum {string|null} */
type?: 'legacy' | 'publishable' | 'secret' | null
@@ -1938,7 +2002,7 @@ export interface components {
description?: string | null
name: string
secret_jwt_template?: {
- role: string
+ [key: string]: unknown
} | null
/** @enum {string} */
type: 'publishable' | 'secret'
@@ -2267,6 +2331,24 @@ export interface components {
}
updated_at?: string
}
+ JitAccessResponse: {
+ /** Format: uuid */
+ user_id: string
+ user_roles: {
+ expires_at?: string
+ role: string
+ }[]
+ }
+ JitListAccessResponse: {
+ items: {
+ /** Format: uuid */
+ user_id: string
+ user_roles: {
+ expires_at?: string
+ role: string
+ }[]
+ }[]
+ }
LegacyApiKeysResponse: {
enabled: boolean
}
@@ -2564,7 +2646,7 @@ export interface components {
target_upgrade_versions: {
app_version: string
/** @enum {string} */
- postgres_version: '15' | '17' | '17-oriole'
+ postgres_version: '13' | '14' | '15' | '17' | '17-oriole'
/** @enum {string} */
release_channel: 'internal' | 'alpha' | 'beta' | 'ga' | 'withdrawn' | 'preview'
}[]
@@ -2711,6 +2793,14 @@ export interface components {
}
}
StorageConfigResponse: {
+ capabilities: {
+ iceberg_catalog: boolean
+ list_v2: boolean
+ }
+ external: {
+ /** @enum {string} */
+ upstreamTarget: 'main' | 'canary'
+ }
features: {
icebergCatalog?: {
enabled: boolean
@@ -2765,7 +2855,7 @@ export interface components {
description?: string | null
name?: string
secret_jwt_template?: {
- role: string
+ [key: string]: unknown
} | null
}
UpdateAuthConfigBody: {
@@ -3013,6 +3103,14 @@ export interface components {
| '4_origin_setup_completed'
| '5_services_reconfigured'
}
+ UpdateJitAccessBody: {
+ roles: {
+ expires_at?: string
+ role: string
+ }[]
+ /** Format: uuid */
+ user_id: string
+ }
UpdatePgsodiumConfigBody: {
root_key: string
}
@@ -3090,6 +3188,10 @@ export interface components {
status: 'in_use' | 'previously_used' | 'revoked' | 'standby'
}
UpdateStorageConfigBody: {
+ external?: {
+ /** @enum {string} */
+ upstreamTarget: 'main' | 'canary'
+ }
features?: {
icebergCatalog?: {
enabled: boolean
@@ -5982,6 +6084,149 @@ export interface operations {
}
}
}
+ 'v1-get-jit-access': {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Project ref */
+ ref: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['JitAccessResponse']
+ }
+ }
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Failed to list database jit access */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ 'v1-update-jit-access': {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Project ref */
+ ref: string
+ }
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['UpdateJitAccessBody']
+ }
+ }
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['JitAccessResponse']
+ }
+ }
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Failed to upsert database migration */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ 'v1-delete-jit-access': {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Project ref */
+ ref: string
+ user_id: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Failed to remove JIT access */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ 'v1-list-jit-access': {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Project ref */
+ ref: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['JitListAccessResponse']
+ }
+ }
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Failed to list database jit access */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
'v1-list-migration-history': {
parameters: {
query?: never
diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts
index 8f303e30822..f78fd35b019 100644
--- a/packages/api-types/types/platform.d.ts
+++ b/packages/api-types/types/platform.d.ts
@@ -1114,6 +1114,23 @@ export interface paths {
patch?: never
trace?: never
}
+ '/platform/organizations/{slug}/cloud-marketplace/link': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ /** Makes an existing organization being billed by AWS Marketplace */
+ put: operations['ClazarController_link']
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/organizations/{slug}/customer': {
parameters: {
query?: never
@@ -1166,6 +1183,23 @@ export interface paths {
patch?: never
trace?: never
}
+ '/platform/organizations/{slug}/documents/dpa': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Create DPA document using PandaDoc */
+ post: operations['OrgDocumentsController_createDpaDocument']
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/organizations/{slug}/documents/soc2-type-2-report': {
parameters: {
query?: never
@@ -1589,6 +1623,40 @@ export interface paths {
patch?: never
trace?: never
}
+ '/platform/organizations/cloud-marketplace': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Creates organization billed by AWS Marketplace */
+ post: operations['OrganizationsController_createAwsBilledOrganization']
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ '/platform/organizations/cloud-marketplace/check-eligibility': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Check whether given organizations are eligible for AWS billing */
+ get: operations['OrganizationsController_checkCloudMarketplaceEligibility']
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/organizations/confirm-subscription': {
parameters: {
query?: never
@@ -4335,6 +4403,11 @@ export interface components {
ChangeMFAEnforcementStateRequest: {
enforced: boolean
}
+ CheckCloudMarketplaceEligibilityResponse: {
+ is_eligible: boolean
+ reasons: string[]
+ slug: string
+ }[]
CloneBackupsResponse: {
backups: {
id: number
@@ -4393,6 +4466,12 @@ export interface components {
token: string
token_alias: string
}
+ CreateAwsBilledOrganizationBody: {
+ buyer_id: string
+ kind?: string
+ name: string
+ size?: string
+ }
CreateBackendParamsOpenapi: {
config:
| {
@@ -4494,6 +4573,17 @@ export interface components {
/** @description Destination id */
id: number
}
+ CreateDpaDocumentRequest: {
+ /** Format: email */
+ recipient_email: string
+ }
+ CreateDpaDocumentResponse: {
+ date_created: string
+ document_id: string
+ download_url?: string
+ name: string
+ status: string
+ }
CreateExtensionBody: {
cascade: boolean
name: string
@@ -4933,56 +5023,56 @@ export interface components {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file: string
/** Format: uri */
metadata_xml_url?: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
| {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file?: string
metadata_xml_url: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
CreateSSOProviderResponse:
| {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file: string
/** Format: uri */
metadata_xml_url?: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
| {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file?: string
metadata_xml_url: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
CreateStorageBucketBody: {
allowed_mime_types?: string[]
@@ -5633,28 +5723,28 @@ export interface components {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file: string
/** Format: uri */
metadata_xml_url?: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
| {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file?: string
metadata_xml_url: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
GetStorageCredentialsResponse: {
data: {
@@ -5885,6 +5975,7 @@ export interface components {
}
GoTrueConfigResponse: {
API_MAX_REQUEST_DURATION: number | null
+ AUDIT_LOG_DISABLE_POSTGRES: boolean | null
DB_MAX_POOL_SIZE: number | null
DISABLE_SIGNUP: boolean
EXTERNAL_ANONYMOUS_USERS_ENABLED: boolean
@@ -6200,6 +6291,9 @@ export interface components {
phone: string | null
token: string
}
+ LinkClazarBuyerBody: {
+ buyer_id: string
+ }
ListGitHubConnectionsResponse: {
connections: {
branch_limit: number
@@ -7844,6 +7938,14 @@ export interface components {
updated_at: string
}
StorageConfigResponse: {
+ capabilities: {
+ iceberg_catalog: boolean
+ list_v2: boolean
+ }
+ external: {
+ /** @enum {string} */
+ upstreamTarget: 'main' | 'canary'
+ }
features: {
icebergCatalog?: {
enabled: boolean
@@ -7952,6 +8054,10 @@ export interface components {
feature_flags?: {
[key: string]: unknown
}
+ groups?: {
+ organization?: string
+ project?: string
+ }
page_title: string
page_url: string
pathname: string
@@ -8279,6 +8385,7 @@ export interface components {
}
UpdateGoTrueConfigBody: {
API_MAX_REQUEST_DURATION?: number | null
+ AUDIT_LOG_DISABLE_POSTGRES?: boolean | null
DB_MAX_POOL_SIZE?: number | null
DISABLE_SIGNUP?: boolean | null
EXTERNAL_ANONYMOUS_USERS_ENABLED?: boolean | null
@@ -8738,56 +8845,56 @@ export interface components {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file: string
/** Format: uri */
metadata_xml_url?: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
| {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file?: string
metadata_xml_url: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
UpdateSSOProviderResponse:
| {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file: string
/** Format: uri */
metadata_xml_url?: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
| {
domains: string[]
email_mapping: string[]
enabled: boolean
- first_name_mapping: string[]
+ first_name_mapping?: string[]
join_org_on_signup_enabled: boolean
/** @enum {string} */
join_org_on_signup_role?: 'Administrator' | 'Developer' | 'Owner' | 'Read-only'
- last_name_mapping: string[]
+ last_name_mapping?: string[]
metadata_xml_file?: string
metadata_xml_url: string
- user_name_mapping: string[]
+ user_name_mapping?: string[]
}
UpdateStorageBucketBody: {
allowed_mime_types?: string[] | null
@@ -8795,6 +8902,10 @@ export interface components {
public: boolean
}
UpdateStorageConfigBody: {
+ external?: {
+ /** @enum {string} */
+ upstreamTarget: 'main' | 'canary'
+ }
features?: {
icebergCatalog?: {
enabled: boolean
@@ -10977,6 +11088,12 @@ export interface operations {
'application/json': components['schemas']['OrganizationSlugResponse']
}
}
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
}
}
OrganizationSlugController_deleteOrganization: {
@@ -11036,6 +11153,12 @@ export interface operations {
'application/json': components['schemas']['UpdateOrganizationResponse']
}
}
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
/** @description Failed to update organization */
500: {
headers: {
@@ -11527,6 +11650,43 @@ export interface operations {
}
}
}
+ ClazarController_link: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Organization slug */
+ slug: string
+ }
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['LinkClazarBuyerBody']
+ }
+ }
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Failed to make organization being billed by AWS Marketplace */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
CustomerController_getCustomer: {
parameters: {
query?: never
@@ -11719,6 +11879,35 @@ export interface operations {
}
}
}
+ OrgDocumentsController_createDpaDocument: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['CreateDpaDocumentRequest']
+ }
+ }
+ responses: {
+ 201: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['CreateDpaDocumentResponse']
+ }
+ }
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
OrgDocumentsController_getSoc2Type2ReportUrl: {
parameters: {
query?: never
@@ -11739,6 +11928,12 @@ export interface operations {
'application/json': components['schemas']['OrgDocumentUrlResponse']
}
}
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
}
}
OrgDocumentsController_getStandardSecurityQuestionnaireUrl: {
@@ -11761,6 +11956,12 @@ export interface operations {
'application/json': components['schemas']['OrgDocumentUrlResponse']
}
}
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
}
}
MembersController_getMembers: {
@@ -11971,12 +12172,6 @@ export interface operations {
}
content?: never
}
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
/** @description Failed to create organization invitation */
500: {
headers: {
@@ -12675,6 +12870,12 @@ export interface operations {
'application/json': components['schemas']['OrganizationRoleResponse']
}
}
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
/** @description Failed to retrieve the organization's roles */
500: {
headers: {
@@ -12949,6 +13150,62 @@ export interface operations {
}
}
}
+ OrganizationsController_createAwsBilledOrganization: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['CreateAwsBilledOrganizationBody']
+ }
+ }
+ responses: {
+ 201: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['CreateOrganizationResponse']
+ }
+ }
+ /** @description Failed to create organization billed by AWS Marketplace */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ OrganizationsController_checkCloudMarketplaceEligibility: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['CheckCloudMarketplaceEligibilityResponse']
+ }
+ }
+ /** @description Failed to check whether organizations are eligible for AWS billing */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
OrganizationsController_confirmSubscription: {
parameters: {
query?: never
diff --git a/packages/common/telemetry-constants.ts b/packages/common/telemetry-constants.ts
index 44c2f1db806..674165090ee 100644
--- a/packages/common/telemetry-constants.ts
+++ b/packages/common/telemetry-constants.ts
@@ -1394,6 +1394,63 @@ export interface BranchReviewWithAssistantClickedEvent {
groups: TelemetryGroups
}
+/**
+ * User clicked on a DPA PDF link to open it.
+ *
+ * @group Events
+ * @source www, studio
+ */
+export interface DpaPdfOpenedEvent {
+ action: 'dpa_pdf_opened'
+ properties: {
+ /**
+ * The source of the click, e.g. www, studio
+ */
+ source: 'www' | 'studio'
+ }
+}
+
+/**
+ * User clicked the Request DPA button to open the confirmation modal.
+ *
+ * @group Events
+ * @source studio
+ * @page /dashboard/org/{slug}/documents
+ */
+export interface DpaRequestButtonClickedEvent {
+ action: 'dpa_request_button_clicked'
+}
+
+/**
+ * User clicked a document view/download button to access a document.
+ *
+ * @group Events
+ * @source studio
+ * @page /dashboard/org/{slug}/documents
+ */
+export interface DocumentViewButtonClickedEvent {
+ action: 'document_view_button_clicked'
+ properties: {
+ /**
+ * The name of the document being viewed, e.g. TIA, SOC2, Standard Security Questionnaire
+ */
+ documentName: 'TIA' | 'SOC2' | 'Standard Security Questionnaire'
+ }
+ groups: Omit<TelemetryGroups, 'project'>
+}
+
+/**
+ * User clicked the Request HIPAA button to open the HIPAA request form.
+ *
+ * @group Events
+ * @source studio
+ * @page /dashboard/org/{slug}/documents
+ */
+export interface HipaaRequestButtonClickedEvent {
+ action: 'hipaa_request_button_clicked'
+ groups: Omit<TelemetryGroups, 'project'>
+}
+
/**
* @hidden
*/
@@ -1484,3 +1541,7 @@ export type TelemetryEvent =
| BranchMergeFailedEvent
| BranchUpdatedEvent
| BranchReviewWithAssistantClickedEvent
+ | DpaPdfOpenedEvent
+ | DpaRequestButtonClickedEvent
+ | DocumentViewButtonClickedEvent
+ | HipaaRequestButtonClickedEvent
diff --git a/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx b/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx
index 178b1ea7a59..9c81a4c4d61 100644
--- a/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx
+++ b/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx
@@ -48,6 +48,7 @@ export interface TextConfirmModalProps {
formMessage?: React.ComponentProps<typeof FormMessage_Shadcn_>
description?: React.ComponentProps<typeof FormDescription_Shadcn_>
blockDeleteButton?: boolean
+ errorMessage?: string
}
const TextConfirmModal = forwardRef<
@@ -75,6 +76,7 @@ const TextConfirmModal = forwardRef<
children,
blockDeleteButton = true,
variant = 'default',
+ errorMessage = 'Value entered does not match',
...props
},
ref
@@ -83,7 +85,7 @@ const TextConfirmModal = forwardRef<
confirmValue: z.preprocess(
(val) => (typeof val === 'string' ? val.trim() : val),
z.literal(confirmString.trim(), {
- required_error: 'Value entered does not match.',
+ errorMap: () => ({ message: errorMessage }),
})
),
})
@@ -91,6 +93,7 @@ const TextConfirmModal = forwardRef<
// 1. Define your form.
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
+ reValidateMode: 'onChange',
defaultValues: {
confirmValue: '',
},
@@ -149,13 +152,13 @@ const TextConfirmModal = forwardRef<
<form
autoComplete="off"
onSubmit={form.handleSubmit(onSubmit)}
- className="px-5 flex flex-col gap-2 pt-3"
+ className="px-5 flex flex-col gap-y-3 pt-3"
>
<FormField_Shadcn_
control={form.control}
name="confirmValue"
render={({ field }) => (
- <FormItem_Shadcn_ className="flex flex-col gap-y-1">
+ <FormItem_Shadcn_ className="flex flex-col gap-y-2">
<FormLabel_Shadcn_ {...label}>
Type{' '}
<span className="text-foreground break-all whitespace-pre">
@@ -171,7 +174,7 @@ const TextConfirmModal = forwardRef<
{...field}
/>
</FormControl_Shadcn_>
- <FormDescription_Shadcn_ {...description} />
+ {!!description && <FormDescription_Shadcn_ {...description} />}
<FormMessage_Shadcn_ {...formMessage} />
</FormItem_Shadcn_>
)}