The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: migrate `Input` usages to Shadcn component in integrations screens/components (#45591)
Gildas Garcia924047881639
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsxindex 95589d18191..745fea8d776 100644--- a/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx+++ b/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx@@ -17,7 +17,10 @@ import {FormItem,FormLabel,FormMessage,- Input,+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+ InputGroupText,Popover_Shadcn_,PopoverContent_Shadcn_,PopoverTrigger_Shadcn_,@@ -192,12 +195,12 @@ export const EdgeFunctionSection = ({ form }: HTTPRequestFieldsProps) => {name="values.timeoutMs"render={({ field: { ref, ...rest } }) => (<FormItemLayout label="Timeout" layout="vertical" className="gap-1">- <Input- {...rest}- type="number"- placeholder="1000"- actions={<p className="text-foreground-light pr-2">ms</p>}- />+ <InputGroup>+ <InputGroupInput {...rest} type="number" placeholder="1000" />+ <InputGroupAddon align="inline-end">+ <InputGroupText> ms</InputGroupText>+ </InputGroupAddon>+ </InputGroup></FormItemLayout>)}/>diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/HttpRequestSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/HttpRequestSection.tsxindex 00743443fc2..ee964d84b76 100644--- a/apps/studio/components/interfaces/Integrations/CronJobs/HttpRequestSection.tsx+++ b/apps/studio/components/interfaces/Integrations/CronJobs/HttpRequestSection.tsx@@ -5,7 +5,11 @@ import {FormItem,FormLabel,FormMessage,- Input,+ Input_Shadcn_ as Input,+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+ InputGroupText,Select_Shadcn_,SelectContent_Shadcn_,SelectItem_Shadcn_,@@ -63,12 +67,12 @@ export const HttpRequestSection = ({ form }: HttpRequestSectionProps) => {name="values.timeoutMs"render={({ field: { ref, ...rest } }) => (<FormItemLayout label="Timeout" className="gap-1">- <Input- {...rest}- type="number"- placeholder="1000"- actions={<p className="text-foreground-light pr-2">ms</p>}- />+ <InputGroup>+ <InputGroupInput {...rest} type="number" placeholder="1000" />+ <InputGroupAddon align="inline-end">+ <InputGroupText> ms</InputGroupText>+ </InputGroupAddon>+ </InputGroup></FormItemLayout>)}/>diff --git a/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/PartitionConfigFields.tsx b/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/PartitionConfigFields.tsxindex 1ccb8c52595..7b1a007860c 100644--- a/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/PartitionConfigFields.tsx+++ b/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/PartitionConfigFields.tsx@@ -1,5 +1,13 @@import { UseFormReturn } from 'react-hook-form'-import { FormField, Input, Separator, SheetSection } from 'ui'+import {+ FormField,+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+ InputGroupText,+ Separator,+ SheetSection,+} from 'ui'import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'import { CreateQueueForm } from './CreateQueueSheet.schema'@@ -21,12 +29,12 @@ export function PartitionConfigFields({ form }: { form: UseFormReturn<CreateQueudescription="Number of messages per partition"className="gap-1">- <Input- {...rest}- type="number"- placeholder="10000"- actions={<p className="text-foreground-light pr-2">messages</p>}- />+ <InputGroup>+ <InputGroupInput {...rest} type="number" placeholder="10000" />+ <InputGroupAddon align="inline-end">+ <InputGroupText>messages</InputGroupText>+ </InputGroupAddon>+ </InputGroup></FormItemLayout>)}/>@@ -39,12 +47,12 @@ export function PartitionConfigFields({ form }: { form: UseFormReturn<CreateQueudescription="Partitions older than this many messages behind the latest will be dropped"className="gap-1">- <Input- {...rest}- type="number"- placeholder="100000"- actions={<p className="text-foreground-light pr-2">messages</p>}- />+ <InputGroup>+ <InputGroupInput {...rest} type="number" placeholder="10000" />+ <InputGroupAddon align="inline-end">+ <InputGroupText>messages</InputGroupText>+ </InputGroupAddon>+ </InputGroup></FormItemLayout>)}/>diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/SendMessageModal.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/SendMessageModal.tsxindex 0f30424ccdf..69db0ad087a 100644--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/SendMessageModal.tsx+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/SendMessageModal.tsx@@ -3,7 +3,16 @@ import { useParams } from 'common'import { useEffect } from 'react'import { SubmitHandler, useForm } from 'react-hook-form'import { toast } from 'sonner'-import { Form, FormControl, FormField, Input, Modal } from 'ui'+import {+ Form,+ FormControl,+ FormField,+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+ InputGroupText,+ Modal,+} from 'ui'import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'import z from 'zod'@@ -102,12 +111,12 @@ export const SendMessageModal = ({ visible, onClose }: SendMessageModalProps) =>description="Time in seconds before the message becomes available for reading."><FormControl>- <Input- {...rest}- type="number"- placeholder="1"- actions={<p className="text-foreground-light pr-2">sec</p>}- />+ <InputGroup>+ <InputGroupInput {...rest} type="number" placeholder="1" />+ <InputGroupAddon align="inline-end">+ <InputGroupText>sec</InputGroupText>+ </InputGroupAddon>+ </InputGroup></FormControl></FormItemLayout>)}