Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into feat/cmdk-2

Jonathan Summers-Muira7a00ed21e54
diff --cc studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
index c7155b818e4,46bed2316b5..afccb7f5b5e
--- a/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
+++ b/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
@@@ -57,60 -73,58 +73,60 @@@ const HookList: FC<Props> = (
{x.events.map((event: string) => (
<Badge key={event}>{event}</Badge>
))}
- </p>
- </Table.td>
- <Table.td className="hidden xl:table-cell">
- <p>
- <Badge>{x.function_args[0]}</Badge>
- </p>
- </Table.td>
- <Table.td className="text-right">
- <div className="flex justify-end gap-4">
- {canUpdateWebhook ? (
- <Dropdown
- side="left"
- overlay={
- <>
- <Dropdown.Item icon={<IconEdit3 size="tiny" />} onClick={() => onEdit(x)}>
- Edit hook
- </Dropdown.Item>
- <Dropdown.Item
- icon={<IconTrash stroke="red" size="tiny" />}
- onClick={() => onDelete(x)}
- >
- Delete hook
- </Dropdown.Item>
- </>
- }
- >
- <Button as="span" type="default" icon={<IconMoreVertical />} />
- </Dropdown>
- ) : (
- <Tooltip.Root delayDuration={0}>
- <Tooltip.Trigger>
- <Button as="span" disabled type="default" icon={<IconMoreVertical />} />
- </Tooltip.Trigger>
- <Tooltip.Portal>
- <Tooltip.Content side="left">
- <Tooltip.Arrow className="radix-tooltip-arrow" />
- <div
- className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
- ].join(' ')}
- >
- <span className="text-xs text-scale-1200">
- You need additional permissions to update webhooks
- </span>
- </div>
- </Tooltip.Content>
- </Tooltip.Portal>
- </Tooltip.Root>
- )}
- </div>
- </Table.td>
- </Table.tr>
- ))}
+ </Table.td>
+ <Table.td className="hidden xl:table-cell">
+ <p className="truncate" title={url}>
+ <code className="font-mono text-xs">{method}</code>: {url}
+ </p>
+ </Table.td>
+ <Table.td className="text-right">
+ <div className="flex justify-end gap-4">
+ {canUpdateWebhook ? (
+ <Dropdown
+ side="left"
+ overlay={
+ <>
+ <Dropdown.Item icon={<IconEdit3 size="tiny" />} onClick={() => editHook(x)}>
+ Edit hook
+ </Dropdown.Item>
+ <Dropdown.Item
+ icon={<IconTrash stroke="red" size="tiny" />}
+ onClick={() => deleteHook(x)}
+ >
+ Delete hook
+ </Dropdown.Item>
+ </>
+ }
+ >
+ <Button as="span" type="default" icon={<IconMoreVertical />} className="px-1" />
+ </Dropdown>
+ ) : (
+ <Tooltip.Root delayDuration={0}>
+ <Tooltip.Trigger>
+ <Button as="span" disabled type="default" icon={<IconMoreVertical />} />
+ </Tooltip.Trigger>
- <Tooltip.Content side="left">
- <Tooltip.Arrow className="radix-tooltip-arrow" />
- <div
- className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
- ].join(' ')}
- >
- <span className="text-xs text-scale-1200">
- You need additional permissions to update webhooks
- </span>
- </div>
- </Tooltip.Content>
++ <Tooltip.Portal>
++ <Tooltip.Content side="left">
++ <Tooltip.Arrow className="radix-tooltip-arrow" />
++ <div
++ className={[
++ 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
++ 'border border-scale-200',
++ ].join(' ')}
++ >
++ <span className="text-xs text-scale-1200">
++ You need additional permissions to update webhooks
++ </span>
++ </div>
++ </Tooltip.Content>
++ </Tooltip.Portal>
+ </Tooltip.Root>
+ )}
+ </div>
+ </Table.td>
+ </Table.tr>
+ )
+ })}
</>
)
}