The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add note about rate limits when enabling/disabling custom smtp (#40764)
Joshen Lim37a7a020c371
diff --git a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsxindex 01be3cbe7dc..c8fc282d053 100644--- a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx+++ b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx@@ -25,6 +25,7 @@ import {Input_Shadcn_,PrePostTab,Switch,+ cn,} from 'ui'import { Admonition } from 'ui-patterns'import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'@@ -444,20 +445,45 @@ export const SmtpForm = () => {</>)}- <CardFooter className="justify-end space-x-2">+ <CardFooter+ className={cn(form.formState.isDirty ? 'justify-between' : 'justify-end', 'gap-x-2')}+ >{form.formState.isDirty && (- <Button type="default" onClick={() => form.reset()}>- Cancel- </Button>+ <p className="text-sm text-foreground-light">+ {enableSmtp ? (+ <>+ Rate limit for sending emails will be increased to 30 and{' '}+ <InlineLink href={`/project/${projectRef}/auth/rate-limits`}>+ can be adjusted+ </InlineLink>{' '}+ after enabling custom SMTP+ </>+ ) : (+ 'Rate limit for sending emails will be reduced to 2 after disabling custom SMTP'+ )}+ </p>)}- <Button- type="primary"- htmlType="submit"- loading={isUpdatingConfig}- disabled={!canUpdateConfig || !form.formState.isDirty}- >- Save changes- </Button>+ <div className="flex items-center gap-x-2">+ {form.formState.isDirty && (+ <Button+ type="default"+ onClick={() => {+ form.reset()+ setEnableSmtp(isSmtpEnabled(authConfig))+ }}+ >+ Cancel+ </Button>+ )}+ <Button+ type="primary"+ htmlType="submit"+ loading={isUpdatingConfig}+ disabled={!canUpdateConfig || !form.formState.isDirty}+ >+ Save changes+ </Button>+ </div></CardFooter></Card></form>