[PR #6264] [CLOSED] Story Bundle: portable roleplay/game setup with ZIP export/import #7115

Closed
opened 2026-10-23 04:16:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6264
Author: @Kranael
Created: 9/16/2026
Status: ❌ Closed

Base: staging ← Head: story-bundle-stage


📝 Commits (10+)

  • 0b3d6a1 Story Bundle: clean implementation on staging base
  • 2b41ab4 Story Bundle: prettier formatting and lint fixes
  • 79ca381 Story Bundle: mobile tab switching via EditorTabNavigation dropdown
  • b3cc7dd feat: add Story Bundle gallery
  • 695e850 fix(story-bundle): CSS Fix in mobile and adjust to new EditorTagNavigation Component.
  • 2ccb2bc refactor(story-bundle): remove Play button from panel and update UI for future modes
  • 95aaf32 refactor(story-bundle): remove Play button from panel and update tests for new interaction model
  • 8868f43 refactor(story-bundle): reorganize description rendering and add action buttons in gallery detail card
  • 2e15101 Merge remote-tracking branch 'upstream/staging' into story-bundle-dev
  • 7521d42 refactor(story-bundle): update button styles and add labels for action modes in gallery

📊 Changes

217 files changed (+19788 additions, -254 deletions)

View changed files

📝 .gitignore (+17 -1)
📝 AGENTS.md (+4 -1)
📝 CHANGELOG.md (+61 -0)
📝 docs/chats/managing-chats.md (+5 -0)
📝 docs/roleplay/getting-started.md (+4 -0)
➕ docs/story-bundle/story-bundle-overview.md (+281 -0)
📝 package.json (+1 -0)
📝 packages/client/src/components/agents/AgentCatalogView.tsx (+4 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+117 -4)
📝 packages/client/src/components/characters/ConvoProfileFields.tsx (+11 -0)
📝 packages/client/src/components/chat/AgentSettingsControls.tsx (+3 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+8 -2)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+19 -0)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+5 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+4 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+68 -3)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+46 -21)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+32 -2)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+1 -8)
📝 packages/client/src/components/game/GameSurface.tsx (+18 -4)

...and 80 more files

📄 Description

Linked issue

Closes #

Why this change

Story Bundle is a new, self-contained data object in Marinara Engine: a shareable package that bundles characters, personas, lorebooks, presets, agents, inline scenarios, and Game Mode setup into one portable archive. Users currently have no way to package a complete roleplay/game setup and move it between devices or share it with others. This PR adds the full end-to-end feature: create and edit bundles in the UI, launch them as Roleplay / Conversation / Game Mode, and export/import them as .storybundle ZIP archives with image asset optimization.

What changed

  • Added the StoryBundle entity across all three layers (shared types + Zod schemas, server DB table + storage + REST routes, client hooks + UI store).
  • Added the Story Bundles panel, full-page gallery, and full-page editor with tabs for metadata, description, characters, personas, lorebooks, presets, agents, and inline scenarios.
  • Added launch flows for Roleplay (RP), Conversation (CONVO), and Game Mode (GM), including party-member/NPC toggling, Game Config setup, and DirectInject flows.
  • Added .storybundle ZIP export/import with a manifest (marinara-story-bundle-zip v1), safe archive extraction, and WebP re-encoding of large images to reduce archive size.
  • Added legacy intros → scenarios migration so existing bundles keep their content.
  • Added Playwright e2e coverage for the panel, editor, gallery, scenarios, play, and import/export flows.
  • Moved all Story Bundle changelog entries under [Unreleased].

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

  • Manually verify Story Bundle creation, editing, and deletion in the browser.
  • Manually verify launching a bundle in RP, CONVO, and GM modes.
  • Manually verify exporting a bundle to .storybundle and importing it back.
  • Manually verify party-member/NPC toggling and Game Config setup.
  • Manually verify the gallery and scenario picker, including light/dark mode and mobile viewport.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) 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)

UI evidence (if applicable)


🔄 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/6264 **Author:** [@Kranael](https://github.com/Kranael) **Created:** 9/16/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `story-bundle-stage` --- ### 📝 Commits (10+) - [`0b3d6a1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0b3d6a12f534a2e47a1ce4bda72672efdcf0a995) Story Bundle: clean implementation on staging base - [`2b41ab4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2b41ab4ae83d49f9be145276ecd47905f98597ea) Story Bundle: prettier formatting and lint fixes - [`79ca381`](https://github.com/Pasta-Devs/Marinara-Engine/commit/79ca3815afc7cc2106f18d62d02e3466bd75a259) Story Bundle: mobile tab switching via EditorTabNavigation dropdown - [`b3cc7dd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b3cc7dd65e7bf9f3c6f776ecf62012ae7fcfbf90) feat: add Story Bundle gallery - [`695e850`](https://github.com/Pasta-Devs/Marinara-Engine/commit/695e8500c9e85b4bc14644d1ff3aa66eeb3511e1) fix(story-bundle): CSS Fix in mobile and adjust to new EditorTagNavigation Component. - [`2ccb2bc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2ccb2bc94126145488585c694b18399d7cdc823b) refactor(story-bundle): remove Play button from panel and update UI for future modes - [`95aaf32`](https://github.com/Pasta-Devs/Marinara-Engine/commit/95aaf32fd4d82d639aa05893bf1dbbd15801a4df) refactor(story-bundle): remove Play button from panel and update tests for new interaction model - [`8868f43`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8868f43e939fb180a921a95fc87c556ae661d01b) refactor(story-bundle): reorganize description rendering and add action buttons in gallery detail card - [`2e15101`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2e1510125d2ec17b5c2e364d0d72bfe6cabd7ff7) Merge remote-tracking branch 'upstream/staging' into story-bundle-dev - [`7521d42`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7521d420ce2eef433fe5aa1f03d7d50a610e44db) refactor(story-bundle): update button styles and add labels for action modes in gallery ### 📊 Changes **217 files changed** (+19788 additions, -254 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+17 -1) 📝 `AGENTS.md` (+4 -1) 📝 `CHANGELOG.md` (+61 -0) 📝 `docs/chats/managing-chats.md` (+5 -0) 📝 `docs/roleplay/getting-started.md` (+4 -0) ➕ `docs/story-bundle/story-bundle-overview.md` (+281 -0) 📝 `package.json` (+1 -0) 📝 `packages/client/src/components/agents/AgentCatalogView.tsx` (+4 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+117 -4) 📝 `packages/client/src/components/characters/ConvoProfileFields.tsx` (+11 -0) 📝 `packages/client/src/components/chat/AgentSettingsControls.tsx` (+3 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+8 -2) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+19 -0) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+5 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+4 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+68 -3) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+46 -21) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+32 -2) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+1 -8) 📝 `packages/client/src/components/game/GameSurface.tsx` (+18 -4) _...and 80 more files_ </details> ### 📄 Description ## Linked issue <!-- No linked issue yet. A feature request should be opened before this PR is submitted. --> Closes # ## Why this change Story Bundle is a new, self-contained data object in Marinara Engine: a shareable package that bundles characters, personas, lorebooks, presets, agents, inline scenarios, and Game Mode setup into one portable archive. Users currently have no way to package a complete roleplay/game setup and move it between devices or share it with others. This PR adds the full end-to-end feature: create and edit bundles in the UI, launch them as Roleplay / Conversation / Game Mode, and export/import them as `.storybundle` ZIP archives with image asset optimization. ## What changed - Added the `StoryBundle` entity across all three layers (shared types + Zod schemas, server DB table + storage + REST routes, client hooks + UI store). - Added the Story Bundles panel, full-page gallery, and full-page editor with tabs for metadata, description, characters, personas, lorebooks, presets, agents, and inline scenarios. - Added launch flows for Roleplay (RP), Conversation (CONVO), and Game Mode (GM), including party-member/NPC toggling, Game Config setup, and DirectInject flows. - Added `.storybundle` ZIP export/import with a manifest (`marinara-story-bundle-zip` v1), safe archive extraction, and WebP re-encoding of large images to reduce archive size. - Added legacy `intros` → `scenarios` migration so existing bundles keep their content. - Added Playwright e2e coverage for the panel, editor, gallery, scenarios, play, and import/export flows. - Moved all Story Bundle changelog entries under `[Unreleased]`. ## 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 - Manually verify Story Bundle creation, editing, and deletion in the browser. - Manually verify launching a bundle in RP, CONVO, and GM modes. - Manually verify exporting a bundle to `.storybundle` and importing it back. - Manually verify party-member/NPC toggling and Game Config setup. - Manually verify the gallery and scenario picker, including light/dark mode and mobile viewport. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) 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) ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:16:40 +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#7115
No description provided.