[PR #2026] [MERGED] feat(world-maps): the Story Location bar always shows where you are (1.8.0) #2079

Closed
opened 2026-11-07 16:39:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2026
Author: @SpicyMarinara
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/world-maps-location-breadcrumb-1995


📝 Commits (5)

  • 2de0366 feat(world-maps): the Story Location bar always shows where you are (1.8.0)
  • 2583572 fix(world-maps): a whole Story Location path that fits needs no marker; test cleanup covers setup
  • 903ef87 test(world-maps): seed the chat intro and help as seen, so no overlay covers the bar
  • 61138e6 Merge branch 'staging' into feat/world-maps-location-breadcrumb-1995
  • c64c711 Merge branch 'staging' into feat/world-maps-location-breadcrumb-1995

📊 Changes

17 files changed (+537 additions, -51 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+1 -0)
➕ artifacts/hierarchical-maps-1.8.0.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/hierarchical-maps/CHANGELOG.md (+3 -0)
📝 packages/hierarchical-maps/client.js (+16 -16)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx (+95 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/locales/en.json (+6 -0)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/story-location-trail.ts (+87 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/spatial-context.e2e.ts (+206 -10)
➕ tests/world-maps-story-location-trail.regression.ts (+83 -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 #1995

Why this change

  • In a deep World Maps map, the Story Location bar showed the breadcrumb from its root and cut off the end. On a narrow window or a deep map, the place the story is actually in was the part that disappeared, so the bar didn't answer "where am I?".

What changed

  • World Maps 1.8.0 (hierarchical-maps). The Story Location bar now shows a trail that always ends with the current location, keeps parent-to-child order, and starts with "…" when ancestors are left out.
  • Four displays, chosen from the bar's options panel and kept on this device (localStorage): as much as fits (default), current place only, current place and two above, and full path (the old behaviour). "As much as fits" measures each level with the bar's font, follows the bar's width, and drops whole levels instead of cutting a name mid-word. A whole path that fits never gets the "…" marker, even when its root is narrower than the marker.
  • The full root-to-leaf path stays in the bar's hover title and accessible label. The options panel (click, Enter or tap) now also spells it out, wrapped.
  • Presentation only: saved maps, the current location, movement, and everything sent to a model are unchanged.
  • New regression tests/world-maps-story-location-trail.regression.ts, added to Pull Request Checks. It pins the trail and fitting rules, including the narrow-root case. New browser test in tests/spatial-context.e2e.ts covers a deep map at 1440 px and 700 px with every display.
  • Rebuilt packages/hierarchical-maps/client.js, the manifest, artifacts/hierarchical-maps-1.8.0.zip and the catalog entries.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: none. Same capability API and minimum Engine version as 1.7.1.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: one new per-device localStorage key, marinara:world-maps:story-location-display. No server storage 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

Manual verification notes

What the agent ran locally:

  • npm run format:check, eslint on the changed files (0 errors), node scripts/typecheck-packages.mjs hierarchical-maps, the new regression, node scripts/validate-catalog.mjs and git diff --check all pass.
  • Rebuilding World Maps leaves the tree unchanged.
  • The new browser test passes in both full-suite runs. On one solo run, the bar click waited behind Roleplay Help, which opens 600 ms after the chat-window intro is dismissed. The test timed out, and the cleanup DELETE was reported as the failure. The investigation found no Engine request hanging: the DELETE never left Playwright. The last commit seeds the intro as dismissed and Help as seen in every UI state in the file, as the other package suites already do.
  • The World Maps browser suite (tests/spatial-context.e2e.ts) is not run in CI. 25 of its 34 tests fail locally on staging both with and without this PR, from several separate causes where the suite has drifted from the Engine. That is filed as #2028.
  • Local CodeRabbit raised 2 findings. Both trail-fitting and test-cleanup issues are fixed. The suggested marker-free fallback for a too-narrow bar was not taken: the issue requires left-out ancestors to always be marked, and an unmarked crumb would make a nested place look like a top-level one.

For a human to verify:

  • Manually verify in the browser, in a chat with a map at least 6 levels deep, that the Story Location bar ends with the current place and starts with "…" at a narrow window width, and shows the whole path once the window is wide enough.
  • Manually verify that each of the four displays in the bar's options panel changes the bar as described, and that the choice survives a reload.
  • Manually verify that hovering the bar shows the full path, and that a screen reader announces "Story location: ".
  • Manually verify on a phone that tapping the bar opens the options panel with the wrapped full path.

Documentation impact

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

UI evidence (if applicable)

  • See the browser test's 1440 px and 700 px assertions. Screenshots are still to be added by a human reviewer.

🤖 Generated with Claude Code


🔄 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/2026 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/world-maps-location-breadcrumb-1995` --- ### 📝 Commits (5) - [`2de0366`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2de0366053d01daeac73895ac02a9ed147eebb0c) feat(world-maps): the Story Location bar always shows where you are (1.8.0) - [`2583572`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2583572418ec83f8412bec9527bf925264806a92) fix(world-maps): a whole Story Location path that fits needs no marker; test cleanup covers setup - [`903ef87`](https://github.com/Pasta-Devs/Marinara-Agents/commit/903ef874769955e392c629ac5257208ae82e1e49) test(world-maps): seed the chat intro and help as seen, so no overlay covers the bar - [`61138e6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/61138e6e2bb1ceaa748e937226597f778d9d0438) Merge branch 'staging' into feat/world-maps-location-breadcrumb-1995 - [`c64c711`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c64c7117a329838afeeba35df983d4f093784ea6) Merge branch 'staging' into feat/world-maps-location-breadcrumb-1995 ### 📊 Changes **17 files changed** (+537 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+1 -0) ➕ `artifacts/hierarchical-maps-1.8.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/hierarchical-maps/CHANGELOG.md` (+3 -0) 📝 `packages/hierarchical-maps/client.js` (+16 -16) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx` (+95 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/locales/en.json` (+6 -0) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/story-location-trail.ts` (+87 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/spatial-context.e2e.ts` (+206 -10) ➕ `tests/world-maps-story-location-trail.regression.ts` (+83 -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 #1995 ## Why this change - In a deep World Maps map, the Story Location bar showed the breadcrumb from its root and cut off the end. On a narrow window or a deep map, the place the story is actually in was the part that disappeared, so the bar didn't answer "where am I?". ## What changed - **World Maps 1.8.0** (`hierarchical-maps`). The Story Location bar now shows a trail that always ends with the current location, keeps parent-to-child order, and starts with "…" when ancestors are left out. - Four displays, chosen from the bar's options panel and kept on this device (`localStorage`): **as much as fits** (default), **current place only**, **current place and two above**, and **full path** (the old behaviour). "As much as fits" measures each level with the bar's font, follows the bar's width, and drops whole levels instead of cutting a name mid-word. A whole path that fits never gets the "…" marker, even when its root is narrower than the marker. - The full root-to-leaf path stays in the bar's hover title and accessible label. The options panel (click, Enter or tap) now also spells it out, wrapped. - Presentation only: saved maps, the current location, movement, and everything sent to a model are unchanged. - New regression `tests/world-maps-story-location-trail.regression.ts`, added to Pull Request Checks. It pins the trail and fitting rules, including the narrow-root case. New browser test in `tests/spatial-context.e2e.ts` covers a deep map at 1440 px and 700 px with every display. - Rebuilt `packages/hierarchical-maps/client.js`, the manifest, `artifacts/hierarchical-maps-1.8.0.zip` and the catalog entries. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: none. Same capability API and minimum Engine version as 1.7.1. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: one new per-device `localStorage` key, `marinara:world-maps:story-location-display`. No server storage change. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 What the agent ran locally: - `npm run format:check`, eslint on the changed files (0 errors), `node scripts/typecheck-packages.mjs hierarchical-maps`, the new regression, `node scripts/validate-catalog.mjs` and `git diff --check` all pass. - Rebuilding World Maps leaves the tree unchanged. - The new browser test passes in both full-suite runs. On one solo run, the bar click waited behind Roleplay Help, which opens 600 ms after the chat-window intro is dismissed. The test timed out, and the cleanup `DELETE` was reported as the failure. The investigation found no Engine request hanging: the DELETE never left Playwright. The last commit seeds the intro as dismissed and Help as seen in every UI state in the file, as the other package suites already do. - The World Maps browser suite (`tests/spatial-context.e2e.ts`) is not run in CI. 25 of its 34 tests fail locally on staging both with and without this PR, from several separate causes where the suite has drifted from the Engine. That is filed as #2028. - Local CodeRabbit raised 2 findings. Both trail-fitting and test-cleanup issues are fixed. The suggested marker-free fallback for a too-narrow bar was not taken: the issue requires left-out ancestors to always be marked, and an unmarked crumb would make a nested place look like a top-level one. For a human to verify: - Manually verify in the browser, in a chat with a map at least 6 levels deep, that the Story Location bar ends with the current place and starts with "…" at a narrow window width, and shows the whole path once the window is wide enough. - Manually verify that each of the four displays in the bar's options panel changes the bar as described, and that the choice survives a reload. - Manually verify that hovering the bar shows the full path, and that a screen reader announces "Story location: <full path>". - Manually verify on a phone that tapping the bar opens the options panel with the wrapped full path. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - See the browser test's 1440 px and 700 px assertions. Screenshots are still to be added by a human reviewer. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:39:20 +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#2079
No description provided.