@devries-cameron20 / t3code-1 / commits / 6a00484478
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): style Antigravity download progress with accessible system colors (#21874)

Co-authored-by: MONKE2525E <221282747+MONKE2525E@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 19, 2026 at 16:18 UTC 6a004844785a6f2367c5763dd0e615e8d24aa0cc
2 files changed +29 -2
apps/web/src/components/settings/ProviderSetupSection.browser.test.tsx
+24 -1
@@ -8,7 +8,7 @@ import {
8 } from "@t3tools/contracts";
9 import { act } from "react";
10 import { createRoot, type Root } from "react-dom/client";
11 -import { userEvent } from "vite-plus/test/browser";
11 +import { page, userEvent } from "vite-plus/test/browser";
12 import { afterEach, beforeEach, describe, expect, it, vi } from "vite-plus/test";
13
14 const setup = vi.hoisted(() => ({
@@ -293,6 +293,29 @@ describe("Antigravity setup", () => {
293 expect(occurrences("Checking the downloaded runtime.")).toBe(1);
294 });
295
296 + it("exposes download progress as a bounded progressbar only while the total is known", async () => {
297 + const downloading = (downloadedBytes: number, totalBytes: number | null) => {
298 + setup.installation = {
299 + ...setup.installation!,
300 + operationId: "install-1",
301 + phase: "downloading",
302 + downloadedBytes,
303 + totalBytes,
304 + };
305 + return publish();
306 + };
307 + const progressbar = page.getByRole("progressbar", { name: "Antigravity download" });
308 + await renderSetup();
309 +
310 + await downloading(40_000_000, 100_000_000);
311 + await expect.element(progressbar).toHaveValue(40_000_000);
312 + // The wire contract does not cap downloaded bytes at the advertised total.
313 + await downloading(110_000_000, 100_000_000);
314 + await expect.element(progressbar).toHaveValue(100_000_000);
315 + await downloading(40_000_000, null);
316 + expect(progressbar.query()).toBeNull();
317 + });
318 +
319 it("removes an owned damaged runtime only after confirmation", async () => {
320 setup.auth = authState({ phase: "idle", flowId: null, authorizationUrl: null });
321 setup.installation = {
apps/web/src/components/settings/ProviderSetupSection.tsx
+5 -1
@@ -218,7 +218,11 @@ function ProviderSetupActions({
218 installation.totalBytes > 0 ? (
219 <progress
220 aria-label="Antigravity download"
221 - className="block h-1 w-full accent-foreground"
221 + // Forced-colors mode repaints the track and fill as Canvas, and
222 + // appearance:auto cannot bring the native widget back: the
223 + // preflight border reset marks every <progress> as author-styled,
224 + // so Chromium keeps its fallback paint. Use system colors instead.
225 + className="block h-1 w-full appearance-none overflow-hidden rounded-full bg-muted forced-colors:border [&::-moz-progress-bar]:rounded-full [&::-moz-progress-bar]:bg-primary forced-colors:[&::-moz-progress-bar]:bg-[Highlight] [&::-webkit-progress-bar]:rounded-full [&::-webkit-progress-bar]:bg-muted [&::-webkit-progress-value]:rounded-full [&::-webkit-progress-value]:bg-primary forced-colors:[&::-webkit-progress-value]:bg-[Highlight]"
226 value={installation.downloadedBytes}
227 max={installation.totalBytes}
228 />