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

feat(storefront): strf-9174 Product object in quick view on localhost not consistent with prod: #991

Conversation

bc-max
Copy link
Contributor

@bc-max bc-max commented Sep 27, 2022

What?

Quick-view in stencil-cli mode didn't include reviews sections if any.

Tickets / Documentation

Screenshots (if appropriate)

image

cc @bigcommerce/storefront-team

… not consistent with prod:

-renderer.module - additional check for stencil-config added;
- index - duplicate code removed;
- package-lock.json - updated;
@bc-max bc-max self-assigned this Sep 27, 2022
@@ -33,8 +33,6 @@ function buildManifest(srcManifest, options) {
pluginsByName['./plugins/renderer/renderer.module'].storeUrl = storeUrl;
pluginsByName['./plugins/renderer/renderer.module'].storeSettingsLocale =
options.storeSettingsLocale;
pluginsByName['./plugins/renderer/renderer.module'].customLayouts =
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is duplicate of line 30 above

@bc-max bc-max marked this pull request as ready for review September 27, 2022 09:27
@bc-max bc-max requested a review from jairo-bc September 27, 2022 09:27
package-lock.json Outdated Show resolved Hide resolved
if (!request.headers['stencil-config'] && stencilConfig) {
const config = request.headers['stencil-config'];

if ((!config || config === '{}') && stencilConfig) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the header can be undefined and can be empty object?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about undefined, I decided not to touch existing check just not to break anything. However, it definitely could be empty object. I saw that during debugging.

… not consistent with prod:

- package-lock.json - reverted;
package-lock.json Outdated Show resolved Hide resolved
… not consistent with prod:

- package-lock.json - reverted;
@bc-max bc-max merged commit 2f14d57 into bigcommerce:master Sep 27, 2022
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