1- import Help from "@/assets/icons/help.svg?react" ;
21import { Codesnippet } from "@/components/CodeSnippet" ;
32import { HelpBox } from "@/components/fallback-pages/Helpbox" ;
43import { ChecklistItem } from "@/components/onboarding/ChecklistItem" ;
54import { useServerInfo } from "@/data/server/info-query" ;
65import { getLoginCommand } from "@/lib/login-command" ;
76import { OnboardingStep } from "@/types/onboarding" ;
8- import { Box , Skeleton , buttonVariants } from "@zenml-io/react-component-library" ;
7+ import { Skeleton } from "@zenml-io/react-component-library" ;
8+ import { OnboardingHelpBox } from "./helpbox" ;
99import { PipelineSnippet } from "./pipeline-snippet" ;
1010import { SetProject } from "./set-project" ;
1111
@@ -23,7 +23,7 @@ export function ConnectZenMLStep({ completed, hasDownstreamStep, active }: Onboa
2323 < div >
2424 < p className = "mb-1 text-text-sm text-theme-text-secondary" > Install ZenML</ p >
2525 < Codesnippet
26- code = { `pip install "zenml==${ data ? data . version : < Skeleton className = "w-7" /> } "` }
26+ code = { `uv pip install "zenml==${ data ? data . version : < Skeleton className = "w-7" /> } "` }
2727 />
2828 </ div >
2929 < div >
@@ -51,32 +51,30 @@ export function RunFirstPipeline({ active, completed, hasDownstreamStep }: Onboa
5151 < p className = "mb-1 text-text-sm text-theme-text-secondary" > Run the training pipeline.</ p >
5252 < Codesnippet code = "python run.py" />
5353 </ div >
54- < Box className = "flex w-full flex-wrap items-center justify-between gap-y-1 p-2" >
55- < div className = "flex items-center gap-[10px]" >
56- < div className = "flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25" >
57- < Help className = "h-5 w-5 fill-teal-400" />
58- </ div >
59- < p > Do you need help?</ p >
60- </ div >
61- < div className = "flex items-center gap-1" >
62- < a
63- target = "_blank"
64- rel = "noopener noreferrer"
65- className = { buttonVariants ( { intent : "secondary" , emphasis : "subtle" , size : "md" } ) }
66- href = "https://github.com/zenml-io/zenml/blob/main/examples/quickstart/README.md"
67- >
68- Open the Readme
69- </ a >
70- < a
71- target = "_blank"
72- rel = "noopener noreferrer"
73- className = { buttonVariants ( { intent : "primary" , emphasis : "subtle" , size : "md" } ) }
74- href = "https://docs.zenml.io/user-guides/starter-guide/create-an-ml-pipeline"
75- >
76- Browse our docs
77- </ a >
78- </ div >
79- </ Box >
54+ < OnboardingHelpBox href = "https://docs.zenml.io/user-guides/starter-guide/create-an-ml-pipeline" />
55+ </ div >
56+ </ ChecklistItem >
57+ ) ;
58+ }
59+
60+ export function DeployPipeline ( { active, completed, hasDownstreamStep } : OnboardingStep ) {
61+ return (
62+ < ChecklistItem
63+ active = { active }
64+ hasDownstream = { hasDownstreamStep }
65+ completed = { completed }
66+ title = "Deploy your pipeline (2 min)"
67+ >
68+ < div className = "flex flex-col gap-5" >
69+ < div className = "space-y-1" >
70+ < p > Deploy the pipeline</ p >
71+ < p className = "text-text-sm text-theme-text-secondary" >
72+ Deploying your pipeline provides you with an API endpoint that you can call to trigger a
73+ pipeline run.
74+ </ p >
75+ </ div >
76+ < Codesnippet code = "zenml pipeline deploy run.hello_pipeline" />
77+ < OnboardingHelpBox href = "https://docs.zenml.io/concepts/deployment" />
8078 </ div >
8179 </ ChecklistItem >
8280 ) ;
0 commit comments