Repository navigation
Studio: modern toggles, 34 x 20 with a flat centred thumb - #14322
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
The run is against current main (360cd9a, which already includes the #14319 budget raise), and main builds within budget there with about 0.2 KB to spare, so the new |
## Problem `Frontend build + bundle sanity` is red again for PRs based on current main. Main builds over the startup budget: ``` eager startup JS: 6684.5 KB raw, 2012.8 KB transfer, 96 chunks over the startup budget: raw 6684.5 KB > 6684.4 KB ``` ## Measurement Exact totals, one machine and build, Node 24, 96 chunks throughout: | Commit | Raw (B) | Transfer (B) | |---|---|---| | 3c68c2a (#14324) | 6,844,622 | 2,061,046 | | ad2fc06 (#14329) | 6,844,459 | 2,061,006 | | 37f5374 (#14322, modern toggles) | 6,844,908 | 2,061,092 | #14322 adds 449 B raw / 86 B transfer. `switch.tsx` is a shared primitive that is already in the startup chunks, so this is ordinary growth and the chunk count is unchanged. #14329 had removed 163 B just before. ## Change `BUDGET` in `studio/frontend/scripts/check-bundle-budget.ts` is raised to the main build plus the same 160 B raw / 189 B transfer margin: `rawBytes` 6,845,068 and `transferBytes` 2,061,281. A comment entry records the numbers. ## Testing `npm ci && npm run build && npx tsx scripts/check-bundle-budget.ts` on this branch: `within budget (0.2 KB transfer, 0.2 KB raw to spare)`. On main, the over-budget output above.
What changed
Every toggle in Studio (
components/ui/switch.tsx, used across Settings and the app) gets a cleaner, more modern look:bg-input, and darkens slightly on hover. The on track stays--control-accent, so palettes keep their own colour, and hovering it darkens it a touch.Verification
npm run typecheckandnpm run buildpass; the tests that read the switch (general-settings-token-sync,account-permissions,export-hub-repo-required) pass. Biome reports nothing new inswitch.tsx.Settings > Appearance sidebar items, before and after at the same scale (before = this PR's merge base, same Studio and window, only
switch.tsxswapped).One checked toggle at 2x, enlarged: the same amount of track above and below the thumb.