mirror of
https://github.com/supabase/supabase.git
synced 2026-06-13 01:39:53 +08:00
## What kind of change does this PR introduce?
Impending feature addition. Resolves DEPR-340.
## What is the current behavior?
We don’t have any platform webhook support.
## What is the new behavior?
This puts the scaffolding for platform webhooks **behind a feature
flag**. The content is currently UI-only (with mock data and a
[temporary tracking
file](8adadc61f5/apps/studio/components/interfaces/Platform/Webhooks/DEPR-340-backend-integration-tracker.md)).
Merging this in lets us work incrementally from here on.
27 lines
826 B
TypeScript
27 lines
826 B
TypeScript
import { useParams } from 'common'
|
|
|
|
import { InlineLink } from '@/components/ui/InlineLink'
|
|
|
|
export const PlatformWebhooksPreview = () => {
|
|
const { slug = '_', ref = '_' } = useParams()
|
|
|
|
return (
|
|
<div className="space-y-2">
|
|
<p className="text-sm text-foreground-light mb-4">
|
|
Configure webhook endpoints and review deliveries from both project and organization
|
|
settings pages.
|
|
</p>
|
|
<ul className="list-disc pl-6 text-sm text-foreground-light space-y-1">
|
|
<li>
|
|
Project scope:{' '}
|
|
<InlineLink href={`/project/${ref}/settings/webhooks`}>Project Webhooks</InlineLink>
|
|
</li>
|
|
<li>
|
|
Organization scope:{' '}
|
|
<InlineLink href={`/org/${slug}/webhooks`}>Organization Webhooks</InlineLink>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
)
|
|
}
|