Skip to content

Commit 98aadca

Browse files
committed
fix(copy): name the host in T3 Connect setup
1 parent b7837a6 commit 98aadca

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

‎apps/web/src/components/HostedEmptyState.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function HostedEmptyState() {
4242
{localEnvironmentOff
4343
? "Enable it in Connections, or connect another host."
4444
: cloudEnabled
45-
? "Your agents run on your host."
45+
? "Your agents run on your computer."
4646
: "Your agents run on your host. Start T3 Code there first."}
4747
</EmptyDescription>
4848
</EmptyHeader>

‎apps/web/src/components/cloud/ConnectOnboardingDialog.tsx‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
290291
function 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

Comments
 (0)