[PR #3702] [MERGED] Add reusable Game Mode setup imports #6060

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

📋 Pull Request Information

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

Base: staging ← Head: agent/game-setup-import-3701


📝 Commits (4)

  • b405bca Add reusable Game Mode setup imports
  • b24acc8 Merge branch 'staging' into agent/game-setup-import-3701
  • c03980c Merge branch 'staging' into agent/game-setup-import-3701
  • cf9e578 Address CodeRabbit review feedback

📊 Changes

5 files changed (+909 additions, -25 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+65 -1)
📝 packages/client/src/components/game/GameSetupSummary.tsx (+11 -14)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+237 -7)
📝 packages/client/src/lib/game-setup-share.ts (+441 -0)
📝 scripts/regressions/open-issues.regression.ts (+155 -3)

📄 Description

Linked issue

Closes #3701

Why this change

  • Initial Game Setup downloads were readable summaries, so users could not reuse a successful Game Mode configuration or share one that degrades gracefully when local resources differ.

What changed

  • Export a versioned .marinara-game-setup.json bundle containing the initial setup snapshot and full effective generation parameters, without credentials or connection endpoints.
  • Add a mobile-friendly import action to Game > New Game that fills the wizard without auto-starting.
  • Remap local characters, personas, lorebooks, presets, and connections by exact ID or unique name; skip missing resources with review warnings and require a replacement GM connection before starting.
  • Add malformed-file, version, missing-resource, round-trip, and browser-flow coverage.

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 check
  • pnpm regression:issues
  • Focused desktop Playwright import flow passed: Game setup only shows features owned by installed agents.
  • Live preview restarted successfully; /api/health returned ok, and the served Game Setup bundle contained the import UI.
  • Full pnpm smoke:ui completed with 63 passing, 40 skipped, and one unrelated persistent Hierarchical Maps test failure caused by a 404; the failing test reproduced in isolation.
  • Manual light-theme and mobile visual review remain for a human contributor.

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

No screenshots committed. The focused Playwright flow verifies the setup import control and imported game-name state.

Summary by CodeRabbit

  • New Features
    • Added reusable JSON export and import for game setups.
    • Added an “Import setup” option to the game setup wizard.
    • Restores game settings, selected resources, generation parameters, and other configuration from imported files.
    • Shows success messages and warnings when setups are imported.
    • Downloaded setup files now use descriptive names and reusable .marinara-game-setup.json formatting.
  • Bug Fixes
    • Improved handling of unavailable or renamed resources during setup import.

🔄 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/3702 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/game-setup-import-3701` --- ### 📝 Commits (4) - [`b405bca`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b405bca5be25bec651f112feb0ff18acb309fe86) Add reusable Game Mode setup imports - [`b24acc8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b24acc8f3ac929d1067e78730360a32c7080fe51) Merge branch 'staging' into agent/game-setup-import-3701 - [`c03980c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c03980cc3fd01dba746e9f82f1544e7b1a1d3f90) Merge branch 'staging' into agent/game-setup-import-3701 - [`cf9e578`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cf9e578fb198dfb0a71f85c92743a2e1609fe5b8) Address CodeRabbit review feedback ### 📊 Changes **5 files changed** (+909 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+65 -1) 📝 `packages/client/src/components/game/GameSetupSummary.tsx` (+11 -14) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+237 -7) 📝 `packages/client/src/lib/game-setup-share.ts` (+441 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+155 -3) </details> ### 📄 Description ## Linked issue Closes #3701 ## Why this change - Initial Game Setup downloads were readable summaries, so users could not reuse a successful Game Mode configuration or share one that degrades gracefully when local resources differ. ## What changed - Export a versioned `.marinara-game-setup.json` bundle containing the initial setup snapshot and full effective generation parameters, without credentials or connection endpoints. - Add a mobile-friendly import action to Game > New Game that fills the wizard without auto-starting. - Remap local characters, personas, lorebooks, presets, and connections by exact ID or unique name; skip missing resources with review warnings and require a replacement GM connection before starting. - Add malformed-file, version, missing-resource, round-trip, and browser-flow coverage. ## 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 check` - `pnpm regression:issues` - Focused desktop Playwright import flow passed: `Game setup only shows features owned by installed agents`. - Live preview restarted successfully; `/api/health` returned `ok`, and the served Game Setup bundle contained the import UI. - Full `pnpm smoke:ui` completed with 63 passing, 40 skipped, and one unrelated persistent Hierarchical Maps test failure caused by a 404; the failing test reproduced in isolation. - Manual light-theme and mobile visual review remain for a human contributor. ## Docs and release impact - [x] 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 No screenshots committed. The focused Playwright flow verifies the setup import control and imported game-name state. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added reusable JSON export and import for game setups. * Added an “Import setup” option to the game setup wizard. * Restores game settings, selected resources, generation parameters, and other configuration from imported files. * Shows success messages and warnings when setups are imported. * Downloaded setup files now use descriptive names and reusable `.marinara-game-setup.json` formatting. * **Bug Fixes** * Improved handling of unavailable or renamed resources during setup import. <!-- 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-23 04:06:42 +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#6060
No description provided.