Skip to content

Conversation

@madsrasmussen
Copy link
Contributor

@madsrasmussen madsrasmussen commented Feb 4, 2025

Fixes: #17557

This PR marks the first step in maintaining the entire menu state in a section context. This initial step introduces a tree expansion manager that holds the state for a single tree. The tree items observe the expansion state and behave accordingly.

With this feature, we can also solve the problem described in the issue above, where a user has to expand the tree root when moving or duplicating an entity.

What to test:

  • Ensure the tree still expands and collapses as it did before.
  • Verify that when duplicating or moving an entity, the tree root is expanded when the modal opens.

@madsrasmussen madsrasmussen changed the title Feature: Tree expansion Feature: Tree expansion state Mar 7, 2025
@madsrasmussen madsrasmussen marked this pull request as ready for review March 7, 2025 20:55
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/packages/core/tree/entity-actions/move/move-to.action.ts
Copy link
Member

@nielslyngsoe nielslyngsoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments that improves the readability of the code and one optional comment on optimization. It works as expected, but I think the not-optimization comments should be corrected first :-)

@nielslyngsoe nielslyngsoe enabled auto-merge (squash) March 21, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants