[GH-ISSUE #131] [Issue]: World Maps shows semantic base kinds instead of custom type labels #61

Closed
opened 2026-10-20 17:23:58 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @thetopham on GitHub (Jul 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/131

Originally assigned to: @thetopham on GitHub.

Summary

World Maps 1.2.0 stores and resolves custom location types correctly, but the map editor's left hierarchy tree displays each location's semantic base kind instead of its custom type label. For example, a custom Planet type using Region rules appears as Planet in the center inspector but as Region in the left tree.

This is a presentation bug rather than data loss: the hierarchy profile, custom type assignment, import/export data, and semantic base kind remain intact.

Affected package

World Maps (hierarchical-maps) 1.2.0

Expected behavior

  • User-facing Maps surfaces display the assigned custom type label, such as Planet.
  • The semantic base kind, such as Region, remains internal validation/travel behavior or appears only as clearly secondary explanatory text.
  • The editor tree, location inspector, runtime map, destination lists, AI previews, and other type-label surfaces resolve labels consistently from the map's hierarchy profile.

Actual behavior

  • The center location inspector correctly resolves and displays Planet.
  • The left hierarchy tree renders the raw location.kind value and displays Region.
  • Source review found additional user-facing runtime/map surfaces that also render the raw base kind directly and should be audited for the same inconsistency.

Steps to reproduce

  1. Open a Roleplay or Game chat with World Maps enabled.
  2. Open Agents → World Maps → Location types → Edit location types.
  3. Add a custom type named Planet and select Region as its semantic base kind.
  4. Assign Planet to a location and save the map.
  5. Reopen Edit world map.
  6. Observe that the center inspector says Planet, while the left hierarchy tree says Region.

Environment

  • Marinara Engine version: 2.3.5 staging-compatible build
  • Package version: World Maps 1.2.0
  • Install type: staging catalog package
  • OS + version: not provided by reporter
  • Browser or app shell: not provided by reporter

Logs, screenshots, or video

No runtime error or private chat data is involved. The issue was reported during staging beta testing and confirmed by source inspection.

Additional context

The left tree currently renders location.kind in HierarchyNavigator.tsx, while other editor code already uses hierarchyTypeForLocation(profile, location).label.

The fix should pass the active hierarchy profile into the navigator and use the shared resolver. Audit GameWorldMap, SpatialContextRuntimeBar, and other user-facing type displays for direct base-kind rendering. Add focused desktop/mobile coverage proving that a custom Planet type backed by Region rules is displayed as Planet without changing its underlying behavior.

Related completed feature: #72 required custom type names throughout the editor, runtime map, breadcrumbs, and previews.

No implementation or browser reproduction has been completed yet.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/131 Originally assigned to: @thetopham on GitHub. ## Summary World Maps 1.2.0 stores and resolves custom location types correctly, but the map editor's left hierarchy tree displays each location's semantic base kind instead of its custom type label. For example, a custom **Planet** type using **Region** rules appears as **Planet** in the center inspector but as **Region** in the left tree. This is a presentation bug rather than data loss: the hierarchy profile, custom type assignment, import/export data, and semantic base kind remain intact. ## Affected package World Maps (`hierarchical-maps`) 1.2.0 ## Expected behavior - User-facing Maps surfaces display the assigned custom type label, such as **Planet**. - The semantic base kind, such as **Region**, remains internal validation/travel behavior or appears only as clearly secondary explanatory text. - The editor tree, location inspector, runtime map, destination lists, AI previews, and other type-label surfaces resolve labels consistently from the map's hierarchy profile. ## Actual behavior - The center location inspector correctly resolves and displays **Planet**. - The left hierarchy tree renders the raw `location.kind` value and displays **Region**. - Source review found additional user-facing runtime/map surfaces that also render the raw base kind directly and should be audited for the same inconsistency. ## Steps to reproduce 1. Open a Roleplay or Game chat with World Maps enabled. 2. Open **Agents → World Maps → Location types → Edit location types**. 3. Add a custom type named **Planet** and select **Region** as its semantic base kind. 4. Assign **Planet** to a location and save the map. 5. Reopen **Edit world map**. 6. Observe that the center inspector says **Planet**, while the left hierarchy tree says **Region**. ## Environment - Marinara Engine version: 2.3.5 staging-compatible build - Package version: World Maps 1.2.0 - Install type: staging catalog package - OS + version: not provided by reporter - Browser or app shell: not provided by reporter ## Logs, screenshots, or video No runtime error or private chat data is involved. The issue was reported during staging beta testing and confirmed by source inspection. ## Additional context The left tree currently renders `location.kind` in `HierarchyNavigator.tsx`, while other editor code already uses `hierarchyTypeForLocation(profile, location).label`. The fix should pass the active hierarchy profile into the navigator and use the shared resolver. Audit `GameWorldMap`, `SpatialContextRuntimeBar`, and other user-facing type displays for direct base-kind rendering. Add focused desktop/mobile coverage proving that a custom **Planet** type backed by **Region** rules is displayed as **Planet** without changing its underlying behavior. Related completed feature: #72 required custom type names throughout the editor, runtime map, breadcrumbs, and previews. No implementation or browser reproduction has been completed yet. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@thetopham commented on GitHub (Jul 30, 2026):

Implementation is now owned by @thetopham in PR #136. Custom hierarchy labels are used consistently in the editor tree and runtime map, with regression coverage for Planet and City labels.

<!-- gh-comment-id:5126442079 --> @thetopham commented on GitHub (Jul 30, 2026): Implementation is now owned by @thetopham in PR #136. Custom hierarchy labels are used consistently in the editor tree and runtime map, with regression coverage for Planet and City labels.
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#61
No description provided.