[PR #472] [MERGED] fix(maps): allow child map background uploads in templates #986

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5331-child-map-upload


📝 Commits (2)

  • 2be61e1 fix(maps): upload child map backgrounds in templates
  • 4ec1891 test(maps): isolate uploaded gallery fixture

📊 Changes

9 files changed (+149 additions, -91 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.4.1.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 packages/hierarchical-maps/client.js (+22 -22)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx (+42 -35)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/spatial-context.e2e.ts (+63 -12)

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

Why this change

  • Shared World Maps templates allow users to choose an existing Global Gallery image for a child-map background, but they did not offer the direct Upload action already available for chat-owned maps. This left users unable to add their own background from the template editor without a separate gallery workflow.

What changed

  • Added the existing Upload control to child-map backgrounds in shared-world and independent-template editors.
  • Routed shared/template uploads through Global Gallery and persisted the namespaced global-gallery: reference; chat-owned map uploads continue using the chat Gallery.
  • Kept upload failures beside the reference or background control that initiated them.
  • Added exact-package browser coverage for upload, Global Gallery persistence, export/import, and copying the template into a Roleplay chat.
  • Bumped World Maps to 1.4.1 and rebuilt its client payload, manifest, ZIP artifact, hashes, and all catalog lanes.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: unchanged; Engine >=2.4.2 <4.0.0
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: restart requirement is unchanged; shared/template uploads use the existing Global Gallery storage and reference contract. A local update from World Maps 1.2.2 to 1.4.1 and restart activation were exercised. Uninstall cleanup was not manually exercised for this UI-only change.

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

  • Automated validation completed: npm run check (0 errors), catalog-lane validation, package-localization validation, catalog validation, World Maps UI contract regression, package boundary validation, ZIP integrity, and git diff --check.
  • Focused desktop Playwright passed against the exact rebuilt 1.4.1 ZIP: upload a child-map background in an independent template, verify Global Gallery storage, export/import both shared images, and copy the template into Roleplay with both image references preserved.
  • Installed World Maps 1.4.1 over local 1.2.2, restarted Engine 2.4.4 staging, and verified /api/health reports the package active and ready. The served package client hash matched the rebuilt payload.
  • The maintainer confirmed the local desktop UI looks good on World Maps 1.4.1.
  • Mobile browser verification and uninstall cleanup remain pending.

Documentation impact

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

No documentation change is proposed because this restores the existing direct-upload affordance in the parallel child-map background flow without adding a new workflow or setting.

UI evidence (if applicable)

  • The linked issue contains the before-state screenshot. No new screenshot is attached; the exact-package browser regression verifies that the Upload control is visible, meets the 44 CSS-pixel minimum interactive size, and completes the shared-template workflow.

Summary by CodeRabbit

  • New Features

    • Added support for uploading location and child-map background artwork to the shared gallery when chat artwork is unavailable.
    • Improved artwork handling across references, backgrounds, exports, imports, and copied templates.
    • Added clearer, section-specific upload error messages.
  • Bug Fixes

    • Standardized artwork metadata and reference IDs across upload destinations.
    • Updated map library labels and ensured upload controls display consistently.
  • Maintenance

    • Released Hierarchical Maps version 1.4.1 with refreshed package metadata.

🔄 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/472 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/20/2026 **Status:** ✅ Merged **Merged:** 8/20/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `fix/5331-child-map-upload` --- ### 📝 Commits (2) - [`2be61e1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2be61e1078c60e7ced2bbab421a9e514425a8e8f) fix(maps): upload child map backgrounds in templates - [`4ec1891`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4ec1891de82b6179662b9ce7ef414f84a46fb6e0) test(maps): isolate uploaded gallery fixture ### 📊 Changes **9 files changed** (+149 additions, -91 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.4.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `packages/hierarchical-maps/client.js` (+22 -22) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx` (+42 -35) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/spatial-context.e2e.ts` (+63 -12) </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 #473 ## Why this change - Shared World Maps templates allow users to choose an existing Global Gallery image for a child-map background, but they did not offer the direct Upload action already available for chat-owned maps. This left users unable to add their own background from the template editor without a separate gallery workflow. ## What changed - Added the existing Upload control to child-map backgrounds in shared-world and independent-template editors. - Routed shared/template uploads through Global Gallery and persisted the namespaced `global-gallery:` reference; chat-owned map uploads continue using the chat Gallery. - Kept upload failures beside the reference or background control that initiated them. - Added exact-package browser coverage for upload, Global Gallery persistence, export/import, and copying the template into a Roleplay chat. - Bumped World Maps to 1.4.1 and rebuilt its client payload, manifest, ZIP artifact, hashes, and all catalog lanes. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: unchanged; Engine `>=2.4.2 <4.0.0` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: restart requirement is unchanged; shared/template uploads use the existing Global Gallery storage and reference contract. A local update from World Maps 1.2.2 to 1.4.1 and restart activation were exercised. Uninstall cleanup was not manually exercised for this UI-only change. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] 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 - Automated validation completed: `npm run check` (0 errors), catalog-lane validation, package-localization validation, catalog validation, World Maps UI contract regression, package boundary validation, ZIP integrity, and `git diff --check`. - Focused desktop Playwright passed against the exact rebuilt 1.4.1 ZIP: upload a child-map background in an independent template, verify Global Gallery storage, export/import both shared images, and copy the template into Roleplay with both image references preserved. - Installed World Maps 1.4.1 over local 1.2.2, restarted Engine 2.4.4 staging, and verified `/api/health` reports the package active and ready. The served package client hash matched the rebuilt payload. - The maintainer confirmed the local desktop UI looks good on World Maps 1.4.1. - Mobile browser verification and uninstall cleanup remain pending. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No documentation change is proposed because this restores the existing direct-upload affordance in the parallel child-map background flow without adding a new workflow or setting. ## UI evidence (if applicable) - The linked issue contains the before-state screenshot. No new screenshot is attached; the exact-package browser regression verifies that the Upload control is visible, meets the 44 CSS-pixel minimum interactive size, and completes the shared-template workflow. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added support for uploading location and child-map background artwork to the shared gallery when chat artwork is unavailable. - Improved artwork handling across references, backgrounds, exports, imports, and copied templates. - Added clearer, section-specific upload error messages. - **Bug Fixes** - Standardized artwork metadata and reference IDs across upload destinations. - Updated map library labels and ensured upload controls display consistently. - **Maintenance** - Released Hierarchical Maps version 1.4.1 with refreshed package metadata. <!-- 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:33:00 +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#986
No description provided.