[PR #222] [CLOSED] fix(maps): replace rejected artwork safely #861

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/222
Author: @thetopham
Created: 8/3/2026
Status: ❌ Closed

Base: staging ← Head: fix/216-world-maps-artwork


📝 Commits (1)

  • deb4483 fix(maps): replace rejected artwork safely

📊 Changes

10 files changed (+350 additions, -143 deletions)

View changed files

📝 artifacts/hierarchical-maps-1.3.0.zip (+0 -0)
📝 catalog/catalog.json (+5 -5)
📝 catalog/v2/catalog.json (+5 -5)
📝 catalog/v3/catalog.json (+5 -5)
📝 packages/hierarchical-maps/client.js (+49 -49)
📝 packages/hierarchical-maps/manifest.json (+2 -2)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+70 -75)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx (+51 -2)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/location-artwork.ts (+73 -0)
➕ tests/location-artwork.regression.ts (+90 -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 #216

Why this change

  • Rejecting one role of a shared World Maps image allowed the batch artwork action to silently copy that rejected image back. Deleted Gallery images also remained truthy dangling IDs, suppressing replacement requests and producing mismatched location/request counts.

What changed

  • Resolve artwork completeness against loaded chat and Global Gallery images so dangling IDs remain eligible for replacement.
  • Generate one explicit provider request for every incomplete active location instead of copying a surviving artwork role into a missing role.
  • Explain when one Gallery image fills both roles and provide a reject-both/regenerate path plus a use-for-both replacement action.
  • Rebuild World Maps 1.3.0 payload, artifact, manifest hashes, and all catalog lanes.
  • Add a regression covering rejected references, dangling IDs, loading-state safety, archived locations, and replacement patches.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: None; remains >=2.3.5 <4.0.0.
  • New or changed permissions/entrypoints: None.
  • Restart, storage, update, or uninstall impact: Package update still requires the existing restart; no storage schema or uninstall 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

Automated checks run by the agent:

  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • git diff --check
  • pnpm --filter @marinara-engine/server exec tsx tests/location-artwork.regression.ts
  • ZIP integrity check for artifacts/hierarchical-maps-1.3.0.zip

Manual verification notes

  • Exact package installation and browser verification remain pending while this PR is a draft.
  • Manually reject a shared reference/background image, confirm both roles clear and the replacement creator opens, then use the replacement for both roles.
  • Delete a referenced Gallery image, refresh the Gallery queries, and confirm the location appears as incomplete with one provider request.

Documentation impact

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

UI evidence (if applicable)

  • Pending exact-artifact browser verification.

Summary by CodeRabbit

  • New Features

    • Improved location artwork management by distinguishing reference images from map-background images.
    • Added clearer handling when one image serves both roles, including warnings and replacement options.
    • Added role-specific artwork generation previews and a “Use for both” option where applicable.
    • Updated guidance to distinguish incomplete locations from provider requests and route generation through prompt review.
  • Bug Fixes

    • Prevented unresolved or archived locations from being incorrectly flagged for artwork replacement.
    • Ensured rejected or deleted artwork roles remain eligible for repair.

🔄 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/222 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/3/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `fix/216-world-maps-artwork` --- ### 📝 Commits (1) - [`deb4483`](https://github.com/Pasta-Devs/Marinara-Agents/commit/deb44832b82c7b5f23878fff37a1b468877bc98f) fix(maps): replace rejected artwork safely ### 📊 Changes **10 files changed** (+350 additions, -143 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/hierarchical-maps-1.3.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+5 -5) 📝 `catalog/v2/catalog.json` (+5 -5) 📝 `catalog/v3/catalog.json` (+5 -5) 📝 `packages/hierarchical-maps/client.js` (+49 -49) 📝 `packages/hierarchical-maps/manifest.json` (+2 -2) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+70 -75) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx` (+51 -2) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/location-artwork.ts` (+73 -0) ➕ `tests/location-artwork.regression.ts` (+90 -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 #216 ## Why this change - Rejecting one role of a shared World Maps image allowed the batch artwork action to silently copy that rejected image back. Deleted Gallery images also remained truthy dangling IDs, suppressing replacement requests and producing mismatched location/request counts. ## What changed - Resolve artwork completeness against loaded chat and Global Gallery images so dangling IDs remain eligible for replacement. - Generate one explicit provider request for every incomplete active location instead of copying a surviving artwork role into a missing role. - Explain when one Gallery image fills both roles and provide a reject-both/regenerate path plus a use-for-both replacement action. - Rebuild World Maps 1.3.0 payload, artifact, manifest hashes, and all catalog lanes. - Add a regression covering rejected references, dangling IDs, loading-state safety, archived locations, and replacement patches. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: None; remains `>=2.3.5 <4.0.0`. - New or changed permissions/entrypoints: None. - Restart, storage, update, or uninstall impact: Package update still requires the existing restart; no storage schema or uninstall 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` Automated checks run by the agent: - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - `git diff --check` - `pnpm --filter @marinara-engine/server exec tsx tests/location-artwork.regression.ts` - ZIP integrity check for `artifacts/hierarchical-maps-1.3.0.zip` ### Manual verification notes - Exact package installation and browser verification remain pending while this PR is a draft. - Manually reject a shared reference/background image, confirm both roles clear and the replacement creator opens, then use the replacement for both roles. - Delete a referenced Gallery image, refresh the Gallery queries, and confirm the location appears as incomplete with one provider request. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Pending exact-artifact browser verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved location artwork management by distinguishing reference images from map-background images. * Added clearer handling when one image serves both roles, including warnings and replacement options. * Added role-specific artwork generation previews and a “Use for both” option where applicable. * Updated guidance to distinguish incomplete locations from provider requests and route generation through prompt review. * **Bug Fixes** * Prevented unresolved or archived locations from being incorrectly flagged for artwork replacement. * Ensured rejected or deleted artwork roles remain eligible for repair. <!-- 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:44 +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#861
No description provided.