mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
use pipelineCreationWizard for the pipeline preview rollout
This commit is contained in:
1 parent
a3be046f25
commit
08387fa0ff
4 files changed
+7
-7
No files matched your search
@@ -99,7 +99,7 @@ export const FeaturePreviewContextProvider = ({ children }: PropsWithChildren) =
|
||||
|
||||
export const usePipelineCreationPreview = () => {
|
||||
const { flags, isInitialized } = useFeaturePreviewContext()
|
||||
const isAvailable = useFlag('pipelineCreationPreview') === true
|
||||
const isAvailable = useFlag('pipelineCreationWizard') === true
|
||||
const isEnabled =
|
||||
IS_PLATFORM &&
|
||||
isInitialized &&
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ vi.mock('common', async (importOriginal) => {
|
||||
...common.LOCAL_STORAGE_KEYS,
|
||||
UI_PREVIEW_PIPELINE_CREATION: 'supabase-ui-pipeline-creation',
|
||||
},
|
||||
useFlag: (key: string) => key === 'pipelineCreationPreview' && rollout.enabled,
|
||||
useFlag: (key: string) => key === 'pipelineCreationWizard' && rollout.enabled,
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export const PipelineCreationPreview = () => (
|
||||
<div className="space-y-4 text-sm text-foreground-light">
|
||||
<p>Create pipelines in separate steps for connection details, tables, and review.</p>
|
||||
<p>Create pipelines in a redesigned flow spread across several full-viewport steps.</p>
|
||||
<p>
|
||||
Existing pipelines still open in the editing sheet. Turn this preview off to use the creation
|
||||
sheet again.
|
||||
|
||||
@@ -32,7 +32,7 @@ export type FeaturePreview = {
|
||||
}
|
||||
|
||||
export const useFeaturePreviews = (): FeaturePreview[] => {
|
||||
const isPipelineCreationPreviewEnabled = useFlag('pipelineCreationPreview')
|
||||
const isPipelineCreationWizardAvailable = useFlag('pipelineCreationWizard')
|
||||
const isPlatformWebhooksEnabled = useFlag('platformWebhooks')
|
||||
const jitDbAccessEnabled = useFlag('jitDbAccess')
|
||||
const isMarketplaceEnabled = useFlag('marketplaceIntegrations')
|
||||
@@ -45,9 +45,9 @@ export const useFeaturePreviews = (): FeaturePreview[] => {
|
||||
const previews: FeaturePreview[] = [
|
||||
{
|
||||
key: LOCAL_STORAGE_KEYS.UI_PREVIEW_PIPELINE_CREATION,
|
||||
name: 'Stepped pipeline creation',
|
||||
name: 'Pipeline creation wizard',
|
||||
category: 'database',
|
||||
enabled: isPipelineCreationPreviewEnabled,
|
||||
enabled: isPipelineCreationWizardAvailable,
|
||||
isNew: true,
|
||||
isPlatformOnly: true,
|
||||
isDefaultOptIn: false,
|
||||
@@ -163,7 +163,7 @@ export const useFeaturePreviews = (): FeaturePreview[] => {
|
||||
|
||||
return previews.sort((a, b) => Number(b.isNew) - Number(a.isNew))
|
||||
}, [
|
||||
isPipelineCreationPreviewEnabled,
|
||||
isPipelineCreationWizardAvailable,
|
||||
isSqlEditorManualSaveForced,
|
||||
isPlatformWebhooksEnabled,
|
||||
jitDbAccessEnabled,
|
||||
|
||||
Reference in new issue
Block a user