From 23f39ff919feddc4df7899bc3a19c8d33636fefc Mon Sep 17 00:00:00 2001 From: Jordi Enric <37541088+jordienr@users.noreply.github.com> Date: Thu, 15 Aug 2024 08:51:10 +0200 Subject: [PATCH] add link to datadogdocs (#28599) * add link to datadogdocs * Minor fixes --------- Co-authored-by: Joshen Lim --- .../LogDrainDestinationSheetForm.tsx | 64 +++++++++++-------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx b/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx index 3f36e9e95c5..3c073efc4e5 100644 --- a/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx +++ b/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx @@ -1,23 +1,25 @@ -import { useParams } from 'common' -import { DATADOG_REGIONS, LOG_DRAIN_TYPES, LogDrainType } from './LogDrains.constants' +import { zodResolver } from '@hookform/resolvers/zod' +import { ExternalLink, TrashIcon } from 'lucide-react' +import Link from 'next/link' +import { ReactNode, useEffect, useState } from 'react' +import { useForm } from 'react-hook-form' +import toast from 'react-hot-toast' +import { z } from 'zod' -import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout' +import { Select, SelectContent, SelectItem, SelectTrigger } from '@ui/components/shadcn/ui/select' +import { useParams } from 'common' +import { LogDrainData, useLogDrainsQuery } from 'data/log-drains/log-drains-query' import { Button, Form_Shadcn_, FormControl_Shadcn_, FormField_Shadcn_, + FormItem_Shadcn_, + FormLabel_Shadcn_, FormMessage_Shadcn_, Input_Shadcn_, RadioGroupStacked, RadioGroupStackedItem, - Switch, - Sheet, - SheetContent, - SheetSection, - SheetFooter, - SheetHeader, - SheetTitle, Select_Shadcn_, SelectContent_Shadcn_, SelectGroup_Shadcn_, @@ -25,20 +27,17 @@ import { SelectLabel_Shadcn_, SelectTrigger_Shadcn_, SelectValue_Shadcn_, - FormItem_Shadcn_, - FormLabel_Shadcn_, + Sheet, + SheetContent, + SheetFooter, + SheetHeader, + SheetSection, + SheetTitle, + Switch, } from 'ui' - -import { z } from 'zod' -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 { 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' +import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout' import { InfoTooltip } from 'ui-patterns/info-tooltip' +import { DATADOG_REGIONS, LOG_DRAIN_TYPES, LogDrainType } from './LogDrains.constants' const FORM_ID = 'log-drain-destination-form' @@ -366,14 +365,14 @@ export function LogDrainDestinationSheetForm({ description={ <> The API Key obtained from the Datadog dashboard{' '} - here - + } /> @@ -384,7 +383,20 @@ export function LogDrainDestinationSheetForm({ + The Datadog region to send logs to. Read more about Datadog regions{' '} + + here + + . +

+ } >