Skip to content

feat(storefront): strf-9832 Inconsistent behavior for FM in custom templates:#983

Merged
bc-max merged 1 commit intobigcommerce:masterfrom
bc-max:STRF-9832-Inconsistent-behavior-for-FM-in-custom-templates-between-Stencil-CLI-and-Storefront
Sep 22, 2022
Merged

feat(storefront): strf-9832 Inconsistent behavior for FM in custom templates:#983
bc-max merged 1 commit intobigcommerce:masterfrom
bc-max:STRF-9832-Inconsistent-behavior-for-FM-in-custom-templates-between-Stencil-CLI-and-Storefront

Conversation

@bc-max
Copy link
Contributor

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

What?

Stencil cli mode is currently disrespect frontmatter in custom templates and uses default FM instead which is what set forth in our documentation. However, customers want stencil logic to fit regular mode logic (respects custom templates FM). Here we add information about custom layouts into headers being sent to bcapp where we process FM logic. This is first part of the task. Another part is located in bcapp repo (where you can find new tested behavior)

Tickets / Documentation

Add links to any relevant tickets and documentation.

Screenshots (if appropriate)

Find screenshots here

cc @bigcommerce/storefront-team

@bc-max bc-max self-assigned this Sep 16, 2022
…mplates:

- renderer.module.js - sends additional header to bcapp (customLayouts);
- renderer.module.spec.js - tests amended;
- index.js - custom layouts added;
@bc-max bc-max force-pushed the STRF-9832-Inconsistent-behavior-for-FM-in-custom-templates-between-Stencil-CLI-and-Storefront branch from cf911dc to c08de59 Compare September 21, 2022 06:54
@bc-max bc-max marked this pull request as ready for review September 21, 2022 07:28
@bc-max bc-max requested a review from jairo-bc September 21, 2022 07:28
Copy link
Contributor

@jairo-bc jairo-bc left a comment

Choose a reason for hiding this comment

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

@bc-max Overall looks good to me. Left small suggestion and do you mind to update changelog?

@bc-max
Copy link
Contributor Author

bc-max commented Sep 21, 2022

@bc-max Overall looks good to me. Left small suggestion and do you mind to update changelog?

#984

@bc-max bc-max merged commit 17a25f1 into bigcommerce:master Sep 22, 2022
@chrisboulton
Copy link
Member

@bc-max We might want to consider a different approach for this - it looks as if from #994 this is possibly the cause of large/extra headers that are being rejected from our (BigCommerce) edge on certain stores with certain configurations. Thoughts?

@bc-max
Copy link
Contributor Author

bc-max commented Oct 27, 2022

@bc-max We might want to consider a different approach for this - it looks as if from #994 this is possibly the cause of large/extra headers that are being rejected from our (BigCommerce) edge on certain stores with certain configurations. Thoughts?

@chrisboulton I'll create a ticket and we take a look.

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.

4 participants