mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Problem Opening the pipeline creation wizard hides the top bar and shows an unrelated loading skeleton. Steps also lack their subtitles and contextual documentation links from #49243. ## Solution Keep the wizard header visible during access checks and redirects, with a skeleton matching the initial destination selection. Restore all four step subtitles and destination-specific Docs links on Connection. Link Data to the current table-selection guidance. | Before | After | | --- | --- | | <img width="1024" height="759" alt="31447" src="https://github.com/user-attachments/assets/e628831a-f916-43c4-81a5-8e3219f6310b" /> | <img width="1024" height="759" alt="New Pipeline Supabase" src="https://github.com/user-attachments/assets/1cc5548a-c4a8-4d3f-ac4f-c6cde54920d1" /> | | <img width="1024" height="759" alt="New Pipeline Supabase" src="https://github.com/user-attachments/assets/1ed91bf3-6b74-4e0b-a575-b3faeeffb1d5" /> | <img width="1024" height="759" alt="30316" src="https://github.com/user-attachments/assets/fbf2a703-d175-438c-be8c-0a11a921d2bc" /> | ## Review instructions 1. Enable **Pipeline creation wizard** in Feature Previews. Open `/project/<ref>/database/pipelines` and click **Add pipeline**, with network throttling enabled. Confirm the top bar stays visible while the destination skeleton loads. 2. Continue to Connection for each available destination. Confirm the subtitle names that destination and **Docs** opens its setup guide. 3. Continue to Data. Confirm its subtitle and **Docs** link cover publication and initial-sync selection. Review should also show its subtitle. 4. While the initial screen loads, confirm **Close** returns to Pipelines and the form footer is disabled.
43 lines
1.6 KiB
TypeScript
43 lines
1.6 KiB
TypeScript
import { RadioGroupStacked, RadioGroupStackedItem, Skeleton } from 'ui'
|
|
|
|
import { PIPELINE_CREATION_STEPS } from './PipelineCreationFlow.constants'
|
|
import { SteppedFlow, SteppedFlowHeader } from '@/components/ui/SteppedFlow/SteppedFlow'
|
|
|
|
export const PipelineCreationSkeleton = () => {
|
|
const initialStep = PIPELINE_CREATION_STEPS[0]
|
|
|
|
return (
|
|
<SteppedFlow
|
|
steps={PIPELINE_CREATION_STEPS}
|
|
currentStep={initialStep.id}
|
|
onStepChange={() => {}}
|
|
onCancel={() => {}}
|
|
nextLabel="Continue"
|
|
navigationDisabled
|
|
>
|
|
<SteppedFlowHeader title={initialStep.title} description={initialStep.description()} />
|
|
<div className="space-y-3 p-5" aria-busy="true" aria-label="Loading destinations">
|
|
<p className="text-sm font-medium text-foreground">Destination type</p>
|
|
<RadioGroupStacked disabled aria-hidden="true" className="pointer-events-none">
|
|
{[0, 1, 2, 3].map((index) => (
|
|
<RadioGroupStackedItem
|
|
key={index}
|
|
value={String(index)}
|
|
className="opacity-100! [&>div]:items-center [&>div]:py-3.5"
|
|
label={
|
|
<span className="flex items-center gap-x-3.5">
|
|
<Skeleton className="h-8 w-8 rounded-md" />
|
|
<span className="flex flex-col gap-2">
|
|
<Skeleton className="h-4 w-24" />
|
|
<Skeleton className="h-4 w-40 sm:w-72" />
|
|
</span>
|
|
</span>
|
|
}
|
|
/>
|
|
))}
|
|
</RadioGroupStacked>
|
|
</div>
|
|
</SteppedFlow>
|
|
)
|
|
}
|