[PR #212] [MERGED] fix(maps): restore packaged editor canvas #860

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

📋 Pull Request Information

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

Base: staging ← Head: agent/fix-world-map-editor-canvas


📝 Commits (2)

  • 768835c fix(maps): restore packaged editor canvas
  • 502a6bf test(maps): cover installed editor geometry

📊 Changes

10 files changed (+166 additions, -36 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.2.9.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 (+6 -0)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 scripts/build-feature-packages.mjs (+7 -1)
📝 tests/hierarchical-maps-lifecycle.regression.ts (+23 -10)
📝 tests/map-canvas-geometry.regression.ts (+6 -1)
📝 tests/spatial-context.e2e.ts (+100 -0)

📄 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 #198

Why this change

  • In the installed World Maps 1.2.8 package, Arrange map could reveal an editor canvas only 3px high even when the selected child map had a valid, decodable background image. The package source used Tailwind's aspect-[16/9], but downloadable package source is not scanned by the Engine Tailwind build, so the editor's required aspect-ratio CSS was absent at runtime.

What changed

  • Add explicit package-injected 16:9 sizing for [data-marinara-maps-editor-canvas], scoped to the World Maps workspace overlay.
  • Bump World Maps to 1.2.9 and rebuild its client payload, manifest, ZIP artifact, and v2/v3/legacy catalog entries.
  • Extend source, exact-artifact lifecycle, and browser geometry coverage so a collapsed editor canvas fails validation.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: unchanged (>=2.3.5 <4.0.0)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: package update still requires the existing Engine restart; no storage or uninstall contract changes

Validation

  • Automated locally: node tests/map-canvas-geometry.regression.ts, the exact-artifact lifecycle regression, node scripts/test-catalog-lanes.mjs, node scripts/validate-catalog.mjs, and git diff --check pass.

  • A focused Chromium run against an isolated Engine data directory with the exact World Maps 1.2.9 ZIP passes. It verifies the gallery background decodes, the editor canvas is taller than 100px, and its measured ratio is 16:9.

  • 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

  • Install or update World Maps to 1.2.9 through Marinara Engine and restart.
  • In Roleplay, enter a location whose child presentation is Map, choose a valid Global Gallery background, click Arrange map, and verify the editor canvas remains visible at 16:9.
  • Repeat with wide, square, and portrait source artwork; verify object-cover cropping and node placement remain aligned.
  • Verify the same saved map and nodes in the Roleplay and Game runtime map views.

Documentation impact

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

UI evidence

  • Before: live reproduction on Engine 2.4.1 with World Maps 1.2.8 measured the editor canvas at 725 x 3 while its background image decoded at 1184 x 888.
  • After: the focused exact-installed-package Chromium regression passes with a decoded background and a visible 16:9 editor canvas.

Summary by CodeRabbit

  • New Features

    • Updated the Hierarchical Maps package to version 1.2.9.
    • Improved the maps editor canvas to maintain a 16:9 aspect ratio while using available width.
  • Bug Fixes

    • Improved map display consistency in the World Maps editor, including loaded backgrounds and expanded map views.
  • Tests

    • Added coverage for package upgrades, installations, and editor canvas sizing across supported workflows.

🔄 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/212 **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:** `agent/fix-world-map-editor-canvas` --- ### 📝 Commits (2) - [`768835c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/768835c33e0cffa286f0a6541c663cb1b880437f) fix(maps): restore packaged editor canvas - [`502a6bf`](https://github.com/Pasta-Devs/Marinara-Agents/commit/502a6bfa32bdbb9433940729b84f66260e10261e) test(maps): cover installed editor geometry ### 📊 Changes **10 files changed** (+166 additions, -36 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.2.9.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` (+6 -0) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `scripts/build-feature-packages.mjs` (+7 -1) 📝 `tests/hierarchical-maps-lifecycle.regression.ts` (+23 -10) 📝 `tests/map-canvas-geometry.regression.ts` (+6 -1) 📝 `tests/spatial-context.e2e.ts` (+100 -0) </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 #198 ## Why this change - In the installed World Maps 1.2.8 package, `Arrange map` could reveal an editor canvas only 3px high even when the selected child map had a valid, decodable background image. The package source used Tailwind's `aspect-[16/9]`, but downloadable package source is not scanned by the Engine Tailwind build, so the editor's required aspect-ratio CSS was absent at runtime. ## What changed - Add explicit package-injected 16:9 sizing for `[data-marinara-maps-editor-canvas]`, scoped to the World Maps workspace overlay. - Bump World Maps to 1.2.9 and rebuild its client payload, manifest, ZIP artifact, and v2/v3/legacy catalog entries. - Extend source, exact-artifact lifecycle, and browser geometry coverage so a collapsed editor canvas fails validation. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: unchanged (`>=2.3.5 <4.0.0`) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: package update still requires the existing Engine restart; no storage or uninstall contract changes ## Validation - Automated locally: `node tests/map-canvas-geometry.regression.ts`, the exact-artifact lifecycle regression, `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-catalog.mjs`, and `git diff --check` pass. - A focused Chromium run against an isolated Engine data directory with the exact World Maps 1.2.9 ZIP passes. It verifies the gallery background decodes, the editor canvas is taller than 100px, and its measured ratio is 16:9. - [x] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [x] 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 - [x] Install or update World Maps to 1.2.9 through Marinara Engine and restart. - [x] In Roleplay, enter a location whose child presentation is Map, choose a valid Global Gallery background, click `Arrange map`, and verify the editor canvas remains visible at 16:9. - [ ] Repeat with wide, square, and portrait source artwork; verify `object-cover` cropping and node placement remain aligned. - [ ] Verify the same saved map and nodes in the Roleplay and Game runtime map views. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence - Before: live reproduction on Engine 2.4.1 with World Maps 1.2.8 measured the editor canvas at 725 x 3 while its background image decoded at 1184 x 888. - After: the focused exact-installed-package Chromium regression passes with a decoded background and a visible 16:9 editor canvas. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated the Hierarchical Maps package to version 1.2.9. * Improved the maps editor canvas to maintain a 16:9 aspect ratio while using available width. * **Bug Fixes** * Improved map display consistency in the World Maps editor, including loaded backgrounds and expanded map views. * **Tests** * Added coverage for package upgrades, installations, and editor canvas sizing across supported workflows. <!-- 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: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-Agents#860
No description provided.