[PR #2052] [MERGED] fix(otome-forge): a line under new scene art types after the art appears (0.6.20) #2092

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-cg-intro-typing-2051


📝 Commits (4)

  • 4cfe320 fix(otome-forge): a line under a story CG types once the art has loaded, decoded and its pan ends (#2051)
  • 4fcad3b chore(otome-forge): release 0.6.20
  • e98d51a fix(otome-forge): a story CG whose picture fails ends its reveal at once
  • b3accba fix(otome-forge): under reduced motion a story CG never holds the box while its picture loads

📊 Changes

16 files changed (+255 additions, -71 deletions)

View changed files

➕ artifacts/otome-forge-0.6.20.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 (+4 -0)
📝 packages/otome-forge/client.js (+13 -10)
📝 packages/otome-forge/manifest.json (+3 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/CgTakeover.tsx (+25 -9)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/DialogueBox.tsx (+35 -11)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx (+4 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+4 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/package-otome-forge-reader.e2e.ts (+130 -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 #2051

Why this change

When a story CG arrives, Otome Hearth hides the dialogue box while letterbox bars close in and the picture pans for about 6 s. The line that belongs to that beat kept typing behind the hidden box. When the box came back the line was already complete, and on a phone a long line had also scrolled to its end, so the player had to scroll up to read it from the start.

The maintainer asked that the line start typing only once the art has loaded and its reveal has ended.

What changed

Package: otome-forge (Otome Hearth) 0.6.20. Client only, with no server or prompt changes.

  • DialogueBox.tsx: new paused prop. While it is on:
    • the line shows nothing and its typing clock doesn't run;
    • a Next press shows nothing.
      When it turns off, the line types from its first character and the box scrolls back to its top.
  • Reader.tsx: passes the reader's existing cgIntro state (true while the CG takeover plays) to the box as paused.
  • CgTakeover.tsx: the 6 s timer that ends the reveal used to start when the CG appeared, before the picture had loaded. It now starts once the image has loaded and decoded. A picture that fails to load ends the reveal at once, with no pan over a broken image. The element gets data-loaded.
  • theme/styles.ts: the pan animation runs only on [data-loaded="true"], so the motion and the timer start together.
  • Tapping the stage, Enter or Space still ends the reveal at once; the line then types from the start. Under reduced motion there's no reveal, so the line shows whole straight away, as before.

Release: 0.6.20 with a CHANGELOG entry. The rebuilt client.js, manifest, preview catalogs and artifacts/otome-forge-0.6.20.zip agree.

Package and security impact

  • Affected package IDs: otome-forge (0.6.19 → 0.6.20).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none.

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:

  • New browser proof (tests/package-otome-forge-reader.e2e.ts, "a line under a story CG types only after the art has loaded and its pan has ended (#2051)"). The test holds the CG image request, then checks:
    • before the image loads, and during the pan, the line has typed nothing and data-loaded is false;
    • once the image loads, data-loaded turns true;
    • after the pan ends, the line starts typing from its first character with the box scrolled to the top.
  • Proof results: it passes on desktop and mobile Chromium, and fails on both with the source change reverted.
  • Second browser proof ("a story CG whose picture fails ends its pan at once and the line types"): a CG whose image returns 404 ends its reveal within 2 s, and the line types. It passes on desktop and mobile Chromium, and fails on both without the fix.
  • Regression suites: 582 Otome TypeScript regressions and 12 .mjs regressions pass.
  • Typecheck: 0 strict errors in 88 server and 139 client files.
  • Other checks: Prettier and git diff --check pass.

For a human to verify:

  • On a phone, play to a beat where scene art arrives with a long line. Manually verify the box stays hidden while the art loads and pans, and that when it returns the line types from its first word with the box at its top.
  • Manually verify that tapping the stage during the reveal ends it at once and the line then types from the start.
  • With Reduce motion on, manually verify the art appears with no pan and the line is shown whole straight away.
  • With a slow network (DevTools throttling), manually verify the pan doesn't start until the picture has appeared.
  • Manually verify that a CG whose image fails to load (block its URL in DevTools) doesn't pan: the box comes back at once and the line types.

Documentation impact

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

The package CHANGELOG describes the change.

🤖 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/2052 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-cg-intro-typing-2051` --- ### 📝 Commits (4) - [`4cfe320`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4cfe3209673c023f7acbc30d384f368042cadbf8) fix(otome-forge): a line under a story CG types once the art has loaded, decoded and its pan ends (#2051) - [`4fcad3b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4fcad3b2379ce9e67ef7a58269e1e640ba87de14) chore(otome-forge): release 0.6.20 - [`e98d51a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e98d51a8326ef885c9e9925c80d9c04b47da0567) fix(otome-forge): a story CG whose picture fails ends its reveal at once - [`b3accba`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b3accba74ea19856e151ee157ef40c825e9dc410) fix(otome-forge): under reduced motion a story CG never holds the box while its picture loads ### 📊 Changes **16 files changed** (+255 additions, -71 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.6.20.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` (+4 -0) 📝 `packages/otome-forge/client.js` (+13 -10) 📝 `packages/otome-forge/manifest.json` (+3 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/CgTakeover.tsx` (+25 -9) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/DialogueBox.tsx` (+35 -11) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx` (+4 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+4 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/package-otome-forge-reader.e2e.ts` (+130 -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 #2051 ## Why this change When a story CG arrives, Otome Hearth hides the dialogue box while letterbox bars close in and the picture pans for about 6 s. The line that belongs to that beat kept typing behind the hidden box. When the box came back the line was already complete, and on a phone a long line had also scrolled to its end, so the player had to scroll up to read it from the start. The maintainer asked that the line start typing only once the art has loaded and its reveal has ended. ## What changed Package: `otome-forge` (Otome Hearth) **0.6.20**. Client only, with no server or prompt changes. - **`DialogueBox.tsx`:** new `paused` prop. While it is on: - the line shows nothing and its typing clock doesn't run; - a Next press shows nothing. When it turns off, the line types from its first character and the box scrolls back to its top. - **`Reader.tsx`:** passes the reader's existing `cgIntro` state (true while the CG takeover plays) to the box as `paused`. - **`CgTakeover.tsx`:** the 6 s timer that ends the reveal used to start when the CG appeared, before the picture had loaded. It now starts once the image has loaded and decoded. A picture that fails to load ends the reveal at once, with no pan over a broken image. The element gets `data-loaded`. - **`theme/styles.ts`:** the pan animation runs only on `[data-loaded="true"]`, so the motion and the timer start together. - Tapping the stage, Enter or Space still ends the reveal at once; the line then types from the start. Under reduced motion there's no reveal, so the line shows whole straight away, as before. **Release:** 0.6.20 with a CHANGELOG entry. The rebuilt `client.js`, manifest, preview catalogs and `artifacts/otome-forge-0.6.20.zip` agree. ## Package and security impact - Affected package IDs: `otome-forge` (0.6.19 → 0.6.20). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. ## 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: - **New browser proof** (`tests/package-otome-forge-reader.e2e.ts`, "a line under a story CG types only after the art has loaded and its pan has ended (#2051)"). The test holds the CG image request, then checks: - before the image loads, and during the pan, the line has typed nothing and `data-loaded` is false; - once the image loads, `data-loaded` turns true; - after the pan ends, the line starts typing from its first character with the box scrolled to the top. - **Proof results:** it passes on desktop and mobile Chromium, and fails on both with the source change reverted. - **Second browser proof** ("a story CG whose picture fails ends its pan at once and the line types"): a CG whose image returns 404 ends its reveal within 2 s, and the line types. It passes on desktop and mobile Chromium, and fails on both without the fix. - **Regression suites:** 582 Otome TypeScript regressions and 12 `.mjs` regressions pass. - **Typecheck:** 0 strict errors in 88 server and 139 client files. - **Other checks:** Prettier and `git diff --check` pass. For a human to verify: - On a phone, play to a beat where scene art arrives with a long line. Manually verify the box stays hidden while the art loads and pans, and that when it returns the line types from its first word with the box at its top. - Manually verify that tapping the stage during the reveal ends it at once and the line then types from the start. - With Reduce motion on, manually verify the art appears with no pan and the line is shown whole straight away. - With a slow network (DevTools throttling), manually verify the pan doesn't start until the picture has appeared. - Manually verify that a CG whose image fails to load (block its URL in DevTools) doesn't pan: the box comes back at once and the line types. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The package CHANGELOG describes the change. 🤖 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:26 +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#2092
No description provided.