Repository navigation
Studio: Trick or treat sidebar row with Halloween themes and spooky greetings - #15678
Conversation
…settings rows, pill theme options, two-color Halloween themes
…hue swatches and composer glow, inset sidebar X
…alentine and The Thing
…ing, Alien rename, vivid swatches in light mode
|
@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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6049ba3b0c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bebc9b41d3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
Codex Review: Didn't find any major issues. Keep it up! 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". |
Match the outline's proportions and stroke weight to the Noun Project pumpkin it is drawn from, keeping a rounded stem tip, and credit it.
Goth moves to crimson and silver on neutral black so it no longer reads like Coven's violet. Hexberry (hot pink with mint) and Candycorn (candy orange with sunny yellow) join the Halloween set, both with a composer glow and 2:1 light borders. Swatches drop their outline. Trick or Treat blends its yellow into purple and Candycorn shows the candy's white, orange and yellow bands.
…n sloth A Halloween theme now brings the odd spider dropping on its thread and bats crossing the window, with webs on half the pages in spots that change per page. A Spiders and bats switch in the Trick or Treat dialog turns them off; they default to on. With reduced motion the visitors fade in place instead of dropping and flying. Goth's main color is violet with crimson, Candycorn dark is brighter, the badge uses IconOven's jack-o'-lantern, and while spooky greetings are on the login screen shows one of the Halloween sloths.
A Halloween page now gets a spider or bats, a quarter of the time each and never both. The spider drops once and hangs until the page changes. Bats always cross the window and leave it, and their size no longer shortens the flight. With reduced motion the spider fades in and the bats fly without flapping; Studio's Reduce motion setting now wins over the system one. The spider is Font Awesome's, the bat Material Design Icons', the switch icon Fluent Emoji's spider web and the badge MingCute's pumpkin.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3785470aea
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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 dialog hid all overflow, which overrode DialogContent's vertical scroll, so on a short window the lower rows and Remove now were clipped. Hide only horizontal overflow.
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? 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". |
…15759) ## Summary `Repo tests (CPU, studio)` fails on main with two product slips on the new login and change-password layout from #15726 / #15678: ``` tests/studio/test_tauri_branding_contract.py::test_desktop_surfaces_do_not_restore_studio_branding studio/frontend/src/features/auth/components/auth-shell.tsx tests/studio/test_ui_font_scale_contract.py::test_no_raw_pixel_text_utilities features/auth/components/auth-form.tsx: text-[26px] ``` - **Branding:** the auth footer reads "Unsloth Studio". The app displays itself as "Unsloth" everywhere in the frontend (#14473, guarded by the branding contract), and this screen is the first one the desktop app shows. - **Font scale:** the auth title uses a raw `text-[26px]`, so it ignores the UI font-size preference while everything around it scales. ## Change - `auth-shell.tsx`: footer label "Unsloth Studio" becomes "Unsloth". - `index.css`: adds `--text-ui-28: calc(1.75rem * var(--ui-font-scale, 1))` between `--text-ui-25` and `--text-ui-30`, in the same form as the other `text-ui-*` tokens. - `auth-form.tsx`: the title uses `text-ui-28`. Every `text-ui-N` token renders at 0.9375 x N under the default 15px UI font size, so `text-ui-26` would have shrunk the title to 24.4px; `text-ui-28` lands on 26.25px, the same look as before, and now follows the font-size preference. ## Testing - `tests/studio/test_tauri_branding_contract.py` + `tests/studio/test_ui_font_scale_contract.py`: 2 failed on main, 22 passed with this change. - Before / after on the signed-out login page, built from the merge base and this head. Measured title size: 26px -> 26.25px at the default font size, and 26px -> 35px with the UI font scale at 1.25 (before ignores it). ## Screenshots Default font size: the footer now reads "Unsloth", the title is unchanged.  UI font scale 1.25: the title now scales with the rest of the card. 
On a Halloween theme, each page now gets a spider a third of the time and bats a third of the time, up from a quarter each. A page still never gets both, and the remaining third gets neither. This also removes a CSS rule left over from the two Halloween and light-border PRs landing together. #15678 kept Halloween themes out of the Images/Video gray control border, and #15726 removed that gray border for every theme. On main the Halloween rule no longer changes anything, and it made `tests/contrast-slider.test.ts` fail ("text and lines head away from whatever they are drawn on"), which checks that no such override remains. Images and Video still use each Halloween theme's own 2:1 border through the normal palette tokens. ### Verification - `npm run typecheck` and `npm run build` pass. - `tests/halloween-trick-or-treat.test.ts` (16) and `tests/contrast-slider.test.ts` (22) pass. - `npm test`: 14362 passed, 3 failed. The 3 failures are desktop shutdown tests ("macOS termination checks unsaved transcripts before allowing exit", "a quit with no window on screen raises no overlay", "both sides agree on the event names"); they fail the same way on main without this change. ### Not tested here The new odds were not watched in a running Studio on this branch: this changes two constants and the test that pins them.
…rowth (#15822) ## Summary `Frontend build + bundle sanity` fails on main (seen on #15806, #15799, #15798, #15795; reproduces locally on `556b28bb40`): ``` eager startup JS: 5837.8 KB raw, 1806.0 KB transfer, 85 chunks over the startup budget: transfer 1806.0 KB > 1795.7 KB, raw 5837.8 KB > 5819.8 KB ``` Building every frontend commit since the last budget base (`8222149ee`) and measuring the eager set the same way `scripts/check-bundle-budget.ts` does: | commit | raw B | transfer B | |---|---|---| | `ed9857c0c3` (#15718) | 5,942,150 | 1,836,750 | | `39b8a6ce13` (#15678, Trick or treat row) | 5,972,134 | 1,847,702 | | `556b28bb40` (main) | 5,977,895 | 1,849,311 | Every other step in the range moves by 0.0 to 0.5 KB. #15678 added 29,984 B raw / 10,952 B transfer in one step and merged without re-measuring. #15485 then raised the budget by its own 1,953 B, but measured against `8222149ee`, a base from before #15678, so main has been over ever since. ## Change `BUDGET` in `studio/frontend/scripts/check-bundle-budget.ts` is raised by #15678's measured growth (+29,984 B raw, +10,952 B transfer), with the measurement recorded next to the earlier raises. Main is then within budget with 0.5 KB transfer / 11.3 KB raw to spare, so the next unmeasured growth still fails here. I tried the gate's first suggestion before raising it. Loading the Trick or treat dialog on first open (`React.lazy` in `app-sidebar.tsx`) saves only 10.4 KB raw / 3.0 KB transfer, and it raises the startup set from 85 to 90 chunks: the case the script warns about, where a dynamic import splits shared modules into extra startup chunks. The rest of #15678's weight is its Halloween color themes in `features/settings/lib/color-themes.ts`, which the theme store reads at startup to apply the saved theme. So that is not a laziness fix, and I left it out. ## Testing - `npm run build && npm run bundle:check`: over on main, `within budget (0.5 KB transfer, 11.3 KB raw to spare)` with this change. - `tests/bundle-budget-cli.test.ts`, `tests/bundle-budget-closure.test.ts`: 43 passed. - Measurements on Node 24.22.1, one machine and build, as the earlier entries.
## What changed Brings back the login and setup page design from #15731: a compact, centered accent Login button and no footer under the card. #15731 merged at 10:00 UTC; #15726 merged 48 minutes later with its own login rewrite (full-width button, a new `AuthShell` card and a sloth + "Unsloth" footer) and replaced it. This restores #15731's `auth-form.tsx`, `login-page.tsx` and `change-password-page.tsx`, and removes `auth-shell.tsx`, which nothing else uses. Kept from later PRs: - The Halloween sloth on the login card (#15678). - The title still follows the UI font size (#15759), at #15731's 24px base. Login page, left is main, right is this branch.  ## How it was verified - `npm run typecheck`, `npm run build`, `npm test` (14371 pass, 0 fail). - Local Studio: the login page against the `main` bundle, and against `main` as of #15731.
…en extras (#16392) Trick or Treat now sits in Settings > Appearance > Theme > More themes all year, right after Macaron (Pina Paraiso moves to the end). Dark mode keeps its October colours. Light mode is reworked to match it: a lilac page with purple switches, sliders and focus rings, gold buttons (`#f0b400`) and gold links and composer actions (`#d09a00`). That text gold sits below the 2.5:1 accent floor on purpose, so the floor test exempts Trick or Treat's light mode only. The rest of the Halloween work from #15678 and #15770 is removed so it can come back cleanly next year: - Sidebar "Trick or treat" row, its dialog and the "Trick or treat" settings switch - Spooky chat greetings and Halloween login sloths (and their four images) - Spider and bat decorations and their CSS - The other ten Halloween palettes (Pumpkin, Coven, Candycorn, Bloody Valentine, Hexberry, Alien, Ghost Ship, The Thing, Full Moon, Goth) - `halloween.*`, `settings.appearance.trickOrTreat.*` and `settings.appearance.palette.halloween` in all 25 locales Anyone who saved a retired palette falls back to Standard: the backend already drops unknown palettes from stored personalization, and the client rejects unknown ids. ### Verification - `npm run typecheck`, `npm test` (14555 pass), `npm run build` - `pytest studio/backend/tests/test_personalization_settings.py` - Local Studio: Trick or Treat is listed under More themes, picking it applies `#1a0b24` / `#ffc400` in dark mode and `#f8f2ff` with `#f0b400` buttons in light mode, and it is still set after a reload. A stored `pumpkin` palette (both server and local) loads as Standard. No Halloween row or text appears in Settings or the sidebar.
During October, the sidebar shows a Trick or treat… row just above More, like Slack's seasonal panel. Hovering the row shows an X that hides it for the rest of that October without touching the theme.
The row opens a "Trick or Treat?!" dialog. Its night-sky header is tinted by the active theme, and it has three options:
Choose a frightful theme. A grid of eleven Halloween themes, each with a light and a dark mode.
Spooky greetings. A switch. While it is on, new chats open with one of seven Halloween lines:
On October 30 and 31, "Happy Halloween, {name}" joins them. Each line shows one of its own Halloween sloth pictures (trick-or-treat, witch, vampire, dead and shock sloths; four of them are new art in
public/Sloth emojis/).Spiders and bats. A switch, on by default. While a Halloween theme is active, each page gets a spider (a quarter of the time) or a flock of bats (another quarter), never both. The spider drops on its thread and hangs until the page changes; bats cross the top of the window and fly off it. Half the pages also get one or two cobwebs, in spots and shapes that change per page and never by the sidebar. Nothing is clickable and the layer sits under dialogs. With reduced motion the spider fades in place and the bats fly without flapping; Studio's own Reduce motion setting overrides the system one, and the global reduced-motion rules are kept from cutting these to nothing.
Trick or treat! Picks a random Halloween theme and shows it selected in the grid.
The footer says Unsloth returns to normal at midnight on November 1. Next to it, Remove now puts back the theme in use before the first Halloween pick, turns the greetings off and hides the row for the rest of October.
During October, Settings > Appearance also gets:
The dialog's badge is MingCute's pumpkin (Apache-2.0) in a filled circle. The spider is Font Awesome 7's (CC BY 4.0), the bat Material Design Icons' (Apache-2.0), and the Spiders and bats row uses Fluent Emoji's high-contrast spider web (MIT); each is credited where it is drawn.
While spooky greetings are on, the login screen shows one of the Halloween sloths instead of the waving one.
Themes
Each theme pairs two hues, the way Neon Cyberpunk does:
In light mode each Halloween theme's border is 2:1 against its background, and the Images and Video pages use that border instead of their neutral gray, which disappeared on the tinted backgrounds.
Nine themes give the composer a soft glow in the accent color, with no outline. The glow is one layer that reaches the same distance on every side. Trick or Treat and Goth keep the stock composer shadow, since a colored halo does not suit them.
The themes reuse the flavor-theme
--th-*seed mapping inindex.css, so contrast adjustment and custom colors still apply. Both hues meet the existing 2.5:1 accent-on-surface floor in light and dark mode, and that floor is now tested for the Halloween themes too.Screenshots
The sidebar row sits above More. Hovering it shows the hide button:
The dialog in the Bloody Valentine theme:
The theme grid in light mode. Swatches always use the vivid dark-mode accent:
The Settings > Appearance rows, available in October:
The theme grid. Swatches use each theme's dark accent; Trick or Treat blends its yellow into purple, Goth its violet into crimson, and Candycorn shows the candy's white, orange and yellow:
The dialog with the Spiders and bats switch:
Goth in dark mode with two cobwebs and a spider on its thread:
Goth, Coven, Hexberry and Candycorn, dark on the left and light on the right (an earlier capture: Goth has since moved to violet and Candycorn dark to brighter yellow and orange):
An earlier capture of the first nine themes in both modes (Goth has since moved to violet with crimson):
How it works
features/halloween/halloween-store.tskeeps three things in localStorage underunsloth_halloween: the greetings switch, the year the row was hidden, and the theme to restore. The key is inACCOUNT_CHROME_KEYS, so it survives an account switch the same waypalettedoes.syncAcrossWindows.paletteLiteral inroutes/settings.py, so personalization sync stores them instead of dropping them;public/theme-boot.js, so the first paint applies them.en.tsand in every overlay, andi18n:check:strictpasses.Verification
npm run typecheckpasses.npm run i18n:check:strictpasses.npm run buildsucceeds.npm testpasses: 14264 tests, 0 failures. This includes the newtests/halloween-trick-or-treat.test.ts, which covers:{name};test_personalization_settings.pypasses (43 tests).data-paletteand records the restore target;PUT /api/settings/personalization. The backend kept every id.Not tested here