From 151eccdceea3497e4932e181a643f805978b3f86 Mon Sep 17 00:00:00 2001 From: Jordi Enric <37541088+jordienr@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:30:14 +0200 Subject: [PATCH] adds log drains pricing section (#28425) * update descriptions * add pricing section * fix docs link --- .../LogDrainDestinationSheetForm.tsx | 55 +++++++++++++++---- 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx b/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx index 5b33c2ec5a6..377ba809add 100644 --- a/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx +++ b/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx @@ -35,7 +35,7 @@ import { zodResolver } from '@hookform/resolvers/zod' import { useForm } from 'react-hook-form' import toast from 'react-hot-toast' import { ReactNode, useEffect, useState } from 'react' -import { TrashIcon } from 'lucide-react' +import { ExternalLink, TrashIcon } from 'lucide-react' import { LogDrainData, useLogDrainsQuery } from 'data/log-drains/log-drains-query' import Link from 'next/link' import { Select, SelectContent, SelectItem, SelectTrigger } from '@ui/components/shadcn/ui/select' @@ -211,7 +211,7 @@ export function LogDrainDestinationSheetForm({ Add destination - +
*/} {mode === 'create' && ( - + t.value === type)?.description || ''} + > )} @@ -325,14 +326,14 @@ export function LogDrainDestinationSheetForm({ )} /> */} -
-
+
+
Custom Headers

Set custom headers when draining logs to the Endpoint URL

-
+
{hasHeaders && Object.keys(headers || {})?.map((headerKey) => (
( - + @@ -416,7 +421,7 @@ export function LogDrainDestinationSheetForm({ e.stopPropagation() addHeader() }} - className="flex gap-2 mt-4 items-center px-content" + className="flex border-t py-4 gap-4 items-center px-content" >
+ } + > +
    +
  • $60 / drain / month
  • +
  • $0.20 per million events
  • +
  • $0.09 per GB
  • +
+ +