Files
supabase/apps/studio/components/interfaces/App/FeaturePreview/PlatformWebhooksPreview.tsx
Danny White df55c5c327 feat(studio): platform webhooks scaffolding (#43276)
## 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.
2026-03-06 02:56:54 +00:00

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>
)
}