[PR #3192] [MERGED] [codex] Add Game Mode storyboards and scene-video gallery workflows #5837

Closed
opened 2026-10-22 04:20:02 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3192
Author: @thetopham
Created: 7/4/2026
Status: ✅ Merged
Merged: 7/4/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/game-storyboard-prompt-director


📝 Commits (10+)

  • 8dfee24 Add game turn storyboard generation
  • fd8b721 Harden storyboard director timeout handling
  • e4cc96b Sync storyboards with game narration
  • 3d7bd54 Add storyboard viewer controls
  • 60ed00d Match storyboard viewer to latest media widget
  • a005cf2 Make storyboard viewer draggable and parallelize frames
  • 37ae32f Add storyboard reopen and gallery tabs
  • af25596 Add storyboard automation toggle and docs
  • 240b56c Allow full-width storyboard viewer resizing
  • ef178c1 Address scene video review feedback

📊 Changes

33 files changed (+3042 additions, -157 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 README.md (+2 -2)
📝 docs/CONFIGURATION.md (+11 -0)
📝 docs/FAQ.md (+16 -0)
📝 docs/GAME_MODE.md (+4 -2)
📝 docs/SCENE_VIDEO_GENERATION.md (+44 -5)
📝 docs/TROUBLESHOOTING.md (+15 -0)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+8 -0)
📝 packages/client/src/components/chat/ChatGallery.tsx (+141 -11)
📝 packages/client/src/components/chat/ChatGalleryDrawer.tsx (+8 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+44 -3)
📝 packages/client/src/components/chat/PinnedImageOverlay.tsx (+4 -3)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+176 -15)
📝 packages/client/src/components/game/GameSurface.tsx (+730 -40)
➕ packages/client/src/hooks/use-game-storyboards.ts (+58 -0)
📝 packages/client/src/lib/connection-transfer.ts (+6 -4)
📝 packages/client/src/stores/gallery.store.ts (+12 -0)
📝 packages/server/src/db/file-backed-store.ts (+59 -9)
📝 packages/server/src/db/migrate.ts (+87 -5)
➕ packages/server/src/db/schema/game-storyboards.ts (+55 -0)

...and 13 more files

📄 Description

Stack / merge order

This PR is stacked on #3189. Reviewers should review and merge #3189 first; after #3189 lands in staging, rebase this branch onto updated staging so the diff only shows storyboard-specific changes.

Linked issue

Closes #3191

Why this change

  • Game Mode turns need a way to become animation-ready storyboard beats instead of only single still illustrations.
  • Gallery scene videos need to be easier to create, preview, copy prompts from, pin, and find separately from still images.
  • Storyboard animation can add provider cost and latency, so automatic generation should be opt-in while manual generation stays available.

What changed

  • Added scene-video generation support using Video Generation connections for Gemini Omni and xAI Imagine.
  • Added Gallery video actions, per-image Animate, prompt copy in media previews, View Latest media, pinned video overlays, and Images/Videos tabs.
  • Added Game Mode turn storyboards using game.storyboardDirector to split completed GM narration into manga keyframes, image prompts, video prompts, and reader-section anchors.
  • Persisted storyboard/keyframe metadata and connected generated keyframe images/videos to Gallery and scene-video storage.
  • Added Game Assets controls for manual Storyboard turn generation, storyboard status/keyframe previews, and reopening the floating viewer.
  • Added a floating storyboard viewer that follows the current story section and supports close, drag, resize, play/pause, mute/unmute, and size controls.
  • Added an off-by-default Automatic Storyboard Animations toggle under Chat Settings -> Game Mode -> Scene Videos.
  • Updated README, Game Mode docs, scene-video docs, FAQ, troubleshooting, configuration, and changelog entries.

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

Manual verification notes

  • pnpm.cmd check passed locally on Windows after rerunning outside the restricted Codex sandbox. The sandboxed run reached lint and server/shared build cleanly, then Vite/esbuild failed to read required workspace paths with an access-denied error while loading the client config.
  • Manual browser verification still needs to be completed by a human before this is marked ready for review: create/select a Video Generation connection, animate a Gallery image, generate a Game Mode storyboard, reopen the viewer from Game Assets, verify drag/resize/play/mute behavior, and verify the automatic storyboard toggle stays off by default and gates auto-generation when enabled.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Manual screenshots or recordings should be added after browser verification.

Summary by CodeRabbit

  • New Features

    • Added scene video generation for Game Mode, Roleplay, and Visual Novel galleries.
    • Added storyboard animations for Game Mode turns, including optional automatic generation.
    • Added separate Images and Videos gallery tabs, plus video preview, pinning, download, and fullscreen viewing.
    • Added video connection setup and testing in app settings.
  • Bug Fixes

    • Improved handling of older scene-video prompt settings.
    • Prevented auto-updates from switching away from local feature branches.

🔄 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/3192 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/4/2026 **Status:** ✅ Merged **Merged:** 7/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/game-storyboard-prompt-director` --- ### 📝 Commits (10+) - [`8dfee24`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8dfee246157c4a581d096b44518d4b2ccbe64943) Add game turn storyboard generation - [`fd8b721`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fd8b721bcf22b6c850fab0efdfb9ecc663cd3ce0) Harden storyboard director timeout handling - [`e4cc96b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e4cc96bb1c63e4401b1fc010735c497fde0d027c) Sync storyboards with game narration - [`3d7bd54`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3d7bd5495fa6bcb706e91b5e5b48c78441e218a0) Add storyboard viewer controls - [`60ed00d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/60ed00db272b8a5d9e953bb91c74cabe5527936d) Match storyboard viewer to latest media widget - [`a005cf2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a005cf2465883a83f067cd2a635d82a852eb7799) Make storyboard viewer draggable and parallelize frames - [`37ae32f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/37ae32f7051e926a028cc6a41f4c10e5e46b3806) Add storyboard reopen and gallery tabs - [`af25596`](https://github.com/Pasta-Devs/Marinara-Engine/commit/af25596b3c8e4fa89a4d652de3bc25adf42d662c) Add storyboard automation toggle and docs - [`240b56c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/240b56ca5b9157b8423f2be207491504cbd7cc19) Allow full-width storyboard viewer resizing - [`ef178c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ef178c1fded7bec8f2039ffc7885dbb5ffab9ed5) Address scene video review feedback ### 📊 Changes **33 files changed** (+3042 additions, -157 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `README.md` (+2 -2) 📝 `docs/CONFIGURATION.md` (+11 -0) 📝 `docs/FAQ.md` (+16 -0) 📝 `docs/GAME_MODE.md` (+4 -2) 📝 `docs/SCENE_VIDEO_GENERATION.md` (+44 -5) 📝 `docs/TROUBLESHOOTING.md` (+15 -0) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+8 -0) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+141 -11) 📝 `packages/client/src/components/chat/ChatGalleryDrawer.tsx` (+8 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+44 -3) 📝 `packages/client/src/components/chat/PinnedImageOverlay.tsx` (+4 -3) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+176 -15) 📝 `packages/client/src/components/game/GameSurface.tsx` (+730 -40) ➕ `packages/client/src/hooks/use-game-storyboards.ts` (+58 -0) 📝 `packages/client/src/lib/connection-transfer.ts` (+6 -4) 📝 `packages/client/src/stores/gallery.store.ts` (+12 -0) 📝 `packages/server/src/db/file-backed-store.ts` (+59 -9) 📝 `packages/server/src/db/migrate.ts` (+87 -5) ➕ `packages/server/src/db/schema/game-storyboards.ts` (+55 -0) _...and 13 more files_ </details> ### 📄 Description ## Stack / merge order This PR is stacked on #3189. Reviewers should review and merge #3189 first; after #3189 lands in `staging`, rebase this branch onto updated `staging` so the diff only shows storyboard-specific changes. <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md � Branches. --> ## Linked issue Closes #3191 ## Why this change - Game Mode turns need a way to become animation-ready storyboard beats instead of only single still illustrations. - Gallery scene videos need to be easier to create, preview, copy prompts from, pin, and find separately from still images. - Storyboard animation can add provider cost and latency, so automatic generation should be opt-in while manual generation stays available. ## What changed - Added scene-video generation support using Video Generation connections for Gemini Omni and xAI Imagine. - Added Gallery video actions, per-image Animate, prompt copy in media previews, View Latest media, pinned video overlays, and Images/Videos tabs. - Added Game Mode turn storyboards using `game.storyboardDirector` to split completed GM narration into manga keyframes, image prompts, video prompts, and reader-section anchors. - Persisted storyboard/keyframe metadata and connected generated keyframe images/videos to Gallery and scene-video storage. - Added Game Assets controls for manual **Storyboard turn** generation, storyboard status/keyframe previews, and reopening the floating viewer. - Added a floating storyboard viewer that follows the current story section and supports close, drag, resize, play/pause, mute/unmute, and size controls. - Added an off-by-default **Automatic Storyboard Animations** toggle under **Chat Settings -> Game Mode -> Scene Videos**. - Updated README, Game Mode docs, scene-video docs, FAQ, troubleshooting, configuration, and changelog entries. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] 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` ### Manual verification notes - `pnpm.cmd check` passed locally on Windows after rerunning outside the restricted Codex sandbox. The sandboxed run reached lint and server/shared build cleanly, then Vite/esbuild failed to read required workspace paths with an access-denied error while loading the client config. - Manual browser verification still needs to be completed by a human before this is marked ready for review: create/select a Video Generation connection, animate a Gallery image, generate a Game Mode storyboard, reopen the viewer from Game Assets, verify drag/resize/play/mute behavior, and verify the automatic storyboard toggle stays off by default and gates auto-generation when enabled. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Manual screenshots or recordings should be added after browser verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added scene video generation for Game Mode, Roleplay, and Visual Novel galleries. * Added storyboard animations for Game Mode turns, including optional automatic generation. * Added separate **Images** and **Videos** gallery tabs, plus video preview, pinning, download, and fullscreen viewing. * Added video connection setup and testing in app settings. * **Bug Fixes** * Improved handling of older scene-video prompt settings. * Prevented auto-updates from switching away from local feature branches. <!-- 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-22 04:20:02 +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#5837
No description provided.