The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): clarify S3 access key dialogs (#51070)
Danny White92952bf9033b
diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx b/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsxindex e0a9ff4e8ec..90fe0ebb353 100644--- a/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx+++ b/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx@@ -16,6 +16,7 @@ import {DialogTitle,DialogTrigger,Form,+ FormControl,FormField,Tooltip,TooltipContent,@@ -51,7 +52,7 @@ export const CreateCredentialModal = ({ visible, onOpenChange }: CreateCredentiaconst FormSchema = z.object({description: z.string().min(3, {- message: 'Description must be at least 3 characters long',+ message: 'Name must be at least 3 characters long',}),})const form = useForm<z.infer<typeof FormSchema>>({@@ -110,6 +111,7 @@ export const CreateCredentialModal = ({ visible, onOpenChange }: CreateCredentia</Tooltip><DialogContent+ size="small"onInteractOutside={(e) => {if (showSuccess) e.preventDefault()}}@@ -117,10 +119,10 @@ export const CreateCredentialModal = ({ visible, onOpenChange }: CreateCredentia{showSuccess ? (<><DialogHeader>- <DialogTitle>Save your new S3 access keys</DialogTitle>+ <DialogTitle>Save your new access key</DialogTitle><DialogDescription>- You won't be able to see them again. If you lose these access keys, you'll need to- create a new ones.+ Copy the access key ID and secret now. The secret won't be shown again. If you lose+ it, create a new access key.</DialogDescription></DialogHeader><DialogSectionSeparator />@@ -128,7 +130,7 @@ export const CreateCredentialModal = ({ visible, onOpenChange }: CreateCredentia<FormItemLayout label="Access key ID" isReactForm={false}><Input className="input-mono" readOnly copy value={createS3KeyData?.access_key} /></FormItemLayout>- <FormItemLayout label={'Secret access key'} isReactForm={false}>+ <FormItemLayout label="Secret access key" isReactForm={false}><Input className="input-mono" readOnly copy value={createS3KeyData?.secret_key} /></FormItemLayout></DialogSection>@@ -146,10 +148,9 @@ export const CreateCredentialModal = ({ visible, onOpenChange }: CreateCredentia) : (<><DialogHeader>- <DialogTitle>Create new S3 access keys</DialogTitle>+ <DialogTitle>Create new access key</DialogTitle><DialogDescription>- S3 access keys provide full access to all S3 operations across all buckets and- bypass any existing RLS policies.+ This access key grants full access to every bucket and bypasses RLS policies.</DialogDescription></DialogHeader><DialogSectionSeparator />@@ -159,20 +160,22 @@ export const CreateCredentialModal = ({ visible, onOpenChange }: CreateCredentia<FormFieldname="description"render={({ field }) => (- <FormItemLayout label="Description">- <Input- autoComplete="off"- placeholder="My test key"- type="text"- {...field}- />+ <FormItemLayout label="Name">+ <FormControl>+ <Input+ autoComplete="off"+ placeholder="My test key"+ type="text"+ {...field}+ />+ </FormControl></FormItemLayout>)}/></DialogSection><DialogFooter><Button variant="primary" type="submit" loading={isCreating}>- Create access key+ Create</Button></DialogFooter></form>