mirror of
https://github.com/supabase/supabase.git
synced 2026-06-30 20:38:14 -04:00
143769afac
Add generic building blocks for blocking features on High Availability projects: - useHighAvailability hook: HA state only (isHighAvailability, isPending) - HighAvailabilityDisabledEmptyState (full-page empty state) - HighAvailabilityDisabledSectionNotice (in-section admonition) The components carry a generic default title/description; consuming pages pass their own copy via props. HA state is read from the project's high_availability flag (same source as the High Availability badge on the project home page). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added clearer messaging for features that aren’t available in High Availability projects. * Introduced a standard High Availability status check to help the app adapt what it shows. * **Bug Fixes** * Hid non-applicable schema options when High Availability is enabled, reducing confusion in selection lists. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
6 lines
189 B
TypeScript
6 lines
189 B
TypeScript
export const MULTIGRES_SCHEMA_NAME = 'multigres'
|
|
|
|
export function resolveHighAvailability(project?: { high_availability?: boolean | null }) {
|
|
return project?.high_availability ?? false
|
|
}
|