[PR #966] [MERGED] fix(world-maps): use a square canvas for map artwork and coordinates #1214

Closed
opened 2026-10-21 05:05:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/966
Author: @SpicyMarinara
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/sept20-package-sweep


📝 Commits (2)

  • f2d1b85 chore: start World Maps precision grid fix
  • 91a8a24 fix(world-maps): align editor and runtime with square coordinates

📊 Changes

18 files changed (+132 additions, -76 deletions)

View changed files

📝 README.md (+1 -1)
➕ artifacts/hierarchical-maps-1.4.3.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+10 -0)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+10 -0)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+10 -0)
➕ packages/hierarchical-maps/CHANGELOG.md (+2 -0)
📝 packages/hierarchical-maps/client.js (+32 -32)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx (+1 -1)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx (+1 -1)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx (+4 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/locales/en.json (+1 -0)
📝 scripts/build-feature-packages.mjs (+3 -3)
📝 tests/map-canvas-geometry.regression.ts (+5 -5)
📝 tests/spatial-context.e2e.ts (+31 -9)

📄 Description

Linked issue

Closes #965
Closes Pasta-Devs/Marinara-Engine#6404

Why this change

World Maps uses a 100×100 placement grid, but displayed it on a 16:9 canvas. Square background maps therefore cropped differently from their coordinates. Both the editor and runtime now use the same square canvas.

What changed

  • Reuse the existing canvas and placement logic with a 1:1 aspect ratio in source and packaged CSS.
  • Show a square artwork preview and a localized recommendation for square images, such as 1024×1024.
  • Publish World Maps (hierarchical-maps) 1.4.3 with regenerated manifest, client bundle, archive, catalog lanes and release notes.
  • Extend the existing geometry browser check to cover the installed package's editor and runtime on desktop and mobile.

Package and security impact

  • Affected package ID: hierarchical-maps.
  • Engine compatibility remains unchanged (Capability API 1.4; existing manifest Engine range).
  • No new permissions or entrypoints; saved coordinates and shared/private world storage retain their existing formats.
  • Existing installed package lifecycle paths were exercised against the rebuilt artifact, including update, restart, offline restart, removal/reinstallation, and backup restoration.

Validation

Automated evidence: npm run check passed with zero errors (existing lint warnings remain). Catalog lanes, locales, catalog/archive hashes and release-note regressions passed. The geometry regression fails against the previous source and passes after the fix. Installed-package browser checks passed 2/2 (desktop Chromium and Android Chromium emulation). The package's spatial lifecycle regression passed. Local CodeRabbit review completed with zero findings.

  • Manually verify square artwork and marker placement on a physical desktop and mobile device.
  • Manually verify package installation/update through the production Download Agents UI.
  • Manually verify custom themes and both Game and Roleplay map use with existing saved worlds.
  • Read and follow CONTRIBUTING.md.

Manual verification notes

Reviewed desktop runtime and mobile editor screenshots from disposable browser fixtures. No physical-device or live-provider claim. The older, broader Roleplay movement browser scenario still hits unrelated stale UI assertions; the focused installed-package geometry scenario is green and directly checks both canvases.

Documentation impact

README catalog guidance and package changelog updated. The linked Engine sweep PR Pasta-Devs/Marinara-Engine#6420 adds the square artwork recommendation to the World Maps guide; translation work is tracked separately.

UI evidence

Before/after screenshots, original failing 16:9 assertion, and passing browser/catalog logs. Download the self-contained HTML to view embedded screenshots.

Summary by CodeRabbit

  • New Features
    • World Maps child-location maps now use a square canvas in both the editor and runtime, keeping artwork aligned with the 100×100 grid.
    • The background picker now recommends square 1024×1024 images and explains how they appear on maps.
  • Bug Fixes
    • Improved scaling and alignment of child-map backgrounds across screen sizes.
  • Release
    • World Maps updated to version 1.4.3.

🔄 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/966 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/20/2026 **Status:** ✅ Merged **Merged:** 9/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept20-package-sweep` --- ### 📝 Commits (2) - [`f2d1b85`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f2d1b857a21e843d5e8d88db8c6952ddaedbea91) chore: start World Maps precision grid fix - [`91a8a24`](https://github.com/Pasta-Devs/Marinara-Agents/commit/91a8a2416eadb15ea64cb334d6125d0845052192) fix(world-maps): align editor and runtime with square coordinates ### 📊 Changes **18 files changed** (+132 additions, -76 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) ➕ `artifacts/hierarchical-maps-1.4.3.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+10 -0) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+10 -0) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+10 -0) ➕ `packages/hierarchical-maps/CHANGELOG.md` (+2 -0) 📝 `packages/hierarchical-maps/client.js` (+32 -32) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx` (+1 -1) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx` (+1 -1) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx` (+4 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/locales/en.json` (+1 -0) 📝 `scripts/build-feature-packages.mjs` (+3 -3) 📝 `tests/map-canvas-geometry.regression.ts` (+5 -5) 📝 `tests/spatial-context.e2e.ts` (+31 -9) </details> ### 📄 Description ## Linked issue Closes #965 Closes Pasta-Devs/Marinara-Engine#6404 ## Why this change World Maps uses a 100×100 placement grid, but displayed it on a 16:9 canvas. Square background maps therefore cropped differently from their coordinates. Both the editor and runtime now use the same square canvas. ## What changed - Reuse the existing canvas and placement logic with a 1:1 aspect ratio in source and packaged CSS. - Show a square artwork preview and a localized recommendation for square images, such as 1024×1024. - Publish World Maps (`hierarchical-maps`) 1.4.3 with regenerated manifest, client bundle, archive, catalog lanes and release notes. - Extend the existing geometry browser check to cover the installed package's editor and runtime on desktop and mobile. ## Package and security impact - Affected package ID: `hierarchical-maps`. - Engine compatibility remains unchanged (Capability API 1.4; existing manifest Engine range). - No new permissions or entrypoints; saved coordinates and shared/private world storage retain their existing formats. - Existing installed package lifecycle paths were exercised against the rebuilt artifact, including update, restart, offline restart, removal/reinstallation, and backup restoration. ## Validation Automated evidence: `npm run check` passed with zero errors (existing lint warnings remain). Catalog lanes, locales, catalog/archive hashes and release-note regressions passed. The geometry regression fails against the previous source and passes after the fix. Installed-package browser checks passed 2/2 (desktop Chromium and Android Chromium emulation). The package's spatial lifecycle regression passed. Local CodeRabbit review completed with zero findings. - [ ] Manually verify square artwork and marker placement on a physical desktop and mobile device. - [ ] Manually verify package installation/update through the production Download Agents UI. - [ ] Manually verify custom themes and both Game and Roleplay map use with existing saved worlds. - [ ] Read and follow `CONTRIBUTING.md`. ### Manual verification notes Reviewed desktop runtime and mobile editor screenshots from disposable browser fixtures. No physical-device or live-provider claim. The older, broader Roleplay movement browser scenario still hits unrelated stale UI assertions; the focused installed-package geometry scenario is green and directly checks both canvases. ## Documentation impact README catalog guidance and package changelog updated. The linked Engine sweep PR Pasta-Devs/Marinara-Engine#6420 adds the square artwork recommendation to the World Maps guide; translation work is tracked separately. ## UI evidence [Before/after screenshots, original failing 16:9 assertion, and passing browser/catalog logs](https://gist.github.com/SpicyMarinara/81deffdd9a384e220ea4e6b0d1c6fdc3). Download the self-contained HTML to view embedded screenshots. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - World Maps child-location maps now use a square canvas in both the editor and runtime, keeping artwork aligned with the 100×100 grid. - The background picker now recommends square 1024×1024 images and explains how they appear on maps. - **Bug Fixes** - Improved scaling and alignment of child-map backgrounds across screen sizes. - **Release** - World Maps updated to version 1.4.3. <!-- 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-21 05:05:53 +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#1214
No description provided.