[PR #303] [MERGED] Add World Maps connection selector to the map editor #901

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

📋 Pull Request Information

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

Base: staging ← Head: agent/290-editor-connection-selector


📝 Commits (4)

  • 9eca0ab Start World Maps editor connection selector
  • 2fd496a Add World Maps editor connection selector
  • e722f91 Merge remote-tracking branch 'origin/staging' into agent/290-editor-connection-selector
  • 6a97313 test(world-maps): clean up connection fixtures

📊 Changes

18 files changed (+668 additions, -933 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.3.5.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 catalog/v2/catalog.json (+9 -9)
📝 catalog/v3/catalog.json (+9 -9)
📝 packages/hierarchical-maps/client.js (+30 -407)
📝 packages/hierarchical-maps/manifest.json (+5 -5)
📝 packages/hierarchical-maps/server.mjs (+32 -409)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+1 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapsHome.tsx (+24 -30)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialConnectionOverrideSelect.tsx (+72 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialMapAiBuilder.tsx (+94 -2)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/locales/en.json (+15 -0)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/localization.tsx (+48 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts (+1 -0)
📝 scripts/build-feature-packages.mjs (+18 -12)
📝 tests/hierarchical-maps-lifecycle.regression.ts (+25 -14)
📝 tests/spatial-context.e2e.ts (+231 -27)
📝 tests/world-maps-ui-contract.regression.mjs (+45 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository from staging to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #290

Why this change

World Maps users could discover too late that AI map authoring was using an unsuitable connection. Changing the package override required leaving the map editor, which interrupted the authoring flow and made the effective model harder to confirm.

What changed

  • Added a compact Connection Override selector to the AI map builder.
  • Reused the selector on the World Maps home screen so both surfaces show the same text-generation connections, model/provider details, chat fallback, and unavailable saved state.
  • Saved editor changes immediately for the next draft or expansion, while disabling changes during an active request and preserving the current editor draft/result.
  • Added package-local English localization keys and accessible saving, saved, and error states.
  • Rebuilt the World Maps 1.3.5 payload, manifest, ZIP, lifecycle fixtures, and all catalog lanes.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: none; remains Marinara Engine >=2.4.2 <4.0.0
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: standard package update and restart; existing maps and Agent settings are preserved

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 evidence run by the coding agent:

  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-package-locales.mjs
  • node scripts/validate-catalog.mjs
  • node tests/world-maps-ui-contract.regression.mjs
  • Exact 1.3.5 artifact lifecycle regression through Engine: update, restart, offline restart, remove, reinstall, backup, and restore
  • Focused Playwright regression in desktop and mobile Chromium: unavailable saved state, text-only options, model/provider labels, persistence, draft preservation, and home/editor synchronization
  • git diff --check

Manual verification notes

Human manual verification has not been performed. Please:

  • Manually verify the selector on desktop and mobile.
  • Manually switch between the chat connection, an available text connection, and an unavailable saved connection.
  • Manually verify a changed connection applies to the next draft or expansion without changing the map editor state.
  • Manually install/update World Maps 1.3.5 and confirm the required Engine restart.

Documentation impact

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

No documentation files changed. This adds the existing package setting to the map-authoring surface without changing setup, compatibility, or catalog membership.

UI evidence (if applicable)

The focused browser regression passed in desktop and mobile Chromium. No human-captured screenshot is attached; the manual visual review items above remain open.

Summary by CodeRabbit

  • New Features

    • Added AI connection selection for World Maps, including model and provider details.
    • Connection changes now save independently while preserving unsaved map instructions.
    • Added localized labels, status messages, help text, and unavailable-connection handling.
    • Added support for localization and right-to-left display direction.
  • Bug Fixes

    • Prevented map generation while connection settings are loading or saving.
    • Preserved selected connections that are temporarily unavailable.
  • Chores

    • Updated World Maps to version 1.3.5.

🔄 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/303 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/10/2026 **Status:** ✅ Merged **Merged:** 8/10/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `agent/290-editor-connection-selector` --- ### 📝 Commits (4) - [`9eca0ab`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9eca0ab724ac51ef79cfb04776043f047e4c81f0) Start World Maps editor connection selector - [`2fd496a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2fd496a701e33df26f8b2f80572f3d36591d62b0) Add World Maps editor connection selector - [`e722f91`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e722f91c44835bbe8592313b35fdaa3e09b90957) Merge remote-tracking branch 'origin/staging' into agent/290-editor-connection-selector - [`6a97313`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6a9731337cf352fddb1700a63d474590510c28d3) test(world-maps): clean up connection fixtures ### 📊 Changes **18 files changed** (+668 additions, -933 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.3.5.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `catalog/v2/catalog.json` (+9 -9) 📝 `catalog/v3/catalog.json` (+9 -9) 📝 `packages/hierarchical-maps/client.js` (+30 -407) 📝 `packages/hierarchical-maps/manifest.json` (+5 -5) 📝 `packages/hierarchical-maps/server.mjs` (+32 -409) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+1 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapsHome.tsx` (+24 -30) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialConnectionOverrideSelect.tsx` (+72 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialMapAiBuilder.tsx` (+94 -2) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/locales/en.json` (+15 -0) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/localization.tsx` (+48 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts` (+1 -0) 📝 `scripts/build-feature-packages.mjs` (+18 -12) 📝 `tests/hierarchical-maps-lifecycle.regression.ts` (+25 -14) 📝 `tests/spatial-context.e2e.ts` (+231 -27) 📝 `tests/world-maps-ui-contract.regression.mjs` (+45 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository from `staging` to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #290 ## Why this change World Maps users could discover too late that AI map authoring was using an unsuitable connection. Changing the package override required leaving the map editor, which interrupted the authoring flow and made the effective model harder to confirm. ## What changed - Added a compact Connection Override selector to the AI map builder. - Reused the selector on the World Maps home screen so both surfaces show the same text-generation connections, model/provider details, chat fallback, and unavailable saved state. - Saved editor changes immediately for the next draft or expansion, while disabling changes during an active request and preserving the current editor draft/result. - Added package-local English localization keys and accessible saving, saved, and error states. - Rebuilt the World Maps 1.3.5 payload, manifest, ZIP, lifecycle fixtures, and all catalog lanes. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: none; remains Marinara Engine `>=2.4.2 <4.0.0` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: standard package update and restart; existing maps and Agent settings are preserved ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [ ] 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` Automated evidence run by the coding agent: - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-package-locales.mjs` - `node scripts/validate-catalog.mjs` - `node tests/world-maps-ui-contract.regression.mjs` - Exact 1.3.5 artifact lifecycle regression through Engine: update, restart, offline restart, remove, reinstall, backup, and restore - Focused Playwright regression in desktop and mobile Chromium: unavailable saved state, text-only options, model/provider labels, persistence, draft preservation, and home/editor synchronization - `git diff --check` ### Manual verification notes Human manual verification has not been performed. Please: - Manually verify the selector on desktop and mobile. - Manually switch between the chat connection, an available text connection, and an unavailable saved connection. - Manually verify a changed connection applies to the next draft or expansion without changing the map editor state. - Manually install/update World Maps 1.3.5 and confirm the required Engine restart. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No documentation files changed. This adds the existing package setting to the map-authoring surface without changing setup, compatibility, or catalog membership. ## UI evidence (if applicable) The focused browser regression passed in desktop and mobile Chromium. No human-captured screenshot is attached; the manual visual review items above remain open. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added AI connection selection for World Maps, including model and provider details. * Connection changes now save independently while preserving unsaved map instructions. * Added localized labels, status messages, help text, and unavailable-connection handling. * Added support for localization and right-to-left display direction. * **Bug Fixes** * Prevented map generation while connection settings are loading or saving. * Preserved selected connections that are temporarily unavailable. * **Chores** * Updated World Maps to version 1.3.5. <!-- 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:32:09 +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#901
No description provided.