@@ -5,7 +5,7 @@ import { SourcebotLogo } from "@/app/components/sourcebotLogo"
55import { auth } from "@/auth" ;
66import { WelcomeStep } from "./components/welcomeStep" ;
77import { OwnerSignupStep } from "./components/ownerSignupStep" ;
8- import { ConfigureOrgStep } from "./components/configureOrgStep " ;
8+ import { AccessSettingsStep } from "./components/accessSettingsStep " ;
99import { TrialStep , TrialStepTitle , TrialStepSubtitle } from "./components/trialStep" ;
1010import { AlreadyLicensedStep } from "./components/alreadyLicensedStep" ;
1111import { SINGLE_TENANT_ORG_ID } from "@/lib/constants" ;
@@ -116,7 +116,12 @@ export default async function Onboarding(props: OnboardingProps) {
116116 </ a >
117117 </ >
118118 ) ,
119- component : < ConfigureOrgStep nextStep = { steps . length + 1 } /> ,
119+ component : (
120+ < AccessSettingsStep
121+ nextStep = { steps . length + 1 }
122+ org = { org }
123+ />
124+ )
120125 } ) ;
121126
122127 const finalStepIndex = steps . length ;
@@ -156,38 +161,35 @@ export default async function Onboarding(props: OnboardingProps) {
156161 { steps . map ( ( step , index ) => (
157162 < div key = { step . id } className = "flex items-center group" >
158163 < div className = "flex items-center space-x-4 flex-1" >
159- < div className = "relative" >
160- { /* Connecting line */ }
161- { index < steps . length - 1 && (
162- < div
163- className = { `absolute top-10 left-1/2 transform -translate-x-1/2 w-0.5 h-8 transition-all duration-300 ${
164- index < currentStep ? "bg-primary" : "bg-border"
165- } `}
166- />
167- ) }
168- { /* Circle - positioned above the line with z-index */ }
169- < div
170- className = { `relative z-10 w-10 h-10 rounded-full border-2 flex items-center justify-center font-semibold text-sm transition-all duration-300 ${
171- index < currentStep
172- ? "bg-primary border-primary text-primary-foreground"
173- : index === currentStep
174- ? "bg-primary border-primary text-primary-foreground scale-110 shadow-lg"
175- : "bg-background border-border text-muted-foreground"
176- } `}
177- >
178- { index < currentStep ? (
179- < svg className = "w-5 h-5" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
180- < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2.5 } d = "M5 13l4 4L19 7" />
181- </ svg >
182- ) : (
183- < span > { index + 1 } </ span >
184- ) }
185- </ div >
186- </ div >
164+ < div className = "relative" >
165+ { /* Connecting line */ }
166+ { index < steps . length - 1 && (
167+ < div
168+ className = { `absolute top-10 left-1/2 transform -translate-x-1/2 w-0.5 h-8 transition-all duration-300 ${ index < currentStep ? "bg-primary" : "bg-border"
169+ } `}
170+ />
171+ ) }
172+ { /* Circle - positioned above the line with z-index */ }
173+ < div
174+ className = { `relative z-10 w-10 h-10 rounded-full border-2 flex items-center justify-center font-semibold text-sm transition-all duration-300 ${ index < currentStep
175+ ? "bg-primary border-primary text-primary-foreground"
176+ : index === currentStep
177+ ? "bg-primary border-primary text-primary-foreground scale-110 shadow-lg"
178+ : "bg-background border-border text-muted-foreground"
179+ } `}
180+ >
181+ { index < currentStep ? (
182+ < svg className = "w-5 h-5" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
183+ < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2.5 } d = "M5 13l4 4L19 7" />
184+ </ svg >
185+ ) : (
186+ < span > { index + 1 } </ span >
187+ ) }
188+ </ div >
189+ </ div >
187190 < div className = "flex-1" >
188- < div className = { `font-medium text-sm transition-all duration-200 ${
189- index <= currentStep ? "text-foreground" : "text-muted-foreground"
190- } `} >
191+ < div className = { `font-medium text-sm transition-all duration-200 ${ index <= currentStep ? "text-foreground" : "text-muted-foreground"
192+ } `} >
191193 { step . title }
192194 </ div >
193195 </ div >
0 commit comments