-
Notifications
You must be signed in to change notification settings - Fork 145
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
Clean up Page Designer Code #1004
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.
Adjustments to the Page Designer README
+ path: '/page-viewer/:pageId', | ||
+ component: PageViewer | ||
+ }, | ||
``` |
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.
Do we want to include instructions to visualize the page?
E.g.
- Run the dev server.
npm run start --prefix packages/template-retail-react-app/
- Navigate to the page-viewer URL with the Page designer page id.
http://localhost:3000/page-viewer/{page-id}
http://localhost:3000/page-viewer/homepage-example
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.
I can probably add a note about the route, but I think stating the dev server is covered elsewhere.
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.
I add some additional verbage for those that might take the sample code for production code.
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>
…CommerceCloud/pwa-kit into page-designer-cleanup
* develop: Support Node 16 (#965) [W-12450361] Introduce short-circuit method for bypassing auth in Commerce Provider by passing in a fetchedToken (#1010) remove jest-silent-reporter (#1009) Clean up Page Designer Code (#1004) [Shopper Experience] `ImageWithText` component (#991) Feature: Page Designer Carousel Component (#977) [Feature] Page Designer Layout Components WIP (#993) remove updatePw from not implemented list (#996) Back-port Shopper Experience Base Components into Retail Template (#992) # Conflicts: # packages/commerce-sdk-react/package-lock.json # packages/commerce-sdk-react/package.json # packages/pwa-kit-dev/package-lock.json # packages/pwa-kit-dev/src/configs/webpack/config.js # packages/template-retail-react-app/package-lock.json
This is a simple PR to clean up and organize the files and exports after both myself and adam have make contributions to the page designer work. I've also created a small README that lives inside the new
page-designer
folder to explain what the folder structure is and how to use the page component.