[PR #205] [MERGED] fix(maps): align setup and canvas workflows #852

Closed
opened 2026-10-20 17:31:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/205
Author: @thetopham
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/2/2026
Merged by: @thetopham

Base: staging ← Head: fix/world-maps-setup-layout-artwork


📝 Commits (5)

  • 3e1e5bc fix(maps): align setup and canvas workflows
  • 26e653a build(maps): publish package 1.2.7
  • aa091b0 test(maps): verify refreshed artwork prompts
  • 10d8125 fix(maps): address review feedback
  • cf65b6a Merge branch 'staging' into fix/world-maps-setup-layout-artwork

📊 Changes

14 files changed (+265 additions, -125 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.2.7.zip (+0 -0)
📝 catalog/catalog.json (+7 -7)
📝 catalog/v2/catalog.json (+7 -7)
📝 catalog/v3/catalog.json (+7 -7)
📝 packages/hierarchical-maps/client.js (+28 -35)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx (+6 -13)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialContextSettingsSection.tsx (+1 -1)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+89 -26)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx (+2 -1)
📝 scripts/build-feature-packages.mjs (+4 -11)
📝 tests/hierarchical-maps-lifecycle.regression.ts (+16 -9)
➕ tests/map-canvas-geometry.regression.ts (+33 -0)
📝 tests/spatial-context.e2e.ts (+62 -5)

📄 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 #202
Closes #198
Closes #184

Why this change

  • The first World Maps setup choices were split between the empty workspace and an overflow menu, so importing or starting from a reusable world was easy to miss.
  • Editor and runtime canvases used different shapes and coordinate rules, moving markers relative to background landmarks.
  • Artwork prompt previews had no explicit way to rebuild after image settings changed.

What changed

  • Affected package: hierarchical-maps (World Maps) 1.2.7.
  • Uses a neutral Set up world map entry and exposes AI, manual, template/shared-world, and import paths together in the empty workspace.
  • Gives editor and runtime maps one 16:9 canvas and the same raw 0–100% coordinate projection.
  • Adds a discoverable Refresh prompts action with a confirmation that warns about replacing manual prompt edits.
  • Adds focused source/browser regressions and rebuilds the package client, manifest, artifact, lifecycle fixture, and every catalog lane together.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: none intended; existing compatibility range remains unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: ordinary package update; no storage migration

Automated verification

  • node tests/map-canvas-geometry.regression.ts
  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • Full generated-artifact lifecycle regression against Marinara Engine, including install/update, shared worlds, runtime routes, history, offline restart, uninstall/reinstall, backup, and restore
  • Focused desktop/mobile Playwright runs reached and passed the new setup-action, artwork-refresh, and mobile raw-coordinate assertions
  • git diff --check

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

Manual verification notes

  • Manually verify all four first-map actions at desktop and mobile widths.
  • Manually verify wide, square, and portrait backgrounds keep marker alignment between Arrange map and Roleplay/Game views while resizing.
  • Manually verify refreshing an artwork preview warns before replacing edits and uses current provider/settings output.
  • Manually verify package install/update, Roleplay and Game runtime, restart, uninstall cleanup, and offline restart behavior.

Documentation impact

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

UI evidence

  • The new setup actions were visible in both AI-builder browser paths before those broader legacy tests later failed on unrelated assertions.
  • The refresh confirmation and regenerated prompt assertion passed before the existing direct-upload locator failed later in that test.
  • Mobile runtime canvas geometry and raw coordinates passed. The desktop flow stopped earlier on an existing opacity assertion, so desktop runtime geometry still needs manual confirmation.

Summary by CodeRabbit

  • New Features

    • Added a responsive 16:9 world map canvas for improved layout consistency.
    • Added template/shared-world selection and map-file import options during setup.
    • Added a confirmation step when refreshing artwork prompts.
  • Improvements

    • Updated world map setup labels for clearer navigation.
    • Improved marker and connection placement across map layouts.
  • Bug Fixes

    • Improved map rendering by removing restrictive positioning limits.
  • Updates

    • Upgraded the Hierarchical Maps package to version 1.2.7.

🔄 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/205 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/2/2026 **Status:** ✅ Merged **Merged:** 8/2/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `fix/world-maps-setup-layout-artwork` --- ### 📝 Commits (5) - [`3e1e5bc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3e1e5bca7ea5fa7480544a69ddd500ec016b5337) fix(maps): align setup and canvas workflows - [`26e653a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/26e653ae1239e8c12f34a71c020e2ab37f2b77f3) build(maps): publish package 1.2.7 - [`aa091b0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aa091b0fe2f618d4a823c53a2518966bdd04c9f3) test(maps): verify refreshed artwork prompts - [`10d8125`](https://github.com/Pasta-Devs/Marinara-Agents/commit/10d8125e856e997f197a229f9502bebbaaa679e4) fix(maps): address review feedback - [`cf65b6a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cf65b6adbf18bbcf06f6f980690a4a353ecaeb5a) Merge branch 'staging' into fix/world-maps-setup-layout-artwork ### 📊 Changes **14 files changed** (+265 additions, -125 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.2.7.zip` (+0 -0) 📝 `catalog/catalog.json` (+7 -7) 📝 `catalog/v2/catalog.json` (+7 -7) 📝 `catalog/v3/catalog.json` (+7 -7) 📝 `packages/hierarchical-maps/client.js` (+28 -35) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx` (+6 -13) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialContextSettingsSection.tsx` (+1 -1) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+89 -26) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx` (+2 -1) 📝 `scripts/build-feature-packages.mjs` (+4 -11) 📝 `tests/hierarchical-maps-lifecycle.regression.ts` (+16 -9) ➕ `tests/map-canvas-geometry.regression.ts` (+33 -0) 📝 `tests/spatial-context.e2e.ts` (+62 -5) </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 #202 Closes #198 Closes #184 ## Why this change - The first World Maps setup choices were split between the empty workspace and an overflow menu, so importing or starting from a reusable world was easy to miss. - Editor and runtime canvases used different shapes and coordinate rules, moving markers relative to background landmarks. - Artwork prompt previews had no explicit way to rebuild after image settings changed. ## What changed - Affected package: `hierarchical-maps` (World Maps) `1.2.7`. - Uses a neutral **Set up world map** entry and exposes AI, manual, template/shared-world, and import paths together in the empty workspace. - Gives editor and runtime maps one 16:9 canvas and the same raw 0–100% coordinate projection. - Adds a discoverable **Refresh prompts** action with a confirmation that warns about replacing manual prompt edits. - Adds focused source/browser regressions and rebuilds the package client, manifest, artifact, lifecycle fixture, and every catalog lane together. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: none intended; existing compatibility range remains unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: ordinary package update; no storage migration ## Automated verification - `node tests/map-canvas-geometry.regression.ts` - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - Full generated-artifact lifecycle regression against Marinara Engine, including install/update, shared worlds, runtime routes, history, offline restart, uninstall/reinstall, backup, and restore - Focused desktop/mobile Playwright runs reached and passed the new setup-action, artwork-refresh, and mobile raw-coordinate assertions - `git diff --check` ## 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` ### Manual verification notes - Manually verify all four first-map actions at desktop and mobile widths. - Manually verify wide, square, and portrait backgrounds keep marker alignment between Arrange map and Roleplay/Game views while resizing. - Manually verify refreshing an artwork preview warns before replacing edits and uses current provider/settings output. - Manually verify package install/update, Roleplay and Game runtime, restart, uninstall cleanup, and offline restart behavior. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence - The new setup actions were visible in both AI-builder browser paths before those broader legacy tests later failed on unrelated assertions. - The refresh confirmation and regenerated prompt assertion passed before the existing direct-upload locator failed later in that test. - Mobile runtime canvas geometry and raw coordinates passed. The desktop flow stopped earlier on an existing opacity assertion, so desktop runtime geometry still needs manual confirmation. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a responsive 16:9 world map canvas for improved layout consistency. * Added template/shared-world selection and map-file import options during setup. * Added a confirmation step when refreshing artwork prompts. * **Improvements** * Updated world map setup labels for clearer navigation. * Improved marker and connection placement across map layouts. * **Bug Fixes** * Improved map rendering by removing restrictive positioning limits. * **Updates** * Upgraded the Hierarchical Maps package to version 1.2.7. <!-- 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-20 17:31:38 +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#852
No description provided.