mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
Feature ## What is the current behavior? Data API settings live under Project Settings. ## What is the new behavior? Data API settings are moved to the Integrations page, treating Data API as a platform integration. Includes security checks when toggling on the Data API to prevent unintended exposure of project data. ## Additional context Towards FE-2517 ## Summary by CodeRabbit * **New Features** * Added a Data API integration with Overview and Settings pages, endpoint display, and enable/disable toggle with safety checks and confirmation flow. * **Navigation Changes** * Data API moved from Project Settings into the Integrations area and routes now redirect to the new Overview page. * **Documentation** * Added an overview doc describing Data API endpoints and configuration. * **Tests** * Added unit tests for endpoint resolution and schema parsing utilities.
18 lines
588 B
TypeScript
18 lines
588 B
TypeScript
import { AlertCircle } from 'lucide-react'
|
|
import { Alert_Shadcn_, AlertTitle_Shadcn_, CardContent } from 'ui'
|
|
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
|
|
|
|
export const DataApiEnableSwitchLoading = () => (
|
|
<CardContent className="space-y-2">
|
|
<ShimmeringLoader />
|
|
<ShimmeringLoader className="w-3/4" delayIndex={1} />
|
|
</CardContent>
|
|
)
|
|
|
|
export const DataApiEnableSwitchError = () => (
|
|
<Alert_Shadcn_ variant="destructive">
|
|
<AlertCircle size={16} />
|
|
<AlertTitle_Shadcn_>Failed to retrieve Data API settings</AlertTitle_Shadcn_>
|
|
</Alert_Shadcn_>
|
|
)
|