[PR #2037] [MERGED] fix(otome-forge): Otome Hearth follows the Engine's "Reduce Ambient Animations & Effects" (0.6.16) #2084

Closed
opened 2026-11-07 16:39:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2037
Author: @SpicyMarinara
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/otome-reduced-effects-1997


📝 Commits (5)

  • 7aa48a9 fix(otome-forge): Otome Hearth follows the Engine's "Reduce Ambient Animations & Effects" (#1997)
  • 96da123 fix(otome-forge): a world made while a draft save is pending leaves no draft behind
  • ee0efbe chore(otome-forge): release 0.6.16 (reduced effects, setup draft)
  • c6eef23 fix(otome-forge): the Engine's ambient setting spares the claw machine's game feedback (#1997)
  • 0cecb05 fix(otome-forge): the current turn's pip stops breathing under the Engine's ambient setting (#1997)

📊 Changes

18 files changed (+336 additions, -127 deletions)

View changed files

➕ artifacts/otome-forge-0.6.16.zip (+0 -0)
📝 catalog/preview/catalog.json (+6 -6)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+6 -6)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+6 -6)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+5 -0)
📝 packages/otome-forge/client.js (+68 -56)
📝 packages/otome-forge/manifest.json (+3 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts (+28 -17)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/reduced-motion.ts (+25 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/ClawMachine.tsx (+2 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/setup/SetupWizard.tsx (+6 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+33 -12)
📝 scripts/build-feature-packages.mjs (+1 -1)
➕ tests/otome-forge-reduced-effects.regression.ts (+115 -0)
📝 tests/package-otome-forge-home.e2e.ts (+14 -0)

📄 Description

Pull request

Important

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

Linked issue

Closes #1997

The Engine half, the likely cause of the flicker, merged as Pasta-Devs/Marinara-Engine#8659. Merging into staging does not close #1997; it stays open until the reporter confirms on their phone.

Why this change

  • The #1997 reporter's Otome Hearth Home flickered in Samsung Internet. Marinara Engine's Reduce Ambient Animations & Effects stopped it. The setting's help text promises it stops "decorative animation, ambient particles, rotating previews, and gradual text reveal", but Otome Hearth ignored it and only followed the device's own reduce-motion preference. So the stars, drift, parallax, typing text and frosted glass all kept running.
  • Separately, the setup wizard could leave a stale draft behind. A browser test caught this on #2033 when it flaked.

What changed

Otome Hearth 0.6.16 (otome-forge).

  • New lib/reduced-motion.ts.

    • reducedRules writes each reduced-motion rule once and emits it twice: under @media (prefers-reduced-motion: reduce) and under html[data-marinara-reduced-effects="true"].
    • reducedFrom reads both sources.
  • Stylesheet.

    • All three reduced-motion blocks now go through reducedRules: the Wish reveal card, the Home parallax layers, and the global "stop every animation and transition" rule.
    • Under the Engine setting, frosted glass turns solid, the same as the Engine does with its own panels: --of-glass-blur: none, a solid .of-glass surface, and the two blurs that don't use the variable.
  • Hook. useReducedMotion returns true when either source asks for reduced motion, and follows the Engine attribute live through a MutationObserver. It drives parallax, the typewriter, the Wish and CG pans, and the claw machine.

  • Claw machine. It's play, not decoration, so it follows only the system preference (useReducedMotion({ ambient: false })).

    • The Engine-only copy of the global stop rule skips .of-claw, so its game feedback still plays: the nudge shake, a prize tumbling out, a plush landing.
    • Its three idle loops still stop: the marquee bulbs, the live meter's hearts and the current turn's pip.
  • Setup wizard.

    • The draft saves 250 ms after each change. If the world was made inside that window, the pending timer wrote the draft back after it had been cleared, so the next setup reopened with the old answers.
    • The timer now checks again that the world isn't made yet.
  • Tests. New tests/otome-forge-reduced-effects.regression.ts (5 tests) covers:

    • only the new module names the media query;
    • the hook reads and observes the flag;
    • both copies of each rule are written;
    • the glass and the stray blurs are dropped under the flag;
    • the claw is spared, while its idle loops still stop.

    The source-scan and blur tests fail on the old code. tests/package-otome-forge-home.e2e.ts gains an assertion: with the flag on, Home's stars have no animation and the glass has no backdrop filter.

  • Rebuilt client.js, the manifest, artifacts/otome-forge-0.6.16.zip and the preview catalog entries.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none. It reads an attribute the Engine already sets, and older Engines simply never set it.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none.
  • Visible change: the Engine also sets the attribute when the device asks for reduced motion. Those users now also get solid glass instead of frosted, matching what the Engine does with its own glass.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

What the agent ran locally:

  • npx tsx --tsconfig tests/tsconfig.regressions.json --test "tests/otome-forge-*.regression.ts" passes 560/560, and the .mjs regressions pass 12/12.
  • The strict package typecheck, npm run format:check and git diff --check pass.
  • Browser tests on the rebuilt package: the Home, claw and reader specs pass 94/94 on desktop and mobile Chromium. An earlier run of those, plus the wizard spec, had three desktop timing failures (a dropped key press in the claw spec and two context teardowns) on an overloaded machine. Those code paths are unchanged from staging, and they passed on the rebuild.
  • An independent review agent asked for the claw to follow only the system preference. Local CodeRabbit then asked for its game feedback to be spared, and its last idle loop (the current pip) stopped. Both are done, each with a regression.

For a human to verify:

  • On the #1997 reporter's device (Galaxy S23+, Samsung Internet), with Reduce Ambient Animations & Effects on, manually verify that Otome Hearth Home is completely still: stars, drift and parallax stopped, and solid glass.
  • With the setting on, manually verify that Home glass (nameplate, tap pills, Him/Me, action buttons), reader choice pills, Confrontation stances and toasts are readable without blur in both Midnight and Pearl.
  • Manually verify that toggling the setting while Otome Hearth is open updates the typewriter and parallax without a reload.
  • With the setting on and the device's reduce-motion off, manually verify that the claw machine still swings, shakes on a nudge and tumbles a prize out, while its marquee bulbs, hearts and current pip stay still.
  • Manually verify that making a world right after your last wizard change leaves no draft behind the next time you open setup.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

  • The Home browser test covers the computed styles with the flag on.

🤖 Generated with Claude Code


🔄 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-Agents/pull/2037 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-reduced-effects-1997` --- ### 📝 Commits (5) - [`7aa48a9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7aa48a9328dc9aecae1848fcc6786db708b4d059) fix(otome-forge): Otome Hearth follows the Engine's "Reduce Ambient Animations & Effects" (#1997) - [`96da123`](https://github.com/Pasta-Devs/Marinara-Agents/commit/96da123253fa94a6ae7bb5e8ed7c7f16abd1638b) fix(otome-forge): a world made while a draft save is pending leaves no draft behind - [`ee0efbe`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ee0efbe84fd3cae81843b2e7eef622b049434de0) chore(otome-forge): release 0.6.16 (reduced effects, setup draft) - [`c6eef23`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c6eef231662cd88c156c819c770946216b0f79a8) fix(otome-forge): the Engine's ambient setting spares the claw machine's game feedback (#1997) - [`0cecb05`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0cecb052649606af8280dc4644fbbed85cfc1468) fix(otome-forge): the current turn's pip stops breathing under the Engine's ambient setting (#1997) ### 📊 Changes **18 files changed** (+336 additions, -127 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.6.16.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+6 -6) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+6 -6) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+6 -6) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+5 -0) 📝 `packages/otome-forge/client.js` (+68 -56) 📝 `packages/otome-forge/manifest.json` (+3 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts` (+28 -17) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/reduced-motion.ts` (+25 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/ClawMachine.tsx` (+2 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/setup/SetupWizard.tsx` (+6 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+33 -12) 📝 `scripts/build-feature-packages.mjs` (+1 -1) ➕ `tests/otome-forge-reduced-effects.regression.ts` (+115 -0) 📝 `tests/package-otome-forge-home.e2e.ts` (+14 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1997 The Engine half, the likely cause of the flicker, merged as Pasta-Devs/Marinara-Engine#8659. Merging into `staging` does not close #1997; it stays open until the reporter confirms on their phone. ## Why this change - The #1997 reporter's Otome Hearth Home flickered in Samsung Internet. Marinara Engine's **Reduce Ambient Animations & Effects** stopped it. The setting's help text promises it stops "decorative animation, ambient particles, rotating previews, and gradual text reveal", but Otome Hearth ignored it and only followed the device's own reduce-motion preference. So the stars, drift, parallax, typing text and frosted glass all kept running. - Separately, the setup wizard could leave a stale draft behind. A browser test caught this on #2033 when it flaked. ## What changed **Otome Hearth 0.6.16** (`otome-forge`). - **New `lib/reduced-motion.ts`.** - `reducedRules` writes each reduced-motion rule once and emits it twice: under `@media (prefers-reduced-motion: reduce)` and under `html[data-marinara-reduced-effects="true"]`. - `reducedFrom` reads both sources. - **Stylesheet.** - All three reduced-motion blocks now go through `reducedRules`: the Wish reveal card, the Home parallax layers, and the global "stop every animation and transition" rule. - Under the Engine setting, frosted glass turns solid, the same as the Engine does with its own panels: `--of-glass-blur: none`, a solid `.of-glass` surface, and the two blurs that don't use the variable. - **Hook.** `useReducedMotion` returns true when either source asks for reduced motion, and follows the Engine attribute live through a `MutationObserver`. It drives parallax, the typewriter, the Wish and CG pans, and the claw machine. - **Claw machine.** It's play, not decoration, so it follows only the system preference (`useReducedMotion({ ambient: false })`). - The Engine-only copy of the global stop rule skips `.of-claw`, so its game feedback still plays: the nudge shake, a prize tumbling out, a plush landing. - Its three idle loops still stop: the marquee bulbs, the live meter's hearts and the current turn's pip. - **Setup wizard.** - The draft saves 250 ms after each change. If the world was made inside that window, the pending timer wrote the draft back after it had been cleared, so the next setup reopened with the old answers. - The timer now checks again that the world isn't made yet. - **Tests.** New `tests/otome-forge-reduced-effects.regression.ts` (5 tests) covers: - only the new module names the media query; - the hook reads and observes the flag; - both copies of each rule are written; - the glass and the stray blurs are dropped under the flag; - the claw is spared, while its idle loops still stop. The source-scan and blur tests fail on the old code. `tests/package-otome-forge-home.e2e.ts` gains an assertion: with the flag on, Home's stars have no animation and the glass has no backdrop filter. - Rebuilt `client.js`, the manifest, `artifacts/otome-forge-0.6.16.zip` and the preview catalog entries. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none. It reads an attribute the Engine already sets, and older Engines simply never set it. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. - Visible change: the Engine also sets the attribute when the device asks for reduced motion. Those users now also get solid glass instead of frosted, matching what the Engine does with its own glass. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes What the agent ran locally: - `npx tsx --tsconfig tests/tsconfig.regressions.json --test "tests/otome-forge-*.regression.ts"` passes 560/560, and the `.mjs` regressions pass 12/12. - The strict package typecheck, `npm run format:check` and `git diff --check` pass. - Browser tests on the rebuilt package: the Home, claw and reader specs pass 94/94 on desktop and mobile Chromium. An earlier run of those, plus the wizard spec, had three desktop timing failures (a dropped key press in the claw spec and two context teardowns) on an overloaded machine. Those code paths are unchanged from staging, and they passed on the rebuild. - An independent review agent asked for the claw to follow only the system preference. Local CodeRabbit then asked for its game feedback to be spared, and its last idle loop (the current pip) stopped. Both are done, each with a regression. For a human to verify: - On the #1997 reporter's device (Galaxy S23+, Samsung Internet), with **Reduce Ambient Animations & Effects** on, manually verify that Otome Hearth Home is completely still: stars, drift and parallax stopped, and solid glass. - With the setting on, manually verify that Home glass (nameplate, tap pills, Him/Me, action buttons), reader choice pills, Confrontation stances and toasts are readable without blur in both Midnight and Pearl. - Manually verify that toggling the setting while Otome Hearth is open updates the typewriter and parallax without a reload. - With the setting on and the device's reduce-motion off, manually verify that the claw machine still swings, shakes on a nudge and tumbles a prize out, while its marquee bulbs, hearts and current pip stay still. - Manually verify that making a world right after your last wizard change leaves no draft behind the next time you open setup. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - The Home browser test covers the computed styles with the flag on. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:39:22 +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-Agents#2084
No description provided.