Files
supabase/apps/studio/components/interfaces/Database/Replication/CreatePipeline/PipelineDestinationSelection.tsx
Victor FarazdagiandJoshen Lim 00adb5a81b chore(studio): remove the Iceberg pipeline destination (#52229)
## Problem

Retire the deprecated Iceberg (Analytics Bucket) destination from
Pipelines.

## Solution

- Remove the destination UI, configuration mappings, feature-flag usage,
and generated API variants.
- Remove the legacy Pipelines integration from Storage while preserving
standalone Analytics Buckets.
- Remove unused components and sheet-layout support, and add regression
coverage for retained Storage operations.
- Remove the stale Pipelines claim from the Storage docs overview.

## Validation

- Pipelines, Storage, and replication data tests
- After the final cleanup: Studio typecheck and all 3 Analytics Bucket
regression tests passed.
- Formatting, scoped ESLint, Knip, and whitespace checks passed; lint
warnings are pre-existing.
- Storage overview: Prettier, ESLint with zero warnings, content-listing
schema validation, and Markdown rendering passed.

Production API-type verification remains pending the coordinated API
deployment. Legacy Iceberg pipelines, destinations, and slots must be
cleaned up before rollout.

## Review instructions

1. Verify that Pipelines offers BigQuery, DuckLake, Snowflake, and
ClickHouse, with no Analytics Bucket option.
2. Verify that Storage Analytics Bucket creation, namespace/table
operations, and wrapper/key cleanup remain available without Pipelines
controls.

## Checklist

- [x] Read CONTRIBUTING.md.
- [x] Updated the Storage overview copy and checked the docs authoring
guidance.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-11 12:18:04 +03:00

68 lines
2.4 KiB
TypeScript

import { useId, type ReactNode } from 'react'
import { RadioGroupStacked, RadioGroupStackedItem } from 'ui'
export type PipelineDestinationType = 'BigQuery' | 'DuckLake' | 'Snowflake' | 'ClickHouse'
const DESTINATIONS: { type: PipelineDestinationType; description: string }[] = [
{ type: 'BigQuery', description: 'Replicate changes to BigQuery for analytics and BI' },
{ type: 'DuckLake', description: 'Replicate changes to DuckLake for open lakehouse storage' },
{ type: 'Snowflake', description: 'Replicate changes to Snowflake for cloud data warehousing' },
{ type: 'ClickHouse', description: 'Replicate changes to ClickHouse for real-time analytics' },
]
export const PipelineDestinationSelection = ({
availableDestinations,
value,
onChange,
disabled = false,
renderLogo,
}: {
availableDestinations: PipelineDestinationType[]
value: PipelineDestinationType | null
onChange: (value: PipelineDestinationType) => void
disabled?: boolean
renderLogo?: (type: PipelineDestinationType) => ReactNode
}) => {
const id = useId()
const options = DESTINATIONS.filter(({ type }) => availableDestinations.includes(type))
if (options.length === 0)
return <p className="text-sm text-foreground-light">No destinations are available.</p>
return (
<div className="space-y-3">
<p className="text-sm font-medium text-foreground">Destination type</p>
<RadioGroupStacked
aria-label="Destination type"
orientation="vertical"
value={value ?? ''}
disabled={disabled}
onValueChange={(nextValue) => {
const option = options.find(({ type }) => type === nextValue)
if (option) onChange(option.type)
}}
>
{options.map(({ type, description }) => (
<RadioGroupStackedItem
key={type}
id={`${id}-${type.replace(/\s+/g, '-')}`}
value={type}
className="[&>div]:items-center [&>div]:py-3.5"
label={
<span className="flex items-center gap-x-3.5">
{renderLogo?.(type)}
<span className="flex flex-col">
<span className="font-medium text-foreground">{type}</span>
<span className="text-sm text-foreground-lighter text-balance">
{description}
</span>
</span>
</span>
}
/>
))}
</RadioGroupStacked>
</div>
)
}