mirror of
https://github.com/supabase/supabase.git
synced 2026-06-17 13:14:06 +08: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>
27 lines
944 B
TypeScript
27 lines
944 B
TypeScript
import { useParams } from 'common'
|
|
|
|
import { ConstrainedIntegrationTabScaffold } from '../ConstrainedIntegrationTabScaffold'
|
|
import { DataApiDisabledState } from '@/components/interfaces/Integrations/DataApi/DataApiDisabledState'
|
|
import { ServiceList } from '@/components/interfaces/Settings/API/ServiceList'
|
|
import { useIsDataApiEnabled } from '@/hooks/misc/useIsDataApiEnabled'
|
|
import { IS_PLATFORM } from '@/lib/constants'
|
|
|
|
export const DataApiSettingsTab = () => {
|
|
const { ref: projectRef } = useParams()
|
|
const { isEnabled, isPending } = useIsDataApiEnabled({ projectRef })
|
|
|
|
if (IS_PLATFORM && !isPending && !isEnabled) {
|
|
return (
|
|
<ConstrainedIntegrationTabScaffold className="p-0!">
|
|
<DataApiDisabledState description="configure settings" />
|
|
</ConstrainedIntegrationTabScaffold>
|
|
)
|
|
}
|
|
|
|
return (
|
|
<ConstrainedIntegrationTabScaffold>
|
|
<ServiceList />
|
|
</ConstrainedIntegrationTabScaffold>
|
|
)
|
|
}
|