Skip to content

fix: region slider section render 3.x - #3321

Merged
lariciamota merged 1 commit into
3.xfrom
fix/region-slider-section-render-3.x
May 14, 2026
Merged

lariciamota merged 1 commit into
3.xfrom
fix/region-slider-section-render-3.x

Conversation

@lariciamota

@lariciamota lariciamota commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Same fix made here, but for the v3.

Summary by CodeRabbit

Release Notes

  • Improvements
    • Region Slider section is now automatically included in the CMS rendering system, ensuring it's always available for use even when not explicitly configured. Duplicate entries are prevented to maintain clean section management.

Review Change Stack

@lariciamota lariciamota self-assigned this May 13, 2026
@lariciamota lariciamota added the bug Something isn't working label May 13, 2026
@lariciamota
lariciamota marked this pull request as ready for review May 13, 2026 21:43
@coderabbitai

coderabbitai Bot commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@lariciamota has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 56 minutes and 6 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ef70213b-c695-4e62-9fa7-140a257243f3

📥 Commits

Reviewing files that changed from the base of the PR and between 918302e and 478b1c2.

📒 Files selected for processing (1)
  • packages/core/src/components/cms/RenderSections.tsx

Walkthrough

RenderSections.tsx ensures the RegionSlider section always participates in section rendering by defining a helper function that injects the section with empty data when it's missing from both sections and globalSections, then applies this helper via memoization and updates the render path to use the augmented section list.

Changes

RegionSlider Auto-Injection

Layer / File(s) Summary
RegionSlider injection helper
packages/core/src/components/cms/RenderSections.tsx
Introduces REGION_SLIDER_SECTION_NAME constant and withRegionSliderSection helper that appends a missing RegionSlider entry with empty data while avoiding duplicates.
Section augmentation and rendering
packages/core/src/components/cms/RenderSections.tsx
Memoizes augmentedSections via the helper, updates the render gate from sections.length > 0 to augmentedSections.length > 0, and passes the augmented list to RenderSectionsBase.

🎯 2 (Simple) | ⏱️ ~8 minutes

🎪 A slider sneaks into the render,
Through augmented sections it will venture,
No hardcoded names, just a helper so keen,
RegionSlider slides where it's never been seen! 🎢

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: fixing the region slider section rendering on the 3.x branch, which aligns with the PR's objective to add a section to the CMS section list.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/region-slider-section-render-3.x

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@lariciamota
lariciamota requested a review from a team as a code owner May 13, 2026 21:43
@lariciamota
lariciamota requested review from gabpaladino and lucasfp13 and removed request for a team May 13, 2026 21:43
@lariciamota lariciamota changed the title Add section to the CMS section list fix: region slider section render 3.x May 13, 2026
@codesandbox-ci

codesandbox-ci Bot commented May 13, 2026 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

lariciamota added a commit that referenced this pull request May 14, 2026
## What's the purpose of this pull request?

The FastStore CI job on the `3.x` branch has been failing on the **Build
starter** step since the `starter.store` repository was migrated to
FastStore v4.

Our CI workflow clones `vtex-sites/starter.store` to run a real build
against the starter. Since the clone has no branch ref, it picks up
`main` — which is now on v4. As a result the v3 tarballs are never
materialized, and `yarn build` fails. This blocks every PR targeting
`3.x`.

To unblock CI on `3.x` we need to clone a v3-compatible starter. A
dedicated `3.x` branch was created on `vtex-sites/starter.store`. This
PR points the CI clone step to that branch.

## How to test it?

- Open this PR and confirm that the **FastStore** CI job (specifically
the **Build starter** step) now passes against `3.x`.
- Re-run CI on a blocked PR targeting `3.x` (e.g. #3321) after this is
merged + rebased on top — the same step should turn green there too.

## References

- `starter.store` v4 migration commit that broke CI on `3.x`:
[vtex-sites/starter.store@d709f5b](vtex-sites/starter.store@d709f5b)
- New frozen v3 branch tip: [vtex-sites/starter.store@8f8aa00 (branch
`3.x`)](https://github.com/vtex-sites/starter.store/tree/3.x)
- PR currently blocked by the CI failure: #3321
@lariciamota
lariciamota force-pushed the fix/region-slider-section-render-3.x branch from 918302e to 478b1c2 Compare May 14, 2026 19:28
@pkg-pr-new

pkg-pr-new Bot commented May 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

@faststore/api

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/cli

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/components

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/core

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/graphql-utils

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/lighthouse

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/sdk

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/ui

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

commit: 478b1c2

@lariciamota
lariciamota merged commit 8e9fa4f into 3.x May 14, 2026
4 checks passed
@lariciamota
lariciamota deleted the fix/region-slider-section-render-3.x branch May 14, 2026 19:33
@coderabbitai coderabbitai Bot mentioned this pull request May 15, 2026
1 of 3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants