[PR #148] [MERGED] feat(maps): add customizable Direct Link lines #831

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

📋 Pull Request Information

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

Base: staging ← Head: feature/maps-connection-lines-retry


📝 Commits (3)

  • ee83815 feat(maps): add customizable connection lines
  • 6d26b87 fix(maps): address connection review feedback
  • 3ee346b Merge remote-tracking branch 'origin/staging' into feature/maps-connection-lines-retry

📊 Changes

18 files changed (+588 additions, -144 deletions)

View changed files

📝 README.md (+1 -1)
➕ artifacts/hierarchical-maps-1.2.2.zip (+0 -0)
📝 catalog/catalog.json (+12 -12)
📝 catalog/v2/catalog.json (+12 -12)
📝 catalog/v3/catalog.json (+1 -1)
📝 packages/hierarchical-maps/agents.json (+1 -1)
📝 packages/hierarchical-maps/client.js (+49 -49)
📝 packages/hierarchical-maps/manifest.json (+8 -8)
📝 packages/hierarchical-maps/server.mjs (+17 -17)
📝 packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx (+43 -26)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+20 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx (+55 -1)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx (+68 -1)
📝 packages/hierarchical-maps/src/engine/packages/maps-shared/src/maps-model.ts (+94 -1)
📝 packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/ai-draft.ts (+2 -0)
📝 scripts/build-feature-packages.mjs (+2 -2)
📝 tests/hierarchical-maps-lifecycle.regression.ts (+144 -10)
📝 tests/spatial-context.e2e.ts (+59 -2)

📄 Description

Closes #146

Why this change

World Maps already stores Direct Links and draws them in the runtime minimap, but the map editor does not show those relationships and artwork can make the runtime lines difficult to read. Users also need presentation controls without replacing the existing free-form Direct Link name.

What changed

  • Draw available Direct Links between sibling locations in the map editor and runtime minimap.
  • Add optional per-link color plus solid, dashed, and dotted line styles.
  • Keep existing maps backward compatible with an automatic dashed accent line.
  • Add an editor-owned Hide/Show connections setting that is saved with the map; the minimap follows it without exposing another toggle.
  • Strengthen unselected line contrast over map artwork.
  • Preserve presentation metadata across AI drafting, package update/reinstall, backup, and restore.
  • Rebuild World Maps as 1.2.2 and update all catalog lanes and the release artifact.

Automated validation

  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • node tests/package-engine-boundary.regression.mjs
  • strict TypeScript checks for the package-owned client and server source
  • tests/hierarchical-maps-lifecycle.regression.ts
  • unzip -t artifacts/hierarchical-maps-1.2.2.zip
  • git diff --check
  • focused desktop Chromium proof for custom runtime line rendering

The full inherited spatial-context browser scenario also encounters unrelated staging assertions around the collapsed map-bar opacity and stale export controls. The new runtime connection assertions passed in an isolated focused run before those later baseline checks.

Manual verification

  • Manually verify Direct Links appear between sibling locations in the map editor.
  • Manually verify custom colors and solid/dashed/dotted styles remain legible over map artwork.
  • Manually verify the editor Hide/Show setting persists after Save and controls minimap visibility.
  • Manually verify the minimap has no separate connection visibility button.
  • Manually verify existing maps default to visible dashed lines without migration prompts.

Summary by CodeRabbit

  • New Features

    • Customize map connection lines with colors and solid, dashed, or dotted styles.
    • Show or hide connections from the map view.
    • Configure link presentation settings directly from location details.
    • Preserve connection visibility and styling across generated and saved maps.
  • Updates

    • World Maps package updated to version 1.2.2.
    • Documentation and package descriptions now highlight customizable Direct Link lines.
  • Tests

    • Added coverage confirming connection styling and visibility persist correctly.

🔄 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/148 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/31/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `feature/maps-connection-lines-retry` --- ### 📝 Commits (3) - [`ee83815`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ee8381536f6b3df01998f6841bc8b2bbde70b43c) feat(maps): add customizable connection lines - [`6d26b87`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6d26b87729c6c98f1bc71d1fec591fc6c2c02ddc) fix(maps): address connection review feedback - [`3ee346b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3ee346bdb68ee0184d3281c50bad1dc943269cf3) Merge remote-tracking branch 'origin/staging' into feature/maps-connection-lines-retry ### 📊 Changes **18 files changed** (+588 additions, -144 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) ➕ `artifacts/hierarchical-maps-1.2.2.zip` (+0 -0) 📝 `catalog/catalog.json` (+12 -12) 📝 `catalog/v2/catalog.json` (+12 -12) 📝 `catalog/v3/catalog.json` (+1 -1) 📝 `packages/hierarchical-maps/agents.json` (+1 -1) 📝 `packages/hierarchical-maps/client.js` (+49 -49) 📝 `packages/hierarchical-maps/manifest.json` (+8 -8) 📝 `packages/hierarchical-maps/server.mjs` (+17 -17) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx` (+43 -26) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+20 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx` (+55 -1) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx` (+68 -1) 📝 `packages/hierarchical-maps/src/engine/packages/maps-shared/src/maps-model.ts` (+94 -1) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/ai-draft.ts` (+2 -0) 📝 `scripts/build-feature-packages.mjs` (+2 -2) 📝 `tests/hierarchical-maps-lifecycle.regression.ts` (+144 -10) 📝 `tests/spatial-context.e2e.ts` (+59 -2) </details> ### 📄 Description Closes #146 ## Why this change World Maps already stores Direct Links and draws them in the runtime minimap, but the map editor does not show those relationships and artwork can make the runtime lines difficult to read. Users also need presentation controls without replacing the existing free-form Direct Link name. ## What changed - Draw available Direct Links between sibling locations in the map editor and runtime minimap. - Add optional per-link color plus solid, dashed, and dotted line styles. - Keep existing maps backward compatible with an automatic dashed accent line. - Add an editor-owned Hide/Show connections setting that is saved with the map; the minimap follows it without exposing another toggle. - Strengthen unselected line contrast over map artwork. - Preserve presentation metadata across AI drafting, package update/reinstall, backup, and restore. - Rebuild World Maps as 1.2.2 and update all catalog lanes and the release artifact. ## Automated validation - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - `node tests/package-engine-boundary.regression.mjs` - strict TypeScript checks for the package-owned client and server source - `tests/hierarchical-maps-lifecycle.regression.ts` - `unzip -t artifacts/hierarchical-maps-1.2.2.zip` - `git diff --check` - focused desktop Chromium proof for custom runtime line rendering The full inherited spatial-context browser scenario also encounters unrelated staging assertions around the collapsed map-bar opacity and stale export controls. The new runtime connection assertions passed in an isolated focused run before those later baseline checks. ## Manual verification - [ ] Manually verify Direct Links appear between sibling locations in the map editor. - [ ] Manually verify custom colors and solid/dashed/dotted styles remain legible over map artwork. - [ ] Manually verify the editor Hide/Show setting persists after Save and controls minimap visibility. - [ ] Manually verify the minimap has no separate connection visibility button. - [ ] Manually verify existing maps default to visible dashed lines without migration prompts. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Customize map connection lines with colors and solid, dashed, or dotted styles. * Show or hide connections from the map view. * Configure link presentation settings directly from location details. * Preserve connection visibility and styling across generated and saved maps. * **Updates** * World Maps package updated to version 1.2.2. * Documentation and package descriptions now highlight customizable Direct Link lines. * **Tests** * Added coverage confirming connection styling and visibility persist correctly. <!-- 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:25 +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#831
No description provided.