-
Notifications
You must be signed in to change notification settings - Fork 0
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
WP-Builder: Feat/introduce-navigator-layout #20
Conversation
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.
LGTM, and should mention the issue with the next issues
*/ | ||
export const gutenbergNavigatorLayoutTester = rankWith( | ||
2, | ||
uiTypeIs("NavigatorLayout") |
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.
Remember the layout name NavigatorLayour
<p>Go to home</p> | ||
</NavigatorButton> | ||
<JsonFormsDispatch | ||
uischema={navigatorLayout.elements[0].elements[index]} |
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.
Looped hole on business
screen, addressed on incoming ObjectRenderer (hopefully!)
<NavigatorProvider initialPath="/"> | ||
<NavigatorScreen path="/"> | ||
<p>This is the home screen.</p> | ||
{navigatableProps.filter((({dotPath}) => dotPath.split(".").length < 2 )).map(({path, key, dotPath}, index) => ( |
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.
For starter, we only render the keys that are 1st level
Summary
Addressed the new layout renderer
NavigatorLayout
, we had achieved some thing as followedgetObjectProperties
, we can extract all the nested object properties into an array and use it to render ALLNavigatorScreen
at first runbusiness
screen is a loop hole, because I am hard coded theelements
of the NavigatorLayout, we should filter the 1st level properties betterReference
#19