[GH-ISSUE #132] [Feature]: Reorder custom World Maps location types #63

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/132

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

World Maps lets users create map-specific location types, but every new type is appended to the end of the hierarchy vocabulary. A user creating Planet after the default types therefore sees it after Room, even when the intended presentation is:

  • Planet → Region → City → Place
  • Galaxy → Planet → Continent → City

The current workaround is to rename several existing rows or rebuild the vocabulary manually. That is awkward, can obscure the intended semantic base kinds, and becomes riskier after locations have already been assigned to stable type IDs.

Proposed package or change

Allow location types to be reordered from both Maps type-editing surfaces:

  • the existing-map World Maps → Location types editor; and
  • the Create with AI → Hierarchy vocabulary → Custom editor.

Suggested behavior:

  • Provide a visible drag handle for pointer and touch users.
  • Provide accessible Move up and Move down controls for keyboard and assistive-technology users; drag-and-drop must not be the only interaction.
  • Preserve each type's stable ID, semantic base kind, and all existing locationTypeIds assignments while changing only array order.
  • Save and restore the chosen order with the map's hierarchy profile.
  • Preserve the order through map export/import, reusable templates, backup, and restore.
  • Supply the reordered vocabulary to AI draft and expansion prompts in the saved order.
  • Keep the behavior consistent on desktop and mobile, including long custom vocabularies.
  • Explain that vocabulary order guides presentation and generation but does not impose a rigid nesting rule; Maps still supports flexible branches and multiple types at one depth.

Supported modes: Roleplay and Game. This is package-owned client UI and shared Maps-model behavior; no core Engine feature is expected unless a generic accessible reorder primitive is reused.

Why should this be optional?

Custom hierarchy vocabularies, their editing surfaces, and their serialization belong to the downloadable World Maps package. Engine should continue to provide only the generic capability host and persistence contracts.

Alternatives considered

  • Rename existing rows into the desired order. This is tedious and can confuse stable type identity and assignments.
  • Remove and recreate types. Assigned types cannot safely be removed without first reassigning their locations.
  • Sort types alphabetically. Alphabetical order does not represent the user's intended world hierarchy.
  • Add drag-and-drop only. That would leave keyboard and some touch or accessibility users without a reliable reorder path.

Additional context

Current behavior was reported during World Maps 1.2.0 staging beta testing: adding Planet with semantic base kind Region places Planet after Room.

Source review confirms both custom-type editors append new entries to profile.types. Current map export/import and template data already preserve the hierarchy profile's type array, so reordering should retain that array order without changing location assignments.

Related:

  • #72 implemented map-specific location types and hierarchy profiles.
  • #131 tracks inconsistent display of custom labels versus semantic base kinds.

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/132 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? World Maps lets users create map-specific location types, but every new type is appended to the end of the hierarchy vocabulary. A user creating **Planet** after the default types therefore sees it after **Room**, even when the intended presentation is: - Planet → Region → City → Place - Galaxy → Planet → Continent → City The current workaround is to rename several existing rows or rebuild the vocabulary manually. That is awkward, can obscure the intended semantic base kinds, and becomes riskier after locations have already been assigned to stable type IDs. ## Proposed package or change Allow location types to be reordered from both Maps type-editing surfaces: - the existing-map **World Maps → Location types** editor; and - the **Create with AI → Hierarchy vocabulary → Custom** editor. Suggested behavior: - Provide a visible drag handle for pointer and touch users. - Provide accessible **Move up** and **Move down** controls for keyboard and assistive-technology users; drag-and-drop must not be the only interaction. - Preserve each type's stable ID, semantic base kind, and all existing `locationTypeIds` assignments while changing only array order. - Save and restore the chosen order with the map's hierarchy profile. - Preserve the order through map export/import, reusable templates, backup, and restore. - Supply the reordered vocabulary to AI draft and expansion prompts in the saved order. - Keep the behavior consistent on desktop and mobile, including long custom vocabularies. - Explain that vocabulary order guides presentation and generation but does not impose a rigid nesting rule; Maps still supports flexible branches and multiple types at one depth. Supported modes: Roleplay and Game. This is package-owned client UI and shared Maps-model behavior; no core Engine feature is expected unless a generic accessible reorder primitive is reused. ## Why should this be optional? Custom hierarchy vocabularies, their editing surfaces, and their serialization belong to the downloadable World Maps package. Engine should continue to provide only the generic capability host and persistence contracts. ## Alternatives considered - Rename existing rows into the desired order. This is tedious and can confuse stable type identity and assignments. - Remove and recreate types. Assigned types cannot safely be removed without first reassigning their locations. - Sort types alphabetically. Alphabetical order does not represent the user's intended world hierarchy. - Add drag-and-drop only. That would leave keyboard and some touch or accessibility users without a reliable reorder path. ## Additional context Current behavior was reported during World Maps 1.2.0 staging beta testing: adding **Planet** with semantic base kind **Region** places Planet after Room. Source review confirms both custom-type editors append new entries to `profile.types`. Current map export/import and template data already preserve the hierarchy profile's type array, so reordering should retain that array order without changing location assignments. Related: - #72 implemented map-specific location types and hierarchy profiles. - #131 tracks inconsistent display of custom labels versus semantic base kinds. 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 location types now have accessible Move up and Move down controls while preserving stable type IDs and existing location assignments.

<!-- gh-comment-id:5126441608 --> @thetopham commented on GitHub (Jul 30, 2026): Implementation is now owned by @thetopham in PR #136. Custom location types now have accessible Move up and Move down controls while preserving stable type IDs and existing location assignments.
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#63
No description provided.