Skip to content
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

Merged
merged 5 commits into from
Jul 6, 2023

Conversation

bangank36
Copy link
Owner

@bangank36 bangank36 commented Jul 6, 2023

Summary

Addressed the new layout renderer NavigatorLayout, we had achieved some thing as followed

  • With the help of new util method getObjectProperties, we can extract all the nested object properties into an array and use it to render ALL NavigatorScreen at first run
  • The recording also addressed these issues which can be solved by follow ups

Reference

#19

Copy link
Owner Author

@bangank36 bangank36 left a 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")
Copy link
Owner Author

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]}
Copy link
Owner Author

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) => (
Copy link
Owner Author

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

@bangank36 bangank36 merged commit 8c55874 into main Jul 6, 2023
@bangank36 bangank36 self-assigned this Jul 6, 2023
@bangank36 bangank36 added the enhancement New feature or request label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant