mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
Restores proper content in new marketplace detail overview pages compared to the legacy overview pages. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Data API URL settings and a visible "Required extensions" section across integration overviews. * Unified install/manage UIs for webhooks, Stripe Sync, wrappers, queues, and others; marketplace mode now shows marketplace-specific overview content. * **Style** * Improved marketplace detail rail and filter-bar button styling; refined list/link row visuals. * **Refactor** * Overview pages reorganized to branch on marketplace mode and extract shared overview content for consistency. * **Tests** * Stabilized integration overview test data for deterministic runs. <!-- review_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46179?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
30 lines
863 B
TypeScript
30 lines
863 B
TypeScript
import { useParams } from 'common'
|
|
import { AlertCircle } from 'lucide-react'
|
|
import { Alert, AlertDescription, AlertTitle } from 'ui'
|
|
|
|
import { InlineLink } from '@/components/ui/InlineLink'
|
|
|
|
interface DataApiDisabledStateProps {
|
|
description: string
|
|
}
|
|
|
|
export const DataApiDisabledState = ({ description }: DataApiDisabledStateProps) => {
|
|
const { ref: projectRef } = useParams()
|
|
|
|
return (
|
|
<div className="flex w-full p-10">
|
|
<Alert className="max-w-md mx-auto">
|
|
<AlertCircle size={16} />
|
|
<AlertTitle>Data API is disabled</AlertTitle>
|
|
<AlertDescription>
|
|
Enable the Data API in the{' '}
|
|
<InlineLink href={`/project/${projectRef}/integrations/data_api/overview`}>
|
|
Overview
|
|
</InlineLink>{' '}
|
|
tab to {description}.
|
|
</AlertDescription>
|
|
</Alert>
|
|
</div>
|
|
)
|
|
}
|