[PR #2074] [MERGED] fix(otome-forge): Album CGs newest first; chapter themes in the Soundtrack (0.6.28) #2103

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-album-order-themes


📝 Commits (2)

  • ad0db25 fix(otome-forge): Album CGs newest first; chapter themes in the Soundtrack
  • 1573a43 chore(otome-forge): release 0.6.28

📊 Changes

23 files changed (+472 additions, -327 deletions)

View changed files

➕ artifacts/otome-forge-0.6.28.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+5 -0)
📝 packages/otome-forge/client.js (+121 -121)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+126 -126)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-otome-audio.ts (+10 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+1 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/album/Album.tsx (+18 -8)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/album/Soundtrack.tsx (+13 -6)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/wardrobe.ts (+7 -5)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/album.ts (+34 -6)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/chapters.ts (+4 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/otome-forge-chapter-music.regression.ts (+53 -0)

...and 3 more files

📄 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 #2073

Why this change

  • The maintainer asked for two Album fixes. The CGs should show newest first, with the oldest at the bottom. The Soundtrack never listed chapter themes: each one was generated and saved on its chapter, but the Album only read the six mood tracks.

What changed

Package: otome-forge 0.6.28 (rebuilt server.mjs, client.js, artifact, catalog preview entries).

  • CG order. albumCgs (routes/album.ts) now sorts newest first.
    • The Album grid and the full-screen viewer read the same array, so the viewer's Previous/Next follow the order shown.
    • Home's back layer picks the newest CG by date, not by position, so it is unchanged.
  • Chapter themes in the Soundtrack.
    • After the six moods, the Album lists each chapter that has a saved music.track and that the player has begun.
    • The rows are in the Story screen's order (byStoryOrder, now exported from story/chapters.ts), titled with the chapter's name, with a "Chapter theme" subtitle.
    • Play holds the same cue the reader holds, so mute and volume apply as for the moods, and a theme is never generated again.
  • Audio controller. A held chapter theme with a saved track now plays even if chapter themes were turned off later, or a music folder is chosen. Only making a new theme still waits for chapter themes. The reader holds a theme only while themes are on, so it behaves as before.
  • Localization. One new English key, ui.otomeForge.album.trackChapter.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; nothing new is stored

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

Agent-run checks:

  • Typecheck: no errors.
  • tests/otome-forge-*.regression.ts: 632/632 pass.
  • tests/otome-forge-*.regression.mjs: 13/13 pass, including a new controller test for a saved theme with themes off and over a music folder.
  • Catalog release-notes, determinism, store and translation-retention checks: pass.
  • git diff --check: pass.
  • Not run: validate-catalog, which can't run in this sparse worktree (CI runs it), and the browser suite.

Manual verification notes

  • Manually verify that Album → CGs opens on the newest CG and that the full-screen viewer's Next goes to the next-older one.
  • Manually verify that, with chapter themes on, a played chapter's theme appears in Album → Soundtrack under its title and plays, and that Mute silences it.
  • Manually verify that, after turning chapter themes off, the saved theme still plays from the Album.
  • Manually verify that a story with no chapter themes shows only the six moods.

Documentation impact

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

UI evidence (if applicable)

  • Album → Soundtrack gains rows after the moods. No screenshots attached.

🤖 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/2074 **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-album-order-themes` --- ### 📝 Commits (2) - [`ad0db25`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ad0db25c5fc1a7b90f1953846f9b8d2ff1eeb04e) fix(otome-forge): Album CGs newest first; chapter themes in the Soundtrack - [`1573a43`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1573a43563867a1339ea6e7d868fb1f994e00934) chore(otome-forge): release 0.6.28 ### 📊 Changes **23 files changed** (+472 additions, -327 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.6.28.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+5 -0) 📝 `packages/otome-forge/client.js` (+121 -121) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+126 -126) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-otome-audio.ts` (+10 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+1 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/album/Album.tsx` (+18 -8) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/album/Soundtrack.tsx` (+13 -6) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/wardrobe.ts` (+7 -5) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/album.ts` (+34 -6) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/chapters.ts` (+4 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/otome-forge-chapter-music.regression.ts` (+53 -0) _...and 3 more files_ </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 #2073 ## Why this change - The maintainer asked for two Album fixes. The CGs should show newest first, with the oldest at the bottom. The Soundtrack never listed chapter themes: each one was generated and saved on its chapter, but the Album only read the six mood tracks. ## What changed Package: `otome-forge` 0.6.28 (rebuilt `server.mjs`, `client.js`, artifact, catalog preview entries). - **CG order.** `albumCgs` (`routes/album.ts`) now sorts newest first. - The Album grid and the full-screen viewer read the same array, so the viewer's Previous/Next follow the order shown. - Home's back layer picks the newest CG by date, not by position, so it is unchanged. - **Chapter themes in the Soundtrack.** - After the six moods, the Album lists each chapter that has a saved `music.track` and that the player has begun. - The rows are in the Story screen's order (`byStoryOrder`, now exported from `story/chapters.ts`), titled with the chapter's name, with a "Chapter theme" subtitle. - Play holds the same cue the reader holds, so mute and volume apply as for the moods, and a theme is never generated again. - **Audio controller.** A held chapter theme with a saved track now plays even if chapter themes were turned off later, or a music folder is chosen. Only making a new theme still waits for chapter themes. The reader holds a theme only while themes are on, so it behaves as before. - **Localization.** One new English key, `ui.otomeForge.album.trackChapter`. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; nothing new is stored ## 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` Agent-run checks: - Typecheck: no errors. - `tests/otome-forge-*.regression.ts`: 632/632 pass. - `tests/otome-forge-*.regression.mjs`: 13/13 pass, including a new controller test for a saved theme with themes off and over a music folder. - Catalog release-notes, determinism, store and translation-retention checks: pass. - `git diff --check`: pass. - Not run: `validate-catalog`, which can't run in this sparse worktree (CI runs it), and the browser suite. ### Manual verification notes - Manually verify that Album → CGs opens on the newest CG and that the full-screen viewer's Next goes to the next-older one. - Manually verify that, with chapter themes on, a played chapter's theme appears in Album → Soundtrack under its title and plays, and that Mute silences it. - Manually verify that, after turning chapter themes off, the saved theme still plays from the Album. - Manually verify that a story with no chapter themes shows only the six moods. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Album → Soundtrack gains rows after the moods. No screenshots attached. 🤖 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:30 +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#2103
No description provided.