The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update log drains pricing (#28452)
Jordi Enrica91be67070db
diff --git a/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx b/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsxindex 3c073efc4e5..c23076f9d6f 100644--- a/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx+++ b/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx@@ -18,8 +18,15 @@ import {FormLabel_Shadcn_,FormMessage_Shadcn_,Input_Shadcn_,- RadioGroupStacked,- RadioGroupStackedItem,+ RadioGroupCard,+ RadioGroupCardItem,+ Switch,+ Sheet,+ SheetContent,+ SheetSection,+ SheetFooter,+ SheetHeader,+ SheetTitle,Select_Shadcn_,SelectContent_Shadcn_,SelectGroup_Shadcn_,@@ -27,13 +34,6 @@ import {SelectLabel_Shadcn_,SelectTrigger_Shadcn_,SelectValue_Shadcn_,- Sheet,- SheetContent,- SheetFooter,- SheetHeader,- SheetSection,- SheetTitle,- Switch,} from 'ui'import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'import { InfoTooltip } from 'ui-patterns/info-tooltip'@@ -205,7 +205,12 @@ export function LogDrainDestinationSheetForm({onOpenChange(v)}}>- <SheetContent tabIndex={undefined} showClose={false} size="lg" className="overflow-y-auto">+ <SheetContent+ tabIndex={undefined}+ showClose={false}+ size="lg"+ className="overflow-y-auto flex flex-col"+ ><SheetHeader><SheetTitle>Add destination</SheetTitle></SheetHeader>@@ -227,7 +232,7 @@ export function LogDrainDestinationSheetForm({form.handleSubmit(onSubmit)(e)}}>- <div className="space-y-4 px-content">+ <div className="space-y-8 px-content"><LogDrainFormItemvalue="name"placeholder="My Destination"@@ -271,10 +276,10 @@ export function LogDrainDestinationSheetForm({)}</div>- <div className="space-y-6 mt-4">+ <div className="space-y-8 mt-4">{type === 'webhook' && (<>- <div className="px-content space-y-6">+ <div className="px-content space-y-8"><LogDrainFormItemvalue="url"label="Endpoint URL"@@ -287,18 +292,22 @@ export function LogDrainDestinationSheetForm({render={({ field }) => (<FormItemLayout layout="horizontal" label="HTTP Version"><FormControl_Shadcn_>- <RadioGroupStacked onValueChange={field.onChange} value={field.value}>+ <RadioGroupCard+ className="flex gap-2"+ onValueChange={field.onChange}+ value={field.value}+ ><FormItem_Shadcn_ asChild><FormControl_Shadcn_>- <RadioGroupStackedItem value="http1" label="HTTP/1" />+ <RadioGroupCardItem value="http1" label="HTTP/1" /></FormControl_Shadcn_></FormItem_Shadcn_><FormItem_Shadcn_ asChild><FormControl_Shadcn_>- <RadioGroupStackedItem value="http2" label="HTTP/2" />+ <RadioGroupCardItem value="http2" label="HTTP/2" /></FormControl_Shadcn_></FormItem_Shadcn_>- </RadioGroupStacked>+ </RadioGroupCard></FormControl_Shadcn_><FormMessage_Shadcn_ /></FormItemLayout>@@ -462,39 +471,41 @@ export function LogDrainDestinationSheetForm({)}</SheetSection>- <SheetSection className="border-t mt-4 bg-background-alternative-200">- <FormItemLayout- isReactForm={false}- layout="horizontal"- label={- <div className="text-foreground-light">- Additional drain cost- <div className="text-foreground-lighter mt-2">- <Link- target="_blank"- rel="noopener noreferrer"- className="underline flex gap-1 items-center"- href="https://supabase.com/docs/guides/platform/log-drains"- >- Documentation <ExternalLink className="w-4 h-4" />- </Link>+ <div className="mt-auto">+ <SheetSection className="border-t bg-background-alternative-200 mt-auto">+ <FormItemLayout+ isReactForm={false}+ layout="horizontal"+ label={+ <div className="text-foreground-light">+ Additional drain cost+ <div className="text-foreground-lighter mt-2">+ <Link+ target="_blank"+ rel="noopener noreferrer"+ className="underline flex gap-1 items-center"+ href="https://supabase.com/docs/guides/platform/log-drains"+ >+ Documentation <ExternalLink className="w-4 h-4" />+ </Link>+ </div></div>- </div>- }- >- <ul className="text-right text-foreground-light">- <li className="text-brand-link text-base">$60 / drain / month</li>- <li>$0.20 per million events</li>- <li>$0.09 per GB</li>- </ul>- </FormItemLayout>- </SheetSection>+ }+ >+ <ul className="text-right text-foreground-light">+ <li className="text-brand-link text-base">$60 per drain per month</li>+ <li>$0.20 per million events</li>+ <li>$0.09 per GB egress</li>+ </ul>+ </FormItemLayout>+ </SheetSection>- <SheetFooter className="p-content">- <Button form={FORM_ID} loading={isLoading} htmlType="submit" type="primary">- Save destination- </Button>- </SheetFooter>+ <SheetFooter className="p-content !mt-0">+ <Button form={FORM_ID} loading={isLoading} htmlType="submit" type="primary">+ Save destination+ </Button>+ </SheetFooter>+ </div></SheetContent></Sheet>)