Skip to content

Dress the office for Christmas through December, pets included - #115

Merged
tuliren merged 3 commits into
mainfrom
claude/project-thread-ac5fyk
Nov 30, 2026
Merged

tuliren merged 3 commits into
mainfrom
claude/project-thread-ac5fyk

Conversation

@tuliren

@tuliren tuliren commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by T · project thread

Builds on #114 (merged).

What

Until a viewer picks a theme, the season picks it: Christmas all December (the viewer's local time), the plain office the rest of the year. A theme picked in the settings card still wins and is remembered as before.

  • theme.ts: seasonalTheme(at) and pickedTheme(stored) (a stored id, or null when nothing was picked).
  • renderer.ts: new RendererOptions.calendar clock. The app (main.ts) and the website hero (hero.ts) pass systemClock. The stories pass nothing, so they and Chromatic stay plain whatever the month. The renderer still never reads the ambient clock. The season is checked again each wall-clock minute, so an office left open over midnight on 30 November dresses itself.
  • Settings: the theme row gets a reset key ("Let the season pick the theme again"), like the weather's. It clears the stored pick and is disabled until a theme has been picked by hand. The label reads none · picked while a pick holds.
  • Pets (pet.ts): in the Christmas theme the dog wears a green zigzag sweater over its middle (DOG_SWEATER, drawn in the body's frame so it follows sitting and lying), and the cat a Santa hat between its ears. The hat's colours moved to SANTA_HAT in sweater.ts, which the human's hat now shares.
  • Changeset: folded into the still-unreleased christmas-theme.md, because its "off by default" stopped being true.

Testing

  • Drew the dog and the cat walking, sitting and napping with the theme on, to check the sweater and the hat in each pose.

  • yarn lint, yarn typecheck, yarn test all pass. New cases in theme.test.ts cover the month edges (30 Nov 23:59, 1 Dec, 31 Dec 23:59, 1 Jan) and the stored picks.

  • Ran the viewer in Playwright with a faked clock: 5 December with nothing stored shows christmas with reset disabled; 29 November shows none; 5 December with none stored shows none · picked with reset enabled.

@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agentopia Ready Ready Preview Nov 30, 2026 6:08am UTC

Request Review

@tuliren tuliren changed the title Dress the office for Christmas through December Dress the office for Christmas through December, pets included Nov 30, 2026
@tuliren
tuliren marked this pull request as ready for review November 30, 2026 06:13
@tuliren
tuliren merged commit 30682b3 into main Nov 30, 2026
9 of 10 checks passed
@tuliren
tuliren deleted the claude/project-thread-ac5fyk branch November 30, 2026 06:15

This branch was successfully deployed

1 active deployment
Preview — 973507dc Deployed Nov 30, 2026 by vercel[bot]
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