mirror of
https://github.com/supabase/supabase.git
synced 2026-05-09 02:09:50 -04:00
df55c5c327
## 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](https://github.com/supabase/supabase/blob/8adadc61f57c70b686a0f5f05e9f7f05837e0466/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>
|
|
)
|
|
}
|