[PR #581] [CLOSED] Add map JSON to game session history #4685

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/581
Author: @cha1latte
Created: 5/8/2026
Status: ❌ Closed

Base: main ← Head: feat/issue-569-map-json-history


📝 Commits (1)

  • 4b52564 Expose map JSON in session history

📊 Changes

3 files changed (+59 additions, -2 deletions)

View changed files

➕ docs/pr-evidence/issue-569/map-history-proof.txt (+0 -0)
📝 packages/client/src/components/game/GameSessionHistory.tsx (+20 -1)
📝 packages/client/src/components/game/GameSurface.tsx (+39 -1)

📄 Description

Linked issue

Closes #569

Why this change

When the generated map is wrong, users need the underlying map JSON in session history so they can inspect and edit it.

What changed

  • Added gameMaps to the current-session secrets model.
  • Added a Maps JSON editor to session history.
  • Kept the active map ID and store state in sync when saving edited map JSON.
  • Added proof output showing the history flow exposes and persists map data.

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 passed.
  • Scratch proof scratch/issue-569-map-history-proof.mjs outputs the expected map exposure/persisted JSON result.
  • Proof artifact: docs/pr-evidence/issue-569/map-history-proof.txt.

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)

N/A. The verification artifact is command-output proof for the session-history data flow.


🔄 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/581 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/8/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/issue-569-map-json-history` --- ### 📝 Commits (1) - [`4b52564`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4b52564c60f10dfc62bbb06f983eda723591d614) Expose map JSON in session history ### 📊 Changes **3 files changed** (+59 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-569/map-history-proof.txt` (+0 -0) 📝 `packages/client/src/components/game/GameSessionHistory.tsx` (+20 -1) 📝 `packages/client/src/components/game/GameSurface.tsx` (+39 -1) </details> ### 📄 Description ## Linked issue Closes #569 ## Why this change When the generated map is wrong, users need the underlying map JSON in session history so they can inspect and edit it. ## What changed - Added `gameMaps` to the current-session secrets model. - Added a Maps JSON editor to session history. - Kept the active map ID and store state in sync when saving edited map JSON. - Added proof output showing the history flow exposes and persists map data. ## 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` passed. - Scratch proof `scratch/issue-569-map-history-proof.mjs` outputs the expected map exposure/persisted JSON result. - Proof artifact: `docs/pr-evidence/issue-569/map-history-proof.txt`. ## 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 (if applicable) N/A. The verification artifact is command-output proof for the session-history data flow. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:09:47 +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#4685
No description provided.