[GH-ISSUE #153] [Issue]: World Maps hierarchy profile editing blocks normal text edits and cannot restore defaults #74

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

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

Originally assigned to: @thetopham on GitHub.

Summary

World Maps normalizes and rejects hierarchy profile-name input while the user is still typing. This prevents normal editing operations such as temporarily clearing the field, entering leading or trailing spaces, or using Select All + Delete. The same Location Types editor also has no visible action to restore the original default profile and location types after customization.

Affected package

World Maps (hierarchical-maps) v1.2.3

Expected behavior

  • The Profile name field should preserve the user's draft text while editing, including temporary empty and whitespace states.
  • Leading and trailing whitespace may be trimmed when saving.
  • Saving should be blocked when the normalized profile name is empty, with a clear user-facing validation message.
  • The Location Types editor should provide a visible Revert to Defaults action comparable to other Marinara Engine settings.
  • Reverting should restore the built-in hierarchy profile/location types as a draft so the user can review and save the change.

Actual behavior

  • A space cannot be retained as the final character.
  • Leading spaces are stripped during editing.
  • The final remaining character cannot be deleted. Adding another character allows the former character to be deleted, but one character always remains.
  • Select All + Delete does nothing on both desktop and mobile.
  • Deleting a non-space character adjacent to leading whitespace also removes that whitespace.
  • There is no visible way to restore the original default Location Types after editing them.

Steps to reproduce

  1. Install or update World Maps to v1.2.3.
  2. Open World Maps and edit a map's Location Types / hierarchy profile.
  3. Place the cursor at the end of Profile name and enter a space.
  4. Observe that the trailing space is removed during editing.
  5. Reduce the name to one character, then delete that character.
  6. Observe that the character remains.
  7. Use Ctrl+A / Select All and Delete, including on mobile.
  8. Observe that the existing name remains.
  9. Enter leading whitespace before a non-space name, then edit the adjacent non-space character.
  10. Observe that the leading whitespace is normalized away.
  11. Modify the default Location Types and look for an action to restore the original defaults.
  12. Observe that no Revert to Defaults action is available.

Environment

  • Marinara Engine version: v2.3.5
  • Engine build: a121d12
  • Package version: World Maps v1.2.3
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Reproduced on desktop and mobile; exact clients not provided

Logs, screenshots, or video

Screenshots were provided in the original beta-review conversation but are not attached to this issue yet.

Additional context

The package-owned field currently normalizes the hierarchy profile during every onChange, and it restores the previous name when the input becomes empty or whitespace-only. Validation at Save time would allow ordinary controlled-input editing while still preventing an invalid persisted profile name.

This report intentionally groups the missing default-reset action with the text-editing behavior because both affect the same hierarchy profile / Location Types editor.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/153 Originally assigned to: @thetopham on GitHub. ## Summary World Maps normalizes and rejects hierarchy profile-name input while the user is still typing. This prevents normal editing operations such as temporarily clearing the field, entering leading or trailing spaces, or using Select All + Delete. The same Location Types editor also has no visible action to restore the original default profile and location types after customization. ## Affected package World Maps (`hierarchical-maps`) v1.2.3 ## Expected behavior - The Profile name field should preserve the user's draft text while editing, including temporary empty and whitespace states. - Leading and trailing whitespace may be trimmed when saving. - Saving should be blocked when the normalized profile name is empty, with a clear user-facing validation message. - The Location Types editor should provide a visible **Revert to Defaults** action comparable to other Marinara Engine settings. - Reverting should restore the built-in hierarchy profile/location types as a draft so the user can review and save the change. ## Actual behavior - A space cannot be retained as the final character. - Leading spaces are stripped during editing. - The final remaining character cannot be deleted. Adding another character allows the former character to be deleted, but one character always remains. - Select All + Delete does nothing on both desktop and mobile. - Deleting a non-space character adjacent to leading whitespace also removes that whitespace. - There is no visible way to restore the original default Location Types after editing them. ## Steps to reproduce 1. Install or update World Maps to v1.2.3. 2. Open World Maps and edit a map's Location Types / hierarchy profile. 3. Place the cursor at the end of **Profile name** and enter a space. 4. Observe that the trailing space is removed during editing. 5. Reduce the name to one character, then delete that character. 6. Observe that the character remains. 7. Use Ctrl+A / Select All and Delete, including on mobile. 8. Observe that the existing name remains. 9. Enter leading whitespace before a non-space name, then edit the adjacent non-space character. 10. Observe that the leading whitespace is normalized away. 11. Modify the default Location Types and look for an action to restore the original defaults. 12. Observe that no **Revert to Defaults** action is available. ## Environment - Marinara Engine version: v2.3.5 - Engine build: a121d12 - Package version: World Maps v1.2.3 - Install type: Not provided - OS + version: Not provided - Browser or app shell: Reproduced on desktop and mobile; exact clients not provided ## Logs, screenshots, or video Screenshots were provided in the original beta-review conversation but are not attached to this issue yet. ## Additional context The package-owned field currently normalizes the hierarchy profile during every `onChange`, and it restores the previous name when the input becomes empty or whitespace-only. Validation at Save time would allow ordinary controlled-input editing while still preventing an invalid persisted profile name. This report intentionally groups the missing default-reset action with the text-editing behavior because both affect the same hierarchy profile / Location Types editor. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

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

Issue-sweep disposition (2026-07-31): confirmed as a valid but lower-priority editor-quality problem. The 1.2.4 release is staying focused on movement, unsaved-edit protection, and shared-world identity/recovery. Keep this open in the QOL backlog for a later focused pass covering edit-time normalization and restoring the built-in hierarchy profile without changing save-time validation.

<!-- gh-comment-id:5147996034 --> @thetopham commented on GitHub (Jul 31, 2026): Issue-sweep disposition (2026-07-31): confirmed as a valid but lower-priority editor-quality problem. The 1.2.4 release is staying focused on movement, unsaved-edit protection, and shared-world identity/recovery. Keep this open in the QOL backlog for a later focused pass covering edit-time normalization and restoring the built-in hierarchy profile without changing save-time validation.
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#74
No description provided.