mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
add link to datadogdocs (#28599)
* add link to datadogdocs * Minor fixes --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
This commit is contained in:
1 parent
b4e2b156af
commit
23f39ff919
1 file changed
+38
-26
@@ -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{' '}
|
||||
<Link
|
||||
<a
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-sm underline text-foreground"
|
||||
className="text-sm underline transition hover:text-foreground"
|
||||
href="https://app.datadoghq.com/organization-settings/api-keys"
|
||||
>
|
||||
here
|
||||
</Link>
|
||||
</a>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
@@ -384,7 +383,20 @@ export function LogDrainDestinationSheetForm({
|
||||
<FormItemLayout
|
||||
layout="horizontal"
|
||||
label={'Region'}
|
||||
description="The Datadog region to send logs to."
|
||||
description={
|
||||
<p>
|
||||
The Datadog region to send logs to. Read more about Datadog regions{' '}
|
||||
<a
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="underline hover:text-foreground transition"
|
||||
href="https://docs.datadoghq.com/getting_started/site/#access-the-datadog-site"
|
||||
>
|
||||
here
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
}
|
||||
>
|
||||
<FormControl_Shadcn_>
|
||||
<Select_Shadcn_ value={field.value} onValueChange={field.onChange}>
|
||||
|
||||
Reference in new issue
Block a user