-
-
Notifications
You must be signed in to change notification settings - Fork 612
XWIKI-23826: Refactor Cristal's navigation tree to separate logic and ds #4955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
* Force location of NavigationTreeNode to a SpaceReference instance * Remove no longer used XNavigationTree and XNavigationTreeSelect components definitions * Extend TreeProps definition and turn XTree into a generic component
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
| XTabPanel: DefineComponent<TabPanelProps & HTMLAttributes>; | ||
| XTextField: DefineComponent<TextFieldProps & ImgHTMLAttributes>; | ||
| XTree: DefineComponent<TreeProps & HTMLAttributes>; | ||
| XTree: DefineComponent<TreeProps<DisplayableTreeNode & any> & HTMLAttributes>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't TreeProps<DisplayableTreeNode & any> equivalent to TreeProps<any>?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a slight difference: it enforces the existing properties of DisplayableTreeNode to be present (which makes sense in this case since TreeProps is a generic type that requires a subclass of DisplayableTreeNode)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, maybe add a comment in the source to explain the logic as I might not be the only one to be confused by this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
* Add missing comment * Re-export TreeNode to make DisplayableTreeNode importable
Jira URL
https://jira.xwiki.org/browse/XWIKI-23826
Changes
Description
This PR includes changes to some Cristal APIs (that are currently still in beta) to prepare for the release 1.0:
Clarifications
This PR is tied to xwiki-contrib/cristal#1493 and both should be merged at the same time.
Screenshots & Video
N/A
Executed Tests
The new API packages were built locally and used to test the linked Cristal PR.
Expected merging strategy