[GH-ISSUE #1995] [Feature]: Configurable current-location-first Story Location breadcrumb in World Maps #1861

Closed
opened 2026-11-07 16:37:11 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @psych0genesis on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1995

Originally assigned to: @SpicyMarinara on GitHub.

Problem

The Story Location bar above the Roleplay message composer shows the complete location hierarchy in root-to-leaf order and applies one-line CSS truncation. With deep hierarchies, the most specific current location is pushed out of view, while broad parent locations occupy the visible space.

The full breadcrumb is already available via a hover tooltip, and that useful behavior should be preserved. This is a display/usability request, not a report of incorrect map state.

Example using fictional, generic locations:

  • Current bar: Continent › Realm › Province › City › District › Building › Floor › …
  • Desired adaptive bar: … › Building › Floor › Room

Proposed display modes

Add a small Story Location display preference:

  1. Adaptive (recommended default): Show as many trailing hierarchy levels as fit the available width, with a leading ellipsis for omitted ancestors. Always prioritize the exact current location. Maintain conventional parent-to-child reading order.
  2. Current location: Show only the exact place, such as Room.
  3. Nearby context: Show the current place and up to two immediate ancestors, such as Building › Floor › Room.
  4. Full hierarchy: Preserve today's root-to-leaf display behavior for users who prefer it.

Avoid configuration checkboxes for every hierarchy depth. A global display preference, with an optional per-chat override if feasible, would be sufficient.

Preserve full-path discovery

Regardless of compact display mode, hovering over the Story Location should continue to show the complete, untruncated root-to-leaf breadcrumb, as it does currently. Provide a keyboard-focus equivalent and an accessible touch/mobile disclosure. Clicking the bar should keep opening its existing World Maps navigation/options controls.

The hover content should prioritize the full path; optional extra location metadata is not needed for this initial change.

Implementation reference

The World Maps package currently constructs breadcrumbLabel from all data.breadcrumb names and renders it with truncate, while passing that full value as the button's title attribute:

packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx

The component already has the complete breadcrumb and access to the exact current location, so this should be presentation-only: no modifications to saved maps, current-location IDs, movement rules, chat history, spatial prompts, or agent calls.

Acceptance criteria

  • Default compact display always shows the exact current location, even in a deeply nested map.
  • Omitted ancestors are indicated clearly and the order remains parent-to-child.
  • Users can select the four documented display modes.
  • Full hierarchy remains accessible on hover, keyboard focus, and touch.
  • Existing map button/navigation behavior and authoritative story location remain unchanged.

No personal screenshots, real-world names, addresses, paths, or identifiable story content are needed to reproduce this request.

Originally created by @psych0genesis on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1995 Originally assigned to: @SpicyMarinara on GitHub. ## Problem The **Story Location** bar above the Roleplay message composer shows the complete location hierarchy in root-to-leaf order and applies one-line CSS truncation. With deep hierarchies, the *most specific current location* is pushed out of view, while broad parent locations occupy the visible space. The full breadcrumb is already available via a hover tooltip, and that useful behavior should be preserved. This is a display/usability request, not a report of incorrect map state. Example using **fictional, generic locations**: - Current bar: `Continent › Realm › Province › City › District › Building › Floor › …` - Desired adaptive bar: `… › Building › Floor › Room` ## Proposed display modes Add a small **Story Location display** preference: 1. **Adaptive (recommended default):** Show as many trailing hierarchy levels as fit the available width, with a leading ellipsis for omitted ancestors. Always prioritize the exact current location. Maintain conventional parent-to-child reading order. 2. **Current location:** Show only the exact place, such as `Room`. 3. **Nearby context:** Show the current place and up to two immediate ancestors, such as `Building › Floor › Room`. 4. **Full hierarchy:** Preserve today's root-to-leaf display behavior for users who prefer it. Avoid configuration checkboxes for every hierarchy depth. A global display preference, with an optional per-chat override if feasible, would be sufficient. ## Preserve full-path discovery **Regardless of compact display mode, hovering over the Story Location should continue to show the complete, untruncated root-to-leaf breadcrumb**, as it does currently. Provide a keyboard-focus equivalent and an accessible touch/mobile disclosure. Clicking the bar should keep opening its existing World Maps navigation/options controls. The hover content should prioritize the full path; optional extra location metadata is not needed for this initial change. ## Implementation reference The World Maps package currently constructs `breadcrumbLabel` from all `data.breadcrumb` names and renders it with `truncate`, while passing that full value as the button's `title` attribute: `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx` The component already has the complete breadcrumb and access to the exact current location, so this should be **presentation-only**: no modifications to saved maps, current-location IDs, movement rules, chat history, spatial prompts, or agent calls. ## Acceptance criteria - Default compact display always shows the exact current location, even in a deeply nested map. - Omitted ancestors are indicated clearly and the order remains parent-to-child. - Users can select the four documented display modes. - Full hierarchy remains accessible on hover, keyboard focus, and touch. - Existing map button/navigation behavior and authoritative story location remain unchanged. No personal screenshots, real-world names, addresses, paths, or identifiable story content are needed to reproduce this request.
Author
Owner

@SpicyMarinara commented on GitHub (Nov 1, 2026):

Done in #2026 (World Maps 1.8.0), merged into staging: the Story Location bar always ends with the place you're in, and you can choose how much of the path it shows.

<!-- gh-comment-id:6563024945 --> @SpicyMarinara commented on GitHub (Nov 1, 2026): Done in #2026 (World Maps 1.8.0), merged into `staging`: the Story Location bar always ends with the place you're in, and you can choose how much of the path it shows.
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#1861
No description provided.