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

Clean up Page Designer Code #1004

Merged
merged 7 commits into from
Feb 25, 2023
Merged

Clean up Page Designer Code #1004

merged 7 commits into from
Feb 25, 2023

Conversation

bendvc
Copy link
Collaborator

@bendvc bendvc commented Feb 24, 2023

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.

@bendvc bendvc requested a review from a team as a code owner February 24, 2023 22:59
Copy link
Collaborator

@adamraya adamraya left a 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
+ },
```
Copy link
Collaborator

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.

  1. Run the dev server.
npm run start --prefix packages/template-retail-react-app/
  1. 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

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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.

@bendvc bendvc merged commit 9f00ab6 into develop Feb 25, 2023
bfeister added a commit that referenced this pull request Feb 28, 2023
* 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
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.

2 participants