Skip to content

chore: updates dev with main - #3250

Merged
eduardoformiga merged 2 commits into
devfrom
chore/updates-dev-with-main
Mar 27, 2026
Merged

eduardoformiga merged 2 commits into
devfrom
chore/updates-dev-with-main

Conversation

@eduardoformiga

@eduardoformiga eduardoformiga commented Mar 27, 2026 •

Copy link
Copy Markdown
Member

What's the purpose of this pull request?

How it works?

How to test it?

Starters Deploy Preview

References

Checklist

You may erase this after checking them all 😉

PR Title and Commit Messages

  • PR title and commit messages follow the Conventional Commits specification
    • Available prefixes: feat, fix, chore, docs, style, refactor, ci and test

PR Description

  • Added a label according to the PR goal - breaking change, bug, contributing, performance, documentation..

Dependencies

  • Committed the pnpm-lock.yaml file when there were changes to the packages

Documentation

  • PR description
  • For documentation changes, ping @Mariana-Caetano to review and update (Or submit a doc request)

Summary by CodeRabbit

  • Refactor
    • Updated pagination cursor field format from numeric to string values in product component schemas.
    • Simplified configuration schema structure and organization.

lucasfp13 and others added 2 commits March 27, 2026 14:58
## What's the purpose of this pull request?

This PR changes the way base json schemas treat the `after` attribute to
ensure stores migrating from hCMS to the new CMS (Content Platform)
don't have type mismatch.

This should be treated as a **hotfix** given the urgency: we need to
ensure that store migrations (which will begin early next week) occur
without type errors. We should release a new stable version (merge in
`main`) containing this fix and make this version the minimum required
for the migration to take place.

## How it works?

From now on the `after` attribute will be sent to the hCMS and CMS as
`string`, not as `integer`, matching the type is sent to VTEX APIs
(GraphQL queries from `@faststore/api`).

### Starters Deploy Preview


## References

Field validation error on CMS (Content Platform):

<img width="377" height="173" alt="Screenshot 2026-03-25 at 16 53 25"
src="https://github.com/user-attachments/assets/34eef93c-c3ab-4406-a4b3-36a83865f0bc"
/>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Pagination cursor for product shelf and product tiles now accepts
string values and uses "0" as the normalized default. This improves
pagination consistency across the storefront, reduces type-related
errors when configuring or navigating paginated product lists, and
ensures more predictable behavior for loading additional product pages.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Mateus Pontes <[email protected]>
@eduardoformiga
eduardoformiga requested a review from a team as a code owner March 27, 2026 21:36
@eduardoformiga
eduardoformiga requested review from ommeirelles and renatamottam and removed request for a team March 27, 2026 21:36
@coderabbitai

coderabbitai Bot commented Mar 27, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c522bb40-e75d-4eae-9029-e61ad7143c3e

📥 Commits

Reviewing files that changed from the base of the PR and between e49133f and 177e60a.

📒 Files selected for processing (5)
  • packages/core/cms/faststore/base.jsonc
  • packages/core/cms/faststore/components/cms_component__productshelf.jsonc
  • packages/core/cms/faststore/components/cms_component__producttiles.jsonc
  • packages/core/cms/faststore/schema.json
  • packages/core/cms/faststore/sections.json

Walkthrough

Updates CMS schema configurations for FastStore by changing the base schema identifier to a compact format, reordering schema properties, and converting the pagination cursor (after field) from integer to string type across ProductShelf and ProductTiles components and sections.

Changes

Cohort / File(s) Summary
Base Schema Configuration
packages/core/cms/faststore/base.jsonc
Updated schema identifier ($id) from full URL to compact value vtex.faststore and reordered components and content-types properties.
Component Pagination Schemas
packages/core/cms/faststore/components/cms_component__productshelf.jsonc, packages/core/cms/faststore/components/cms_component__producttiles.jsonc
Changed after field type from integer to string with default value updated from 0 to "0" in both ProductShelf and ProductTiles components.
Section Pagination Schemas
packages/core/cms/faststore/sections.json
Updated after property type from integer to string with default changed from 0 to "0" in ProductShelf and ProductTiles sections.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

hotfix

Suggested reviewers

  • ommeirelles
  • hellofanny
  • renatomaurovtex

Poem

✨ Schemas refined, from int to string so bright,
Pagination cursors dancing in the light,
Properties reordered, identifiers lean,
FastStore CMS schemas now pristine! 🚀

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The PR title 'chore: updates dev with main' does not clearly describe the actual changes, which involve converting the 'after' pagination field type from integer to string across multiple schema files and updating schema identifiers. Use a more specific title that captures the main change, such as 'chore: convert after pagination field from integer to string' or reference the specific issue like 'chore: updates dev with main (#3245)'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ 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 chore/updates-dev-with-main

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.

@codesandbox-ci

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.

@eduardoformiga
eduardoformiga merged commit 4ef5d6f into dev Mar 27, 2026
3 checks passed
@eduardoformiga
eduardoformiga deleted the chore/updates-dev-with-main branch March 27, 2026 21:42
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