mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
## I have read the CONTRIBUTING.md file. YES ## What kind of change does this PR introduce? Revert. Removes the Multigres Public Alpha docs section that was published in #49020. Linear: MUL-1621 (follow-up to MUL-452). ## What is the current behavior? - Overview guide live at `/docs/guides/database/multigres` - Compatibility stub live at `/docs/guides/database/multigres/compatibility` - Database sidebar has a Multigres section - Features table lists Database / Multigres / `public alpha` - Database "What you get" cards render for Multigres ## What is the new behavior? Clean revert of #49020: overview and compatibility pages removed, sidebar entry removed, features table row removed, "What you get" cards removed. The unrelated `ContentListings` optional-`href` support this PR introduced is also reverted since nothing else uses it yet. Docs go back up once Sugu gives the go-ahead to re-publish (tracked in MUL-1621). ## Additional context - `pnpm --filter docs exec vitest run lib/content-listings.test.ts` — 20 passed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Removed Multigres documentation, navigation links, feature listings, and related references. - Updated the JavaScript client library link in the getting-started guide. - Corrected the High Availability badge’s “Read more” link. - **Content Listings** - Content listing entries now require links and consistently render as linked items. - Non-linked listing items are no longer displayed as static content. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Nik Richers <nik@validmind.ai>
56 lines
1.7 KiB
JavaScript
56 lines
1.7 KiB
JavaScript
import { z } from 'zod'
|
|
|
|
const contentListingIconKindSchema = z.enum([
|
|
'braces',
|
|
'otlp',
|
|
'datadog',
|
|
'grafana',
|
|
'cloud',
|
|
'sentry',
|
|
'axiom',
|
|
'last9',
|
|
'server',
|
|
])
|
|
|
|
const contentListingIconChipSchema = z.object({
|
|
kind: contentListingIconKindSchema,
|
|
color: z.string().min(1),
|
|
bg: z.string().min(1),
|
|
})
|
|
|
|
export const contentListingIconSchema = z.union([z.string().min(1), contentListingIconChipSchema])
|
|
|
|
export const contentListingItemSchema = z.object({
|
|
title: z.string().min(1),
|
|
href: z.string().min(1),
|
|
description: z.string().min(1),
|
|
/** Shown under the title on grid cards, before the description. */
|
|
subtitle: z.string().min(1).optional(),
|
|
icon: contentListingIconSchema.optional(),
|
|
hasLightIcon: z.boolean().optional(),
|
|
badge: z.string().min(1).optional(),
|
|
/** Grid cards only. Defaults to inline (next to the title), matching existing usage. */
|
|
badgePosition: z.enum(['inline', 'below']).optional(),
|
|
/**
|
|
* When set, the item is omitted unless `isFeatureEnabled(feature)` is true.
|
|
* Use for SDK- or product-gated links (e.g. `sdk:dart`) inside a shared listing.
|
|
*/
|
|
feature: z.string().min(1).optional(),
|
|
})
|
|
|
|
export const contentListingGroupTypeSchema = z.enum(['list', 'grid'])
|
|
|
|
export const contentListingGridColumnsSchema = z.union([z.literal(2), z.literal(3), z.literal(4)])
|
|
|
|
export const contentListingHeadingLevelSchema = z.enum(['h2', 'h3', 'h4'])
|
|
|
|
export const contentListingGroupSchema = z.object({
|
|
id: z.string().min(1),
|
|
heading: z.string().min(1).optional(),
|
|
headingLevel: contentListingHeadingLevelSchema.optional(),
|
|
description: z.string().optional(),
|
|
type: contentListingGroupTypeSchema.optional(),
|
|
columns: contentListingGridColumnsSchema.optional(),
|
|
items: z.array(contentListingItemSchema).min(1),
|
|
})
|