Skip to content

Conversation

@hifi-phil
Copy link
Contributor

📋 Description

  • Move tree docs from single file to dedicated tree/ directory
  • Add articles for tree repository, data source, store, navigation
  • Document hideTreeRoot property in menu-item.md
  • Remove duplicated/empty files from old locations

🤖 Generated with Claude Code

📎 Related Issues (if applicable)

✅ Contributor Checklist

I've followed the Umbraco Documentation Style Guide and can confirm that:

  • Code blocks are correctly formatted.
  • Sentences are short and clear (preferably under 25 words).
  • Passive voice and first-person language (“we”, “I”) are avoided.
  • Relevant pages are linked.
  • All links work and point to the correct resources.
  • Screenshots or diagrams are included if useful.
  • Any code examples or instructions have been tested.
  • Typos, broken links, and broken images are fixed.

Product & Version (if relevant)

Deadline (if relevant)

📚 Helpful Resources

- Move tree docs from single file to dedicated tree/ directory
- Add articles for tree repository, data source, store, navigation
- Document hideTreeRoot property in menu-item.md
- Remove duplicated/empty files from old locations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hifi-phil hifi-phil marked this pull request as draft December 8, 2025 17:09
Phil Whittaker and others added 7 commits December 8, 2025 17:22
- Add hints to repository, data source, and store docs clarifying
  that only the data source communicates with APIs
- Remove duplicated navigation content from README (now in tree-navigation.md)
- Remove incomplete custom tree item example

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Make navigation link a clear call-to-action instead of buried in warning
- Move Tree Navigation first in SUMMARY.md for better discoverability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Create tree-models.md explaining UmbTreeItemModel and UmbTreeRootModel
- Document all properties with descriptions and usage examples
- Add to SUMMARY.md navigation and README.md implementation guides

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Include both root and item entity types in treeItem forEntityTypes
- Add missing menuItem properties: name, weight, label, icon, entityType

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hifi-phil hifi-phil marked this pull request as ready for review December 9, 2025 12:37
@sofietoft
Copy link
Contributor

Thanks for the PR @hifi-phil !

Could you please add redirects for the articles you've removed?
Also, there are some vale/styleguide warnings in there. Could you please give those a look as well?
I'll review the PR on Friday at the latest.

Phil Whittaker and others added 3 commits December 10, 2025 09:32
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hifi-phil
Copy link
Contributor Author

Hi @sofietoft

I have fixed the value warnings and added the redirects.
Let me know if you need any other updates.
Phil

@sofietoft
Copy link
Contributor

Amazing! Thanks @hifi-phil !
I'll review this on Friday (reach out to Esha, if it needs to be published before then) 🙌

@madsrasmussen
Copy link
Contributor

madsrasmussen commented Dec 11, 2025

Hi @hifi-phil

This is a great foundation to work from. It is good to see that we have included the connection between the Section Sidebar Menu and the Tree.

I think we can simplify the documentation for "Populating Trees" because some of the concepts aren't strictly necessary to make a Tree work.

  • The Tree Store concept is made optional in v17 and will most likely be out-fased at some point.
  • The Tree Data Source is also optional, and it can be left out of the documentation at this point. I can see that I have added a Data Source in the linked example. https://github.com/umbraco/Umbraco-CMS/tree/main/src/Umbraco.Web.UI.Client/examples/tree . I am considering removing that again. It is currently an implementation detail we use in core, but it doesn't bring value because we currently do not have any client-side caching of Trees.

The most important part of a Tree is the Repository because it is referenced in the Tree Manifest. I would make a generic implementation directly in the Repository instead of the Data Source abstraction. Then we are left with only one option to populate the tree.

How does that sound to you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants