Repository navigation
feat(core): add customizable page sections renderer - #3604
lokinmodar wants to merge 10 commits into
Conversation
DK Review — Audit SummaryVerdict: ✅ CLEAN
Only BLOCK and RESTRICT findings anchored to a changed line are commented inline on the diff. The finding below opens no review thread. Scenarios evaluated: feature-flags, general-review 📋 Findings (1)SUGGEST
DK Review v1.0.0 | To contest a finding, reply in its thread |
|
Regarding the DK Review suggestion to replace
|
|
Addressed the DK Review general.documentation-gap suggestion in f6c254e. The Core README now calls out that 404, 500, and login may pass through PageSectionsRenderer, explains the fallback-page failure risk, and requires an early safe default branch before type-specific assumptions. |
|
Clarified the store-owned recipe contract in 69a7283. The README example now selects a two-column recipe from page settings, documents local narrowing for the open settings record, and explicitly covers multi-row, column-region, and full-width compositions without exposing CSS or a layout DSL through CMS. No public API or runtime change was needed: the existing contentType, settings, sections, and renderSections contract already supports these layouts. |
|
Addressed the latest DK Review Functional.Check suggestion in f50af43. The development validation effect now depends on settings, and the new browser test rerenders with stable section/global/component references while changing only the layout setting; it proves the omitted-section warning is re-evaluated. Targeted result: RenderSections.browser.test.tsx, 10/10 passing. |
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| OSS Licenses | View in Orca | ||
| Malicious Packages | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
|

0 New Issues
0 Fixed Issues
0 Accepted Issues
What's the purpose of this pull request?
Stores that need multi-column or zoned CMS page layouts currently have to bypass or reimplement FastStore's section pipeline. That loses framework behavior such as section boundaries, lazy loading, component resolution, and framework-injected sections.
This PR adds an opt-in, content-type-agnostic page sections renderer. Store code can group or partition page sections while delegating every subset back to the native renderer.
Closes #3603
How it works?
src/components/PageSectionsRenderer.tsx.PageSectionsRendererPropsfrom@faststore/corewith:contentTypesettingssectionsrenderSections(sections), which preserves the native FastStore pipelinehome,landingPage,plp,search,pdp,404,500, andlogin.The contract is additive. Existing
RenderSectionscallers that do not provide acontentTypecontinue through the previous path.How to test it?
Automated validation run from a clean clone:
pnpm turbo run generate --filter=@faststore/corepnpm turbo run test --filter=@faststore/core— 153 files and 1,322 tests passedpnpm turbo run build --filter=@faststore/coreManual validation:
ci/codesandboxcheck.src/components/PageSectionsRenderer.tsxusing the example inpackages/core/README.md.renderSections.Starters Deploy Preview
A dedicated starter URL is not included because this is a framework extension point rather than a fixed visual change. The installable version generated by the
ci/codesandboxcheck can be used with the documented example in any starter.References
Checklist
PR Title and Commit Messages
PR Description
contributinglabel according to the repository guidelines (automation currently lacks label permission)Dependencies
pnpm-lock.yamlis unchangedDocumentation
packages/core/README.mdand pinged@Mariana-Caetanofor review