@@ -64,6 +64,11 @@ function ConfiguredConnectOnboardingDialog() {
6464 primaryEnvironmentId === null ? environmentsReady : primarySessionState . _tag !== "Initial" ;
6565
6666 const controller = useCloudLinkController ( ) ;
67+ const hostLabel = controller . linkState . target ?. label ?? "this host" ;
68+ const stepLabels : Record < OnboardingStep , string > = {
69+ publish : `Share ${ hostLabel } ` ,
70+ devices : "Connect devices" ,
71+ } ;
6772 const showPublishStep = canManageRelay && controller . linkState . target !== null ;
6873 const steps : ReadonlyArray < OnboardingStep > = showPublishStep
6974 ? [ "publish" , "devices" ]
@@ -203,7 +208,7 @@ function ConfiguredConnectOnboardingDialog() {
203208 >
204209 { steps . length > 1 ? (
205210 < WizardSteps
206- steps = { steps . map ( ( id ) => STEP_LABELS [ id ] ) }
211+ steps = { steps . map ( ( id ) => stepLabels [ id ] ) }
207212 currentStep = { steps . indexOf ( step ) }
208213 isStepDisabled = { ( ) => isApplying }
209214 onStepChange = { ( index ) => {
@@ -223,6 +228,7 @@ function ConfiguredConnectOnboardingDialog() {
223228 < WizardPanel >
224229 { step === "publish" ? (
225230 < PublishStep
231+ hostLabel = { hostLabel }
226232 exposeEnvironment = { exposeEnvironment }
227233 publishAgentActivity = { publishAgentActivity }
228234 disabled = { isApplying || ! canManageRelay || linkStateData === null }
@@ -282,19 +288,16 @@ function ConfiguredConnectOnboardingDialog() {
282288 ) ;
283289}
284290
285- const STEP_LABELS : Record < OnboardingStep , string > = {
286- publish : "Access and activity" ,
287- devices : "Connect devices" ,
288- } ;
289-
290291function PublishStep ( {
292+ hostLabel,
291293 exposeEnvironment,
292294 publishAgentActivity,
293295 disabled,
294296 operationError,
295297 onExposeEnvironmentChange,
296298 onPublishAgentActivityChange,
297299} : {
300+ readonly hostLabel : string ;
298301 readonly exposeEnvironment : boolean ;
299302 readonly publishAgentActivity : boolean ;
300303 readonly disabled : boolean ;
@@ -307,7 +310,7 @@ function PublishStep({
307310 < div className = "rounded-lg border" >
308311 < OnboardingToggleRow
309312 title = "Allow access to this environment through T3 Connect"
310- description = " Connect to this host from other devices signed in to your account."
313+ description = { ` Connect to ${ hostLabel } from other devices signed in to your account.` }
311314 checked = { exposeEnvironment }
312315 disabled = { disabled }
313316 onCheckedChange = { onExposeEnvironmentChange }
0 commit comments