[PR #7835] [MERGED] feat(mari): dressed-up Mari follows the Halloween turn-off and preview #7961

Closed
opened 2026-10-24 04:09:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7835
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/mari-pack-follows-theme


📝 Commits (3)

  • d83b5ce feat(mari): dressed-up Mari follows the Halloween turn-off and preview
  • 86ffae4 test(mari): fix platform shortcuts and saved settings fixtures
  • 163f5d1 Merge branch 'staging' into feat/mari-pack-follows-theme

📊 Changes

12 files changed (+388 additions, -141 deletions)

View changed files

📝 e2e/mari-appearance-pack.e2e.ts (+137 -24)
📝 e2e/seasonal-halloween.e2e.ts (+8 -0)
📝 packages/client/src/components/chat/mari/use-mari-workspace-run.ts (+2 -10)
📝 packages/client/src/components/layout/omnibar/OmnibarSettingsMenu.tsx (+5 -6)
📝 packages/client/src/hooks/use-mari-appearance-pack.ts (+3 -8)
📝 packages/client/src/hooks/use-seasonal-theme.ts (+9 -28)
📝 packages/client/src/lib/mari-work-animations.ts (+19 -33)
📝 packages/client/src/lib/seasonal-themes.ts (+44 -1)
📝 packages/client/src/main.tsx (+5 -7)
📝 packages/client/src/stores/ui.store.ts (+56 -7)
📝 scripts/regressions/mari-appearance-pack.regression.mjs (+59 -15)
📝 scripts/regressions/seasonal-themes.regression.ts (+41 -2)

📄 Description

Release notes: leave this PR out of the changelog and the What's New text; it is a Halloween surprise.

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No linked issue. This is a follow-up the maintainer asked for to #7819 (dated appearance packs) and #7825 (one shared window for dated looks), both by @Gunterlie and both merged. If an issue is wanted for tracking, it should be opened before this is merged.

Why this change

  • The dressed-up Professor Mari is meant to switch on and off with the Halloween theme. After #7825 she already followed the shared window and Settings → General → "Disable seasonal ME themes". She did not follow the greeting's "Turn it off" button: someone who turned Halloween off there lost the orange look but kept the raccoon costume. The ?seasonalPreview=halloween link also showed the theme without the costume, so the preview could not show what users will see.

What changed

  • When you press "Turn it off" in the Halloween greeting, Professor Mari's raccoon costume comes off along with the theme. That lasts for this year only, so both come back next Halloween.

  • The ?seasonalPreview=halloween link now shows Professor Mari in costume on any date, and the preview's own "Turn it off" removes the costume along with the theme.

  • In a preview, picking another outfit works for that page only, the same way the preview's greeting and "Turn it off" are never saved. Trying the preview never opts you out of the real Halloween costume. The outfit you pick is still saved as your own choice, as before.

  • Unchanged: the shared October 30 00:00 to November 1 12:00 window, the Settings toggle, and picking another outfit during Halloween (that pick wins for the rest of that year's Halloween).

  • Under the hood:

    • The raccoon pack now names its theme (season: "halloween") instead of carrying its own dates.
    • Every place that decides Mari's outfit (Home, the omnibar's pack chooser, her window runs and the first-paint preload) goes through one shownMariAppearancePack helper in ui.store.ts. That helper reads the theme's own decision, seasonalThemeFor in lib/seasonal-themes.ts, which useSeasonalTheme uses too.
    • The preview's greeting and "Turn it off" records moved from hook state into an unsaved store field (seasonalPreview) so Mari can see them. That field and the preview's outfit opt-out (mariSeasonPreviewOptOut) are never saved or synced.
    • HALLOWEEN_SEASON, MariSeason and isInMariSeason moved unchanged from mari-work-animations.ts to seasonal-themes.ts, which is now their only user. This also lets the plain-Node .mjs regression load the theme module.
  • Browser fixtures use the app's platform check for Cmd+K/Ctrl+K, clear the previous project's synced settings before seeding Golden, and wait for the server to save a selection or greeting before the existing reload assertions.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

The agent ran these locally (the boxes above are left for a human):

  • pnpm check at 86ffae48c7a1416538465cf711ed8c29eb6235cb: exit 0; one existing HomeProfessorMariChat.tsx dependency warning remains.
  • Original implementation regressions at d83b5ce685c4639b76dc822b1d09dc6f4c40da4f (the follow-up changes only browser fixtures): node scripts/run-regressions.mjs --filter for mari-appearance-pack.regression.mjs, seasonal-themes.regression.ts, command-center.regression.ts and mari/work-card-timing.regression.ts: all passed.
    • The pack regression checks the costume against the theme hour by hour from October 27 to November 2, and minute by minute at both ends. It also covers the toggle, this year's greeting "Turn it off" (the costume is back in 2027), the preview (even with the toggle on or this year turned off) and the preview's own "Turn it off".
    • The seasonal regression drives the store: in a preview, the greeting, "Turn it off" and an outfit pick change nothing that is saved or synced.
  • Mutation checks:
    • Making seasonalThemeFor ignore this year's "Turn it off" fails the pack regression.
    • Writing the preview's outfit pick to the saved opt-out fails the seasonal regression.
  • pnpm exec playwright test e2e/mari-appearance-pack.e2e.ts e2e/seasonal-halloween.e2e.ts --workers=1 at 86ffae48c7a1416538465cf711ed8c29eb6235cb: all 18 passed, 6 each in desktop Chromium, mobile Chromium and mobile WebKit, using isolated app servers.
  • The completed aggregate local CodeRabbit review is recorded below.

Browser fixture proof boundary

The fixed browser clock gives successive edits identical sync timestamps. Captured requests show an older saved value and a greeting write aborted by reload with the same timestamp; the mobile projects also share a server, so an October setting could override a June seed. The fixtures now clear that prior server state and confirm the expected server value before reloading. Every original availability, selection, image, reload and preview assertion remains. This proves reload after a confirmed save; it does not claim new sync behavior or prove an immediate real-time reload before a save finishes.

Manual verification notes

  • Manually verify in a browser with the clock on October 31 that the greeting's "Turn it off" removes both the orange theme and Professor Mari's raccoon costume on Home, in the omnibar and in her window, and that a reload keeps both off.
  • Manually verify that /?seasonalPreview=halloween on a normal day shows Mari in the raccoon costume, that picking Safari in the omnibar works on that page, and that after a reload without the link the saved choice is Safari and nothing records a Halloween opt-out.
  • Manually verify that the preview's "Turn it off" removes the costume and the theme, and that a fresh preview shows them again.
  • Manually verify on a mobile viewport.

Completed aggregate local review

  • CodeRabbit completed a committed review of aggregate d3a4c0ee41a2ab90dfba454e2049d436d03deb0d against staging 9565a274111ac251ade43f7a2f1f8436a16b7a86. All 26 changed files were reviewed: #7835 at 163f5d11e820460e2624a2c5797c74ae51ba0062, #7836 at 829b16aa7fe6d1be6b4e5fc922fbfe0fcebf5077, and #7838 at acc5ae52b3cbcdae22cda3a6fbb664008910b288.
  • This PR's 12 changed files were included. The aggregate preserves the constituent content; its only additional content in these files is a current-staging Basic Auth troubleshooting note in #7838. No dependency install or build was run for the review-only aggregation; the per-PR validation above remains the build/test evidence.
  • The review reported one minor documentation finding, mapped to #7838 docs/installation/containers.md: add translation tracking. Dismissed because open #7839 already names that guide in its title and body and describes the changed update/rollback guidance. #7838 already links it under Linked issue and Docs and release impact. No local findings remain unresolved.
  • This records local source-review coverage only. Each PR's required hosted checks and substantive final-head review remain separate merge gates.

Completed hosted review

  • CodeRabbit completed a substantive review of exact head 163f5d11e820460e2624a2c5797c74ae51ba0062: the assessment and final risk coverage both name that commit, with kind: reviewed.
  • Outcome: one minor finding dismissed as intentional existing behavior. Ordinary appearance-pack choices remain saved, as the supplied description and manual plan explicitly require; only seasonal greeting, Turn it off and outfit opt-out records are preview-local. The baseline action already saved ordinary choices, the store regression explicitly retains Safari, and the browser case waits for saved Safari and displays it after preview Turn it off. The requested transient base-pack behavior would change that contract. Code-based dismissal and evidence.
  • No source or test changes were made for this finding; all original assertions remain. The review thread was resolved after verifying the intended behavior.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

There are no docs, changelog or What's New changes on purpose: it is a Halloween surprise.

UI evidence (if applicable)

No screenshots: the new behavior is covered by the Playwright checks listed above.

Summary by CodeRabbit

  • New Features
    • Seasonal previews can display themed greetings and appearance packs outside their usual dates without changing saved preferences.
    • Greeting and outfit choices made during a preview apply only for the current page load. Outside previews, seasonal greetings and opt-outs can be saved for the year.
  • Updates
    • Seasonal appearance packs now follow the active seasonal theme. Choosing a different pack while a seasonal outfit is active opts out of that outfit for the year while preserving the chosen appearance.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7835 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/mari-pack-follows-theme` --- ### 📝 Commits (3) - [`d83b5ce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d83b5ce685c4639b76dc822b1d09dc6f4c40da4f) feat(mari): dressed-up Mari follows the Halloween turn-off and preview - [`86ffae4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/86ffae48c7a1416538465cf711ed8c29eb6235cb) test(mari): fix platform shortcuts and saved settings fixtures - [`163f5d1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/163f5d11e820460e2624a2c5797c74ae51ba0062) Merge branch 'staging' into feat/mari-pack-follows-theme ### 📊 Changes **12 files changed** (+388 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `e2e/mari-appearance-pack.e2e.ts` (+137 -24) 📝 `e2e/seasonal-halloween.e2e.ts` (+8 -0) 📝 `packages/client/src/components/chat/mari/use-mari-workspace-run.ts` (+2 -10) 📝 `packages/client/src/components/layout/omnibar/OmnibarSettingsMenu.tsx` (+5 -6) 📝 `packages/client/src/hooks/use-mari-appearance-pack.ts` (+3 -8) 📝 `packages/client/src/hooks/use-seasonal-theme.ts` (+9 -28) 📝 `packages/client/src/lib/mari-work-animations.ts` (+19 -33) 📝 `packages/client/src/lib/seasonal-themes.ts` (+44 -1) 📝 `packages/client/src/main.tsx` (+5 -7) 📝 `packages/client/src/stores/ui.store.ts` (+56 -7) 📝 `scripts/regressions/mari-appearance-pack.regression.mjs` (+59 -15) 📝 `scripts/regressions/seasonal-themes.regression.ts` (+41 -2) </details> ### 📄 Description Release notes: leave this PR out of the changelog and the What's New text; it is a Halloween surprise. > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue No linked issue. This is a follow-up the maintainer asked for to #7819 (dated appearance packs) and #7825 (one shared window for dated looks), both by @Gunterlie and both merged. If an issue is wanted for tracking, it should be opened before this is merged. ## Why this change - The dressed-up Professor Mari is meant to switch on and off with the Halloween theme. After #7825 she already followed the shared window and Settings → General → "Disable seasonal ME themes". She did not follow the greeting's "Turn it off" button: someone who turned Halloween off there lost the orange look but kept the raccoon costume. The `?seasonalPreview=halloween` link also showed the theme without the costume, so the preview could not show what users will see. ## What changed - When you press "Turn it off" in the Halloween greeting, Professor Mari's raccoon costume comes off along with the theme. That lasts for this year only, so both come back next Halloween. - The `?seasonalPreview=halloween` link now shows Professor Mari in costume on any date, and the preview's own "Turn it off" removes the costume along with the theme. - In a preview, picking another outfit works for that page only, the same way the preview's greeting and "Turn it off" are never saved. Trying the preview never opts you out of the real Halloween costume. The outfit you pick is still saved as your own choice, as before. - Unchanged: the shared October 30 00:00 to November 1 12:00 window, the Settings toggle, and picking another outfit during Halloween (that pick wins for the rest of that year's Halloween). - Under the hood: - The raccoon pack now names its theme (`season: "halloween"`) instead of carrying its own dates. - Every place that decides Mari's outfit (Home, the omnibar's pack chooser, her window runs and the first-paint preload) goes through one `shownMariAppearancePack` helper in `ui.store.ts`. That helper reads the theme's own decision, `seasonalThemeFor` in `lib/seasonal-themes.ts`, which `useSeasonalTheme` uses too. - The preview's greeting and "Turn it off" records moved from hook state into an unsaved store field (`seasonalPreview`) so Mari can see them. That field and the preview's outfit opt-out (`mariSeasonPreviewOptOut`) are never saved or synced. - `HALLOWEEN_SEASON`, `MariSeason` and `isInMariSeason` moved unchanged from `mari-work-animations.ts` to `seasonal-themes.ts`, which is now their only user. This also lets the plain-Node `.mjs` regression load the theme module. - Browser fixtures use the app's platform check for Cmd+K/Ctrl+K, clear the previous project's synced settings before seeding Golden, and wait for the server to save a selection or greeting before the existing reload assertions. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` The agent ran these locally (the boxes above are left for a human): - `pnpm check` at `86ffae48c7a1416538465cf711ed8c29eb6235cb`: exit 0; one existing `HomeProfessorMariChat.tsx` dependency warning remains. - Original implementation regressions at `d83b5ce685c4639b76dc822b1d09dc6f4c40da4f` (the follow-up changes only browser fixtures): `node scripts/run-regressions.mjs --filter` for `mari-appearance-pack.regression.mjs`, `seasonal-themes.regression.ts`, `command-center.regression.ts` and `mari/work-card-timing.regression.ts`: all passed. - The pack regression checks the costume against the theme hour by hour from October 27 to November 2, and minute by minute at both ends. It also covers the toggle, this year's greeting "Turn it off" (the costume is back in 2027), the preview (even with the toggle on or this year turned off) and the preview's own "Turn it off". - The seasonal regression drives the store: in a preview, the greeting, "Turn it off" and an outfit pick change nothing that is saved or synced. - Mutation checks: - Making `seasonalThemeFor` ignore this year's "Turn it off" fails the pack regression. - Writing the preview's outfit pick to the saved opt-out fails the seasonal regression. - `pnpm exec playwright test e2e/mari-appearance-pack.e2e.ts e2e/seasonal-halloween.e2e.ts --workers=1` at `86ffae48c7a1416538465cf711ed8c29eb6235cb`: all 18 passed, 6 each in desktop Chromium, mobile Chromium and mobile WebKit, using isolated app servers. - The completed aggregate local CodeRabbit review is recorded below. ### Browser fixture proof boundary The fixed browser clock gives successive edits identical sync timestamps. Captured requests show an older saved value and a greeting write aborted by reload with the same timestamp; the mobile projects also share a server, so an October setting could override a June seed. The fixtures now clear that prior server state and confirm the expected server value before reloading. Every original availability, selection, image, reload and preview assertion remains. This proves reload after a confirmed save; it does not claim new sync behavior or prove an immediate real-time reload before a save finishes. ### Manual verification notes - Manually verify in a browser with the clock on October 31 that the greeting's "Turn it off" removes both the orange theme and Professor Mari's raccoon costume on Home, in the omnibar and in her window, and that a reload keeps both off. - Manually verify that `/?seasonalPreview=halloween` on a normal day shows Mari in the raccoon costume, that picking Safari in the omnibar works on that page, and that after a reload without the link the saved choice is Safari and nothing records a Halloween opt-out. - Manually verify that the preview's "Turn it off" removes the costume and the theme, and that a fresh preview shows them again. - Manually verify on a mobile viewport. ### Completed aggregate local review - CodeRabbit completed a committed review of aggregate `d3a4c0ee41a2ab90dfba454e2049d436d03deb0d` against staging `9565a274111ac251ade43f7a2f1f8436a16b7a86`. All 26 changed files were reviewed: #7835 at `163f5d11e820460e2624a2c5797c74ae51ba0062`, #7836 at `829b16aa7fe6d1be6b4e5fc922fbfe0fcebf5077`, and #7838 at `acc5ae52b3cbcdae22cda3a6fbb664008910b288`. - This PR's 12 changed files were included. The aggregate preserves the constituent content; its only additional content in these files is a current-staging Basic Auth troubleshooting note in #7838. No dependency install or build was run for the review-only aggregation; the per-PR validation above remains the build/test evidence. - The review reported one minor documentation finding, mapped to #7838 `docs/installation/containers.md`: add translation tracking. Dismissed because open [#7839](https://github.com/Pasta-Devs/Marinara-Engine/issues/7839) already names that guide in its title and body and describes the changed update/rollback guidance. #7838 already links it under Linked issue and Docs and release impact. No local findings remain unresolved. - This records local source-review coverage only. Each PR's required hosted checks and substantive final-head review remain separate merge gates. ### Completed hosted review - CodeRabbit completed a substantive review of exact head `163f5d11e820460e2624a2c5797c74ae51ba0062`: the assessment and final risk coverage both name that commit, with `kind: reviewed`. - Outcome: one minor finding dismissed as intentional existing behavior. Ordinary appearance-pack choices remain saved, as the supplied description and manual plan explicitly require; only seasonal greeting, Turn it off and outfit opt-out records are preview-local. The baseline action already saved ordinary choices, the store regression explicitly retains Safari, and the browser case waits for saved Safari and displays it after preview Turn it off. The requested transient base-pack behavior would change that contract. [Code-based dismissal and evidence](https://github.com/Pasta-Devs/Marinara-Engine/pull/7835#discussion_r4317437331). - No source or test changes were made for this finding; all original assertions remain. The review thread was resolved after verifying the intended behavior. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) There are no docs, changelog or What's New changes on purpose: it is a Halloween surprise. ## UI evidence (if applicable) No screenshots: the new behavior is covered by the Playwright checks listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Seasonal previews can display themed greetings and appearance packs outside their usual dates without changing saved preferences. * Greeting and outfit choices made during a preview apply only for the current page load. Outside previews, seasonal greetings and opt-outs can be saved for the year. * **Updates** * Seasonal appearance packs now follow the active seasonal theme. Choosing a different pack while a seasonal outfit is active opts out of that outfit for the year while preserving the chosen appearance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:09:11 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7961
No description provided.