Repository navigation
chore: updates dev with main - #3250
Conversation
## 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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
WalkthroughUpdates CMS schema configurations for FastStore by changing the base schema identifier to a compact format, reordering schema properties, and converting the pagination cursor ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
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. |
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
feat,fix,chore,docs,style,refactor,ciandtestPR Description
breaking change,bug,contributing,performance,documentation..Dependencies
pnpm-lock.yamlfile when there were changes to the packagesDocumentation
@Mariana-Caetanoto review and update (Or submit a doc request)Summary by CodeRabbit