[PR #59] [MERGED] fix: add Roleplay hierarchical minimap #790

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

📋 Pull Request Information

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

Base: main ← Head: fix/hierarchical-maps-roleplay-minimap-51


📝 Commits (2)

  • 81f72f4 test: require Roleplay map surface
  • e69c112 fix: add Roleplay hierarchical minimap

📊 Changes

10 files changed (+277 additions, -98 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.1.2.zip (+0 -0)
📝 catalog/catalog.json (+7 -7)
📝 packages/hierarchical-maps/client.js (+39 -38)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx (+80 -13)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx (+65 -8)
📝 scripts/build-feature-packages.mjs (+6 -6)
📝 tests/README.md (+2 -2)
📝 tests/hierarchical-maps-lifecycle.regression.ts (+13 -12)
📝 tests/spatial-context.e2e.ts (+62 -9)

📄 Description

Linked issue

Closes #61

Related: #51 shares some mobile chrome and map-edit affordances, but its remaining landscape editor work is separate.

Why this change

  • Roleplay exposes only the Story Location text selector even when an enabled hierarchical map exists.
  • Unlike Game mode, Roleplay has no visual minimap for browsing nested levels, inspecting locations, or selecting a destination.
  • Users must detour through the Agents detail page to view the map and cannot operate it as part of the active Roleplay surface.

What changed

  • Adds a compact Roleplay map control that expands into the visual hierarchical world map without permanently crowding the composer or CYOA choices.
  • Reuses the recursive hierarchy for towns, districts, buildings, floors, dungeon levels, rooms, and other authored location types.
  • Makes map nodes selectable, highlights routes connected to the selection, and exposes named linked-place shortcuts even when a route crosses the viewed layer.
  • Preserves browse-up, breadcrumb, ordered-level, list alternative, current-location, and Set destination behavior from the Game map.
  • Adds a direct Edit hierarchical map action to Roleplay and Game minimaps that opens the package's full-screen editor.
  • Collapses the idle mobile Story Location surface to two 44px controls and constrains the expanded compact map to the available viewport.
  • Publishes Hierarchical Maps 1.1.2 with rebuilt client payload, manifest, immutable artifact, hashes, sizes, catalog entry, and lifecycle/browser proof.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: no new host contract; remains capability API 1.3 on Engine >=3.2.0 <3.3.0, built against Engine 3.2.2 commit 7d5c09975abfd28e7e5e6645ff3b0bdeef86e1d7
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: updating from 1.1.1 to 1.1.2 requires restart; spatial definitions, snapshots, and package storage formats are unchanged

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

  • Reproduced from source and saved local data: an enabled Roleplay map was present, but the Roleplay runtime mounted only the Story Location selector. The visual world-map contribution was available only through Game mode or the Agents detail page.
  • node scripts/validate-catalog.mjs reported Catalog valid: 29 packages (21 agents, 8 features).
  • git diff --check passed.
  • Exact-artifact lifecycle regression passed the 1.1.1 to 1.1.2 update, restart, offline restart, uninstall/reinstall, backup/restore, spatial history, prompt parity, and existing AI route-graph coverage against the declared Engine baseline.
  • Focused live browser proof passed in desktop Chromium at 1440x900 and mobile Chromium at 390x844. It covered compact Roleplay controls, opening the minimap, direct full-screen editing, nested building levels, browse-up, linked-place shortcuts, Set destination, successful turn movement, stale-turn recovery, and disabled-map recovery.
  • Installed the exact local 1.1.2 artifact into the live source profile, restarted Marinara, and confirmed the package reports active, ready, and capability API 1.3.
  • Artifact SHA-256: 24753eaa5bd1aa713aeda8428f8b613c1bc50466e5a3b63931eb821c8a2bba59, 270,681 bytes.
  • Compatibility observation: the exact lifecycle harness against the newest local Engine integration still stops at the previously documented existing_harbor assistant-snapshot assertion before this UI path. The declared-baseline lifecycle and live browser proof pass; this PR does not weaken that unrelated assertion.
  • Real-device touch, mobile landscape, light theme, and SillyTavern theme inspection remain human verification items.

Documentation impact

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

No catalog membership or setup guidance changed. The package now makes its existing hierarchy and movement controls directly usable from Roleplay.

UI evidence (if applicable)

No screenshots or recordings were committed. Automated browser proof used a synthetic map and did not capture private chat content.


🔄 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/59 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `fix/hierarchical-maps-roleplay-minimap-51` --- ### 📝 Commits (2) - [`81f72f4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/81f72f4fc3db86305b3f5205b877a44564074f1b) test: require Roleplay map surface - [`e69c112`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e69c1123bb062f8948d6e9c6f59ab429e67fffbf) fix: add Roleplay hierarchical minimap ### 📊 Changes **10 files changed** (+277 additions, -98 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.1.2.zip` (+0 -0) 📝 `catalog/catalog.json` (+7 -7) 📝 `packages/hierarchical-maps/client.js` (+39 -38) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx` (+80 -13) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx` (+65 -8) 📝 `scripts/build-feature-packages.mjs` (+6 -6) 📝 `tests/README.md` (+2 -2) 📝 `tests/hierarchical-maps-lifecycle.regression.ts` (+13 -12) 📝 `tests/spatial-context.e2e.ts` (+62 -9) </details> ### 📄 Description ## Linked issue Closes #61 Related: #51 shares some mobile chrome and map-edit affordances, but its remaining landscape editor work is separate. ## Why this change - Roleplay exposes only the Story Location text selector even when an enabled hierarchical map exists. - Unlike Game mode, Roleplay has no visual minimap for browsing nested levels, inspecting locations, or selecting a destination. - Users must detour through the Agents detail page to view the map and cannot operate it as part of the active Roleplay surface. ## What changed - Adds a compact Roleplay map control that expands into the visual hierarchical world map without permanently crowding the composer or CYOA choices. - Reuses the recursive hierarchy for towns, districts, buildings, floors, dungeon levels, rooms, and other authored location types. - Makes map nodes selectable, highlights routes connected to the selection, and exposes named linked-place shortcuts even when a route crosses the viewed layer. - Preserves browse-up, breadcrumb, ordered-level, list alternative, current-location, and Set destination behavior from the Game map. - Adds a direct **Edit hierarchical map** action to Roleplay and Game minimaps that opens the package's full-screen editor. - Collapses the idle mobile Story Location surface to two 44px controls and constrains the expanded compact map to the available viewport. - Publishes Hierarchical Maps 1.1.2 with rebuilt client payload, manifest, immutable artifact, hashes, sizes, catalog entry, and lifecycle/browser proof. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: no new host contract; remains capability API 1.3 on Engine `>=3.2.0 <3.3.0`, built against Engine 3.2.2 commit `7d5c09975abfd28e7e5e6645ff3b0bdeef86e1d7` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: updating from 1.1.1 to 1.1.2 requires restart; spatial definitions, snapshots, and package storage formats are unchanged ## 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 - Reproduced from source and saved local data: an enabled Roleplay map was present, but the Roleplay runtime mounted only the Story Location selector. The visual world-map contribution was available only through Game mode or the Agents detail page. - `node scripts/validate-catalog.mjs` reported `Catalog valid: 29 packages (21 agents, 8 features).` - `git diff --check` passed. - Exact-artifact lifecycle regression passed the 1.1.1 to 1.1.2 update, restart, offline restart, uninstall/reinstall, backup/restore, spatial history, prompt parity, and existing AI route-graph coverage against the declared Engine baseline. - Focused live browser proof passed in desktop Chromium at 1440x900 and mobile Chromium at 390x844. It covered compact Roleplay controls, opening the minimap, direct full-screen editing, nested building levels, browse-up, linked-place shortcuts, Set destination, successful turn movement, stale-turn recovery, and disabled-map recovery. - Installed the exact local 1.1.2 artifact into the live source profile, restarted Marinara, and confirmed the package reports `active`, `ready`, and capability API 1.3. - Artifact SHA-256: `24753eaa5bd1aa713aeda8428f8b613c1bc50466e5a3b63931eb821c8a2bba59`, 270,681 bytes. - Compatibility observation: the exact lifecycle harness against the newest local Engine integration still stops at the previously documented `existing_harbor` assistant-snapshot assertion before this UI path. The declared-baseline lifecycle and live browser proof pass; this PR does not weaken that unrelated assertion. - Real-device touch, mobile landscape, light theme, and SillyTavern theme inspection remain human verification items. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No catalog membership or setup guidance changed. The package now makes its existing hierarchy and movement controls directly usable from Roleplay. ## UI evidence (if applicable) No screenshots or recordings were committed. Automated browser proof used a synthetic map and did not capture private chat content. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:30:58 +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#790
No description provided.