Skip to content

Studio: spider or bats on a third of Halloween pages each - #15770

Merged
shimmyshimmer merged 1 commit into
mainfrom
studio-spooky-visitor-odds
Oct 28, 2026
Merged

shimmyshimmer merged 1 commit into
mainfrom
studio-spooky-visitor-odds

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

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.

Raise each from a quarter to a third, still never both on one page.

Also drop the Halloween-only Images/Video border rule: the neutral gray
override it worked around is gone from main, so it no longer does anything
and it failed the contrast test that guards against that override.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@shimmyshimmer
shimmyshimmer merged commit 7065bf6 into main Oct 28, 2026
22 of 42 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-spooky-visitor-odds branch October 28, 2026 13:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T13:25:36.885565Z 7065bf6 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 7065bf6c4d

ℹ️ 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".

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 28, 2026
shimmyshimmer added a commit that referenced this pull request Nov 1, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant