[PR #87] [MERGED] Build Hierarchical Maps 1.1.6 full customization and UX sweep #796

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/87
Author: @thetopham
Created: 7/18/2026
Status: ✅ Merged
Merged: 7/18/2026
Merged by: @SpicyMarinara

Base: main ← Head: agent/maps-1.1.6-full-prompts-review-fixes


📝 Commits (10+)

  • b315427 fix: clarify Maps transfer and hierarchy controls
  • 0fbfe02 build: publish Hierarchical Maps 1.1.6
  • 74ca6ed feat: expand Hierarchical Maps workflows
  • e8ae5a9 build: refresh Hierarchical Maps 1.1.6
  • 9b176dd build: target Engine 2.3.3 release
  • aa3021b fix: harden Maps sweep interactions
  • 34cb4b4 build: refresh verified Maps sweep artifact
  • a227ed1 feat: complete Maps prompt customization sweep
  • 238423f Add named Hierarchical Maps prompt options
  • e5d496d feat: complete Maps customization and viewport UX

📊 Changes

27 files changed (+5342 additions, -511 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.1.6.zip (+0 -0)
📝 catalog/catalog.json (+12 -12)
📝 catalog/v2/catalog.json (+12 -12)
📝 catalog/v3/catalog.json (+1 -1)
📝 packages/hierarchical-maps/client.js (+71 -41)
📝 packages/hierarchical-maps/engine-boundary.json (+2 -2)
📝 packages/hierarchical-maps/manifest.json (+8 -8)
📝 packages/hierarchical-maps/server.mjs (+59 -48)
📝 packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx (+131 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+406 -28)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapsHome.tsx (+987 -12)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx (+85 -10)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx (+23 -9)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx (+96 -20)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialHierarchyProfileFields.tsx (+160 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialMapAiBuilder.tsx (+357 -37)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/editor-state.ts (+32 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/package-api.ts (+3 -0)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-route-plans.ts (+308 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts (+144 -3)

...and 7 more files

📄 Description

Linked issues

Closes #69
Closes #70
Closes #71
Closes #72
Closes #74
Closes #76
Closes #77
Closes #86

Supersedes closed PR #84 with the complete branch history and the subsequent Maps customization, runtime, settings, navigation, and history-safe reset work.

Why this change

Hierarchical Maps 1.1.6 needed a coherent authoring and usability pass instead of isolated package artifacts that could overwrite one another. Users reported reversed transfer icons, flat AI expansion choices, difficult coordinate editing, fixed hierarchy vocabulary, unclear import failures, inaccessible generation prompts, opaque navigation behavior, unreadable overlays, and no safe way to replace a map and start over.

This PR keeps those related changes in one reviewable package build so the manifest, artifact, catalog metadata, prompt behavior, and runtime UI all describe the same version.

What changed

  • Corrected the Hierarchical Maps import and export icon directions.
  • Made Expand with AI hierarchy choices nested and indented according to the authored map.
  • Added drag-to-arrange map editing, keyboard nudging, and advanced precision controls.
  • Added Auto, Template, and Custom hierarchy profiles with editable location-type vocabulary, stable IDs, reusable templates, and AI-selected setting-specific hierarchies.
  • Added actionable stable-ID diagnostics and repair guidance when campaign history blocks a replacement import.
  • Exposed complete Roleplay and Game generation templates, named prompt options, reusable guidance, template-variable documentation, prompt previews, and global prompt libraries in the Agent settings UI.
  • Moved editable map location types into the Hierarchical Maps Agent settings and ordered them after the prompt controls.
  • Added a playable Maps view beside Edit map so users can browse linked locations and use navigation controls from Agent settings.
  • Added shortest-path destination planning with visible progress while preserving one authoritative hop per accepted owner turn.
  • Fixed opaque desktop map surfaces, tall-hierarchy scrolling, mobile touch scrolling, and oversized tower-map behavior.
  • Added a history-safe Delete map workflow. Maps without committed history are replaced by a blank New world; history-linked locations retain stable IDs and are archived. The destructive dialog explains both outcomes, warns that unsaved edits are discarded, recommends exporting first, and uses explicit Delete and Go back and backup first actions. Its package-local overlay preserves the themed dialog and keeps it above the full-screen Maps workspace from every entry point.
  • Rebuilt the Hierarchical Maps 1.1.6 payloads, manifest, ZIP artifact, and every catalog lane against Engine 2.3.3.

Package and compatibility impact

  • Affected package: hierarchical-maps
  • Engine requirement: Marinara Engine 2.3.3 or newer
  • Permissions and entrypoints: unchanged
  • Storage: adds package-owned hierarchy, prompt-library, and route-plan metadata while preserving the Engine spatial-definition contract and campaign-history stable IDs
  • Update behavior: package updates still require an Engine restart

Validation

  • Run node scripts/test-catalog-lanes.mjs
  • Run node scripts/validate-catalog.mjs
  • Run git diff --check
  • Run the exact-artifact Hierarchical Maps lifecycle regression
  • Install or update Hierarchical Maps 1.1.6 through Marinara Engine 2.3.3
  • Manually verify desktop and mobile map authoring, navigation, prompts, and deletion
  • Read and follow CONTRIBUTING.md

Automated evidence completed locally:

  • Catalog lane routing and catalog validation pass for the legacy, v2, and v3 catalogs.
  • git diff --check passes.
  • The exact 1.1.6 artifact lifecycle regression passes update, AI-created routes, expansion, prompt parity, owner-turn persistence, Roleplay and Game history, branch/delete/import/export/checkpoint preservation, offline restart, remove, reinstall, backup, and restore.
  • The final artifact is installed on a local Engine 2.3.3 service. Health reports Hierarchical Maps 1.1.6 active and ready, and the served client bundle hash matches the pushed manifest.

Focused Playwright coverage passes on desktop and mobile: 4 tests passed for the themed package dialog, custom labels, cancel behavior, pre-history deletion, history-protected archival, stable IDs, and the Save boundary.

Manual verification requested

  • Verify import/export icon direction and nested Expand with AI choices.
  • Verify drag arrangement, keyboard nudging, tall tower scrolling, and mobile touch scrolling.
  • Verify Auto, Template, and Custom location types with a real provider.
  • Verify Roleplay and Game system/user templates, named global prompt options, variable help, save/load/reset, and prompt preview.
  • Verify Edit map and Maps open the intended authoring and playable views.
  • Verify multi-hop route progress advances one accepted owner turn at a time and can be cancelled or changed.
  • Verify Delete shows the danger warning, Delete, and Go back and backup first.
  • Verify pre-history deletion removes the old map only after Save.
  • Verify history-linked deletion archives every old location, preserves stable IDs, and creates a blank New world only after Save.

UI evidence

No screenshots are attached. Reviewers can exercise the complete artifact from this draft PR branch.

Summary by CodeRabbit

  • New Features
    • Added route planning with shortest-route previews, progress tracking, and route replacement controls.
    • Added hierarchical location types with editable labels, templates, and per-location assignments.
    • Added map layout editing with drag-and-drop and keyboard positioning.
    • Expanded AI map generation with customizable prompts, preview, and prompt libraries.
    • Added map deletion, import validation guidance, and improved map open/create flows.
  • Improvements
    • Updated the Hierarchical Maps package to version 1.1.6 with engine compatibility requirements.
    • Improved map scrolling, focus management, and route status displays.

🔄 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/87 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/18/2026 **Status:** ✅ Merged **Merged:** 7/18/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `agent/maps-1.1.6-full-prompts-review-fixes` --- ### 📝 Commits (10+) - [`b315427`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b3154278d71d38d3b222c84510b8ae41a40edc98) fix: clarify Maps transfer and hierarchy controls - [`0fbfe02`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0fbfe029a39b6c32f7f7b52ba16cccc76c962366) build: publish Hierarchical Maps 1.1.6 - [`74ca6ed`](https://github.com/Pasta-Devs/Marinara-Agents/commit/74ca6eda60ab24165293b286453f35fd084cd07c) feat: expand Hierarchical Maps workflows - [`e8ae5a9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e8ae5a90dd9da17371c314aa6dea71f5d3492aa9) build: refresh Hierarchical Maps 1.1.6 - [`9b176dd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9b176dd14b5440439c287df65c68a0d409041055) build: target Engine 2.3.3 release - [`aa3021b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aa3021b1ebb6e58453d90bc254df00b279eed7da) fix: harden Maps sweep interactions - [`34cb4b4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/34cb4b412589d8ebb3999710b496e0a4ab568bb9) build: refresh verified Maps sweep artifact - [`a227ed1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a227ed14b8997d1c2999bcfa31598d0ef17e09ed) feat: complete Maps prompt customization sweep - [`238423f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/238423fe68e8eda1abb99102c40eeca276bf9fca) Add named Hierarchical Maps prompt options - [`e5d496d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e5d496dd5f8bd533ca6b5a655d8a05c5d52ada01) feat: complete Maps customization and viewport UX ### 📊 Changes **27 files changed** (+5342 additions, -511 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.1.6.zip` (+0 -0) 📝 `catalog/catalog.json` (+12 -12) 📝 `catalog/v2/catalog.json` (+12 -12) 📝 `catalog/v3/catalog.json` (+1 -1) 📝 `packages/hierarchical-maps/client.js` (+71 -41) 📝 `packages/hierarchical-maps/engine-boundary.json` (+2 -2) 📝 `packages/hierarchical-maps/manifest.json` (+8 -8) 📝 `packages/hierarchical-maps/server.mjs` (+59 -48) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx` (+131 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+406 -28) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapsHome.tsx` (+987 -12) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx` (+85 -10) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx` (+23 -9) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx` (+96 -20) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialHierarchyProfileFields.tsx` (+160 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialMapAiBuilder.tsx` (+357 -37) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/editor-state.ts` (+32 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/package-api.ts` (+3 -0) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-route-plans.ts` (+308 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts` (+144 -3) _...and 7 more files_ </details> ### 📄 Description ## Linked issues Closes #69 Closes #70 Closes #71 Closes #72 Closes #74 Closes #76 Closes #77 Closes #86 Supersedes closed PR #84 with the complete branch history and the subsequent Maps customization, runtime, settings, navigation, and history-safe reset work. ## Why this change Hierarchical Maps 1.1.6 needed a coherent authoring and usability pass instead of isolated package artifacts that could overwrite one another. Users reported reversed transfer icons, flat AI expansion choices, difficult coordinate editing, fixed hierarchy vocabulary, unclear import failures, inaccessible generation prompts, opaque navigation behavior, unreadable overlays, and no safe way to replace a map and start over. This PR keeps those related changes in one reviewable package build so the manifest, artifact, catalog metadata, prompt behavior, and runtime UI all describe the same version. ## What changed - Corrected the Hierarchical Maps import and export icon directions. - Made Expand with AI hierarchy choices nested and indented according to the authored map. - Added drag-to-arrange map editing, keyboard nudging, and advanced precision controls. - Added Auto, Template, and Custom hierarchy profiles with editable location-type vocabulary, stable IDs, reusable templates, and AI-selected setting-specific hierarchies. - Added actionable stable-ID diagnostics and repair guidance when campaign history blocks a replacement import. - Exposed complete Roleplay and Game generation templates, named prompt options, reusable guidance, template-variable documentation, prompt previews, and global prompt libraries in the Agent settings UI. - Moved editable map location types into the Hierarchical Maps Agent settings and ordered them after the prompt controls. - Added a playable Maps view beside Edit map so users can browse linked locations and use navigation controls from Agent settings. - Added shortest-path destination planning with visible progress while preserving one authoritative hop per accepted owner turn. - Fixed opaque desktop map surfaces, tall-hierarchy scrolling, mobile touch scrolling, and oversized tower-map behavior. - Added a history-safe Delete map workflow. Maps without committed history are replaced by a blank `New world`; history-linked locations retain stable IDs and are archived. The destructive dialog explains both outcomes, warns that unsaved edits are discarded, recommends exporting first, and uses explicit `Delete` and `Go back and backup first` actions. Its package-local overlay preserves the themed dialog and keeps it above the full-screen Maps workspace from every entry point. - Rebuilt the Hierarchical Maps 1.1.6 payloads, manifest, ZIP artifact, and every catalog lane against Engine 2.3.3. ## Package and compatibility impact - Affected package: `hierarchical-maps` - Engine requirement: Marinara Engine 2.3.3 or newer - Permissions and entrypoints: unchanged - Storage: adds package-owned hierarchy, prompt-library, and route-plan metadata while preserving the Engine spatial-definition contract and campaign-history stable IDs - Update behavior: package updates still require an Engine restart ## Validation - [x] Run `node scripts/test-catalog-lanes.mjs` - [x] Run `node scripts/validate-catalog.mjs` - [x] Run `git diff --check` - [ ] Run the exact-artifact Hierarchical Maps lifecycle regression - [ ] Install or update Hierarchical Maps 1.1.6 through Marinara Engine 2.3.3 - [ ] Manually verify desktop and mobile map authoring, navigation, prompts, and deletion - [ ] Read and follow `CONTRIBUTING.md` Automated evidence completed locally: - Catalog lane routing and catalog validation pass for the legacy, v2, and v3 catalogs. - `git diff --check` passes. - The exact 1.1.6 artifact lifecycle regression passes update, AI-created routes, expansion, prompt parity, owner-turn persistence, Roleplay and Game history, branch/delete/import/export/checkpoint preservation, offline restart, remove, reinstall, backup, and restore. - The final artifact is installed on a local Engine 2.3.3 service. Health reports Hierarchical Maps 1.1.6 active and ready, and the served client bundle hash matches the pushed manifest. Focused Playwright coverage passes on desktop and mobile: 4 tests passed for the themed package dialog, custom labels, cancel behavior, pre-history deletion, history-protected archival, stable IDs, and the Save boundary. ## Manual verification requested - [x] Verify import/export icon direction and nested Expand with AI choices. - [x] Verify drag arrangement, keyboard nudging, tall tower scrolling, and mobile touch scrolling. - [x] Verify Auto, Template, and Custom location types with a real provider. - [x] Verify Roleplay and Game system/user templates, named global prompt options, variable help, save/load/reset, and prompt preview. - [x] Verify Edit map and Maps open the intended authoring and playable views. - [x] Verify multi-hop route progress advances one accepted owner turn at a time and can be cancelled or changed. - [x] Verify Delete shows the danger warning, `Delete`, and `Go back and backup first`. - [x] Verify pre-history deletion removes the old map only after Save. - [x] Verify history-linked deletion archives every old location, preserves stable IDs, and creates a blank `New world` only after Save. ## UI evidence No screenshots are attached. Reviewers can exercise the complete artifact from this draft PR branch. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added route planning with shortest-route previews, progress tracking, and route replacement controls. * Added hierarchical location types with editable labels, templates, and per-location assignments. * Added map layout editing with drag-and-drop and keyboard positioning. * Expanded AI map generation with customizable prompts, preview, and prompt libraries. * Added map deletion, import validation guidance, and improved map open/create flows. * **Improvements** * Updated the Hierarchical Maps package to version 1.1.6 with engine compatibility requirements. * Improved map scrolling, focus management, and route status displays. <!-- 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:03 +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#796
No description provided.