Skip to content

Commit 1b467d7

Browse files
committed
fix(settings): shorten antigravity setup copy
1 parent 7dcb508 commit 1b467d7

2 files changed

Lines changed: 12 additions & 22 deletions

File tree

‎apps/web/src/components/settings/ProviderSetupSection.tsx‎

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ export function ProviderSetupSection(props: ProviderSetupSectionProps) {
7272
<section aria-label="Antigravity setup" className="divide-y divide-border/50 text-xs">
7373
<SettingsRow
7474
title="Environment"
75-
description={<>Antigravity runs on {props.environmentLabel}.</>}
76-
status={!props.enabled ? "Enable it to use it in threads." : undefined}
75+
description={props.environmentLabel}
7776
control={
7877
!props.enabled && !props.readOnly ? (
7978
<Button size="sm" variant="outline" onClick={props.onEnable}>
@@ -83,14 +82,11 @@ export function ProviderSetupSection(props: ProviderSetupSectionProps) {
8382
}
8483
/>
8584
{props.readOnly ? (
86-
<SettingsRow
87-
title="Setup unavailable"
88-
description="This connection cannot change provider setup."
89-
/>
85+
<SettingsRow title="Setup unavailable" description="Provider setup is read-only." />
9086
) : props.provider?.setup === undefined ? (
9187
<SettingsRow
9288
title="Update required"
93-
description="Update this environment to install Antigravity and sign in with Google here."
89+
description="Update this environment to manage Antigravity."
9490
/>
9591
) : (
9692
<ProviderSetupActions
@@ -183,12 +179,12 @@ function ProviderSetupActions({
183179
: installation?.phase === "verifying"
184180
? "Checking the downloaded runtime."
185181
: installed
186-
? "Antigravity is installed."
182+
? "Installed."
187183
: usesCustomBinary
188184
? enabled
189185
? "The configured Antigravity runtime is unavailable."
190186
: "The configured Antigravity runtime has not been checked."
191-
: "Install the official Antigravity runtime before signing in.";
187+
: "Not installed.";
192188

193189
async function runCommand<A, E>(
194190
label: string,
@@ -271,24 +267,21 @@ function ProviderSetupActions({
271267
<div className="divide-y divide-border/50">
272268
<SettingsRow
273269
title="Runtime"
274-
description="Download and manage the official Antigravity runtime."
275270
status={
276271
<div className="space-y-2">
277272
{usesCustomBinary ? (
278273
<p className="text-muted-foreground">
279-
This instance uses the binary path below. Installing a managed runtime does not
280-
change that path.
274+
Uses the custom binary path below. Installation keeps that path.
281275
</p>
282276
) : null}
283277
{!installed && !usesCustomBinary && !installActive && installation?.totalBytes ? (
284278
<p className="text-muted-foreground">
285-
Downloads {Math.ceil(installation.totalBytes / 1_000_000)} MB from Google.
279+
{Math.ceil(installation.totalBytes / 1_000_000)} MB download.
286280
</p>
287281
) : null}
288282
{!installed && !provider.setup?.canInstall ? (
289283
<p className="text-muted-foreground">
290-
Automatic installation is unavailable here. Set an existing binary path below or use
291-
a supported remote environment.
284+
Automatic installation unavailable. Set a binary path or use another environment.
292285
</p>
293286
) : null}
294287
</div>
@@ -366,7 +359,6 @@ function ProviderSetupActions({
366359

367360
<SettingsRow
368361
title={methodLabel}
369-
description={phaseLabels.idle}
370362
control={
371363
<div className="flex min-w-0 flex-col gap-2 sm:max-w-56 sm:items-end sm:text-right xl:max-w-72">
372364
<p

‎packages/contracts/src/settings.ts‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ export const AntigravitySettings = makeProviderSettingsSchema(
654654
Schema.annotateKey({
655655
title: "Sign-in method",
656656
description:
657-
"Google account uses your Antigravity subscription. Gemini Enterprise needs a GCP project and location. API key and Agent Platform bill the credential you enter.",
657+
"Google accounts use your subscription; API keys and Agent Platform bill usage.",
658658
providerSettingsForm: {
659659
control: "select",
660660
options: ANTIGRAVITY_AUTH_METHODS,
@@ -666,8 +666,7 @@ export const AntigravitySettings = makeProviderSettingsSchema(
666666
Schema.withDecodingDefault(Effect.succeed("")),
667667
Schema.annotateKey({
668668
title: "API key",
669-
description:
670-
"Gemini API key, or a Vertex AI express key for Agent Platform. Stored in plain text on this environment.",
669+
description: "Gemini or Vertex AI express key. Stored in plain text.",
671670
providerSettingsForm: {
672671
control: "password",
673672
placeholder: "Optional",
@@ -688,16 +687,15 @@ export const AntigravitySettings = makeProviderSettingsSchema(
688687
Schema.withDecodingDefault(Effect.succeed("")),
689688
Schema.annotateKey({
690689
title: "GCP location",
691-
description: "Region for Gemini Enterprise or Agent Platform, such as us-central1.",
690+
description: "Region for Gemini Enterprise or Agent Platform.",
692691
providerSettingsForm: { placeholder: "us-central1", clearWhenEmpty: "omit" },
693692
}),
694693
),
695694
binaryPath: TrimmedString.pipe(
696695
Schema.withDecodingDefault(Effect.succeed("")),
697696
Schema.annotateKey({
698697
title: "Binary path",
699-
description:
700-
"Optional path to the official Antigravity ACP executable. Leave empty for automatic selection.",
698+
description: "Custom ACP executable. Leave empty to select automatically.",
701699
providerSettingsForm: { placeholder: "Automatic", clearWhenEmpty: "persist" },
702700
}),
703701
),

0 commit comments

Comments
 (0)