| ... | ... | @@ -169,6 +169,20 @@ function ProviderSetupActions({ |
| 169 | 169 | const authorizationUrl = auth?.phase === "waiting" ? auth.authorizationUrl : null; |
| 170 | 170 | const queryError = authQuery.error ?? installQuery.error; |
| 171 | 171 | const actionsDisabled = pendingLabel !== null || queryError !== null; |
| 172 | const installationStatusMessage = |
| 173 | installation?.phase === "downloading" |
| 174 | ? `Downloading ${(installation.downloadedBytes / 1_000_000).toFixed(1)} MB${installation.totalBytes === null ? "" : ` of ${(installation.totalBytes / 1_000_000).toFixed(1)} MB`}.` |
| 175 | : installation?.phase === "extracting" |
| 176 | ? "Extracting Antigravity." |
| 177 | : installation?.phase === "verifying" |
| 178 | ? "Checking the downloaded runtime." |
| 179 | : installed |
| 180 | ? "Antigravity is installed." |
| 181 | : usesCustomBinary |
| 182 | ? enabled |
| 183 | ? "The configured Antigravity runtime is unavailable." |
| 184 | : "The configured Antigravity runtime has not been checked." |
| 185 | : "Install the official Antigravity runtime before signing in."; |
| 172 | 186 | |
| 173 | 187 | async function runCommand<A, E>( |
| 174 | 188 | label: string, |
| ... | ... | @@ -252,19 +266,7 @@ function ProviderSetupActions({ |
| 252 | 266 | <div className="grid gap-2"> |
| 253 | 267 | <p className="font-medium">Runtime</p> |
| 254 | 268 | <p role="status" className="text-muted-foreground"> |
| 255 | | {installation?.phase === "downloading" |
| 256 | | ? `Downloading ${(installation.downloadedBytes / 1_000_000).toFixed(1)} MB${installation.totalBytes === null ? "" : ` of ${(installation.totalBytes / 1_000_000).toFixed(1)} MB`}.` |
| 257 | | : installation?.phase === "extracting" |
| 258 | | ? "Extracting Antigravity." |
| 259 | | : installation?.phase === "verifying" |
| 260 | | ? "Checking the downloaded runtime." |
| 261 | | : installed |
| 262 | | ? "Antigravity is installed." |
| 263 | | : usesCustomBinary |
| 264 | | ? enabled |
| 265 | | ? "The configured Antigravity runtime is unavailable." |
| 266 | | : "The configured Antigravity runtime has not been checked." |
| 267 | | : "Install the official Antigravity runtime before signing in."} |
| 269 | {installationStatusMessage} |
| 268 | 270 | </p> |
| 269 | 271 | {installation?.phase === "downloading" && |
| 270 | 272 | installation.totalBytes !== null && |
| ... | ... | @@ -276,7 +278,7 @@ function ProviderSetupActions({ |
| 276 | 278 | max={installation.totalBytes} |
| 277 | 279 | /> |
| 278 | 280 | ) : null} |
| 279 | | {installation?.message ? ( |
| 281 | {installation?.message && installation.message !== installationStatusMessage ? ( |
| 280 | 282 | <p className="text-muted-foreground [overflow-wrap:anywhere]">{installation.message}</p> |
| 281 | 283 | ) : null} |
| 282 | 284 | {usesCustomBinary ? ( |