Skip to content

fix: version bump 4.1.1 - #3329

Merged
eduardoformiga merged 198 commits into
mainfrom
dev
May 15, 2026
Merged

eduardoformiga merged 198 commits into
mainfrom
dev

Conversation

@eduardoformiga

@eduardoformiga eduardoformiga commented May 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Graduation PR from dev to main. Promotes the 4.1.0-dev.10 prerelease cycle to the next stable, expected 4.1.1 (only fix: and chore: commits since 4.1.0).

Notable changes since 4.1.0

Back-merge

main was back-merged into dev (3d4d24081) before this PR to bring in the 4.1.0 release commit and avoid silent overwrites. Conflicts were resolved in favor of dev for code/CMS/version files, with CHANGELOG entries merged from both sides.

Test plan

  • dev CD published 4.1.0-dev.10 on the dev dist-tag for all 8 packages
  • After merge, main CD graduates to 4.1.1 on the latest dist-tag
  • All 8 packages publish (api, cli, components, core, diagnostics, lighthouse, sdk, ui)

Made with Cursor

Summary by CodeRabbit

Release Notes

  • Documentation

    • Added comprehensive package documentation guides across all modules for developer reference.
    • Updated README files with current setup instructions and resource links.
  • Bug Fixes

    • Fixed Toast component timer reference type handling.
  • Tests

    • Added comprehensive test suite for Toast component with accessibility validation.
    • Enhanced test coverage configuration across all packages.
  • Chores

    • Updated version to 4.1.0-dev.10 for development releases.
    • Refactored CMS page schema to use centralized component definitions.
    • Ensured RegionSlider section is always rendered in page layouts.
    • Modernized Storybook story definitions to latest format.

Review Change Stack

lariciamota and others added 30 commits October 30, 2025 09:26
## What's the purpose of this pull request?

Build our default image loader.

## How it works?

- When the FastStore image component is used, the `faststoreLoader` is
used.
- When the Next image component is used directly, the
`customImageLoader` is used.
- Both have the same behavior when handling images from VTEX (from the
file manager/cms and product images) -- they add to the URL the info
regarding size, quality and aspect, since those VTEX services already
handles optimizations.
- The difference between those loaders is regarding external images --
the one used for Next images uses the Next optimizations, and the
FastStore one doesn't.

It won't be necessary to use a feature flag like
`enableVtexAssetsLoader`.

## How to test it?

<!--- Describe the steps with bullet points. Is there any external link
that can be used to better test it or an example? --->

### Starters Deploy Preview

PR: vtex-sites/faststoreqa.store#881

## References

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2878)
- [Slack
thread](https://vtex.slack.com/archives/C03L3CRCDC4/p1761334946034969)
## What's the purpose of this pull request?

Atts.
## What's the purpose of this pull request?

This PR fixes a visual bug in the TextareaField component where long
text would appear underneath the floating label during scroll, making it
difficult to read. The issue was identified during the review of [PR
#2705](#2705 (review)).

Additionally, comprehensive Storybook documentation was added to
showcase all TextareaField variations and use cases.


https://github.com/user-attachments/assets/a86cd4df-e286-40f4-82b0-271a8bc66a26




## How it works?

**Bug Fix:**
- Added `--fs-textarea-field-label-background-color` CSS variable to
`packages/ui/src/components/molecules/TextareaField/styles.scss`
- Set default value to neutral-0 (white) to prevent text from showing
through the label
- When the textarea content is long and the user scrolls, the label now
has an opaque background, preventing text overlap

## How to test it?

**Test the scroll bug fix:**

From the project root:
```bash
pnpm --filter "@faststore/storybook" dev
```

Or navigate to the storybook package:
```bash
cd packages/storybook
pnpm dev
```

Then:
1. Open http://localhost:6006 in your browser
2. Navigate to **"TextareaField"** → **"LargeText"** story
3. Scroll inside the textarea content
4. Verify that the text no longer appears underneath the label

## References
- **Related Issue:** [PR #2705 - TextareaField label overlap issue
identified](#2705 (review))
- **Task:** [SFS-2385 ](https://vtex-dev.atlassian.net/browse/SFS-2385)
## What's the purpose of this pull request?

Revert changes from 
- #2988
since the approach to filter shopper changes to use text field instead
of selected filter in the drawer.

## details

remove purchaseAgentId filter and related components from
`MyAccountListOrders`.

This update removes the purchaseAgentId filter and its associated
components from the MyAccountListOrders section. The changes include:
- Deleting the MyAccountFilterFacetPlacedBy component and its styles.
- Adjusting the MyAccountListOrders and MyAccountSelectedTags components
to eliminate references to purchaseAgentId.
- Cleaning up related styles and imports to streamline the codebase.

These modifications aim to simplify the order filtering process and
improve overall maintainability.
## What's the purpose of this pull request?

From a current Next.js's known issue
([discussion#44013](vercel/next.js#44013)),
these changes aim to add an experimental custom hook to handle scroll
restoration when navigating back from PDPs to PLPs.


https://github.com/user-attachments/assets/9a452081-4c65-4a83-8c16-9775f97d226d

Along with this experimental hook, some adjustments needed to be made to
correct the behavior of related components, such as `Sentinel`.

While the Next.js experimental `scrollRestoration` flag is not working
as it should, we are proposing this FastStore's experimental scroll
restoration alternative.

## How it works?

While navigating through PLPs and loading more pages, when users
navigate to a PDP and navigate back the scroll should be restored to the
last position before the navigation.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#878

## References

#2054
## What's the purpose of this pull request?

Merge the changes from main
## What's the purpose of this pull request?

By using the direction property users will be able to use RTL or LTR
layouts.
## What's the purpose of this pull request?

With these changes, if merchants remove the footer logo the entire
footer component will not be hid anymore, it will throw a console error
but the component should be displayed with no logo.
#3077)

## What's the purpose of this pull request?

This PR fixes the `border-radius` of the Slider thumb in Firefox. The
current CSS rule for Mozilla uses an inexistent variable, making the
browser render a square instead of a circle:

<img width="1028" height="181" alt="image"
src="https://github.com/user-attachments/assets/50c08d79-a6a9-4d31-b2e7-5ef9e287080f"
/>

## How it works?

The `--fs-slider-thumb-radius` variable is replaced by
`--fs-slider-thumb-border-radius`, the one that is defined in the
default thumb variables.

## How to test it?

- Use the `Local Install Instructions` from the [CodeSandbox
CI](https://ci.codesandbox.io/status/vtex/faststore/pr/3077) to add this
version in the `package.json` of a store.
- Import the `Slider` atom (and styles) in a component following the
docs: https://developers.vtex.com/docs/guides/faststore/atoms-slider
- Run the store in development mode and browse it in Mozilla Firefox.

### Starters Deploy Preview

I'm unable to generate a preview link but here's a screenshot from
localhost:

<img width="1287" height="617" alt="image"
src="https://github.com/user-attachments/assets/f0a5a5e9-d657-41db-9415-303b5d17fefd"
/>

## Checklist

**PR Title and Commit Messages**

- [x] PR title and commit messages follow the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) 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`..
_(No permissions. It's a bug though.)_

**Dependencies**

- [N/A] Committed the `pnpm-lock.yaml` file when there were changes to
the packages

**Documentation**

- [x] PR description
- [N/A] For documentation changes, ping `@Mariana-Caetano` to review and
update (Or submit a doc request)
)

## What's the purpose of this pull request?

Adds a new "Pending Approval" filter to the MyAccount orders page,
allowing users to quickly filter orders that require their approval.

## How it works?

- New toggle filter: Added "Pending Approval" as the first filter option
in the orders filter slider
- Toggle switch: Users can turn on/off the filter to show only pending
approval orders
- URL integration: Filter state is reflected in the URL
(?pendingApproval=true)
- Selected tag: When active, shows "Pending my approval" tag below the
search bar

## How to test it?

- Go to /account/orders
- Open filter slider and verify "Pending Approval" is the first option
- Toggle the switch and click "Apply"
- Check URL - should include ?pendingApproval=true
- Verify tag appears - "Pending my approval" tag should show below
search bar
- Test removal - click "×" on tag or "Clear All" to remove filter
- Test direct URL - navigate to /account/orders?pendingApproval=true and
verify filter is active

## Starter deploy preview

vtex-sites/b2bfaststoredev.store#358

## References

[SFS-2618](https://vtex-dev.atlassian.net/browse/SFS-2618)

| List | Filter |
| - | - |
|
![image](https://github.com/user-attachments/assets/70a02298-4461-4b21-926d-8d6b754a78bc)
|
![image](https://github.com/user-attachments/assets/2d6afc76-7153-473a-b839-c141e4f0ca1f)
|

[SFS-2618]:

https://vtex-dev.atlassian.net/browse/SFS-2618?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

[SFS-2618]:
https://vtex-dev.atlassian.net/browse/SFS-2618?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Artur Santiago <[email protected]>
)

## What's the purpose of this pull request?

Fix a bug that occurs when regionalized and `isSessionReady` is sent in
the' validateSession' and' validateCart' mutations.

## How does it work?

It removes the `isSessionReady` from the session sent to the `setRegion`
method.

<img width="1909" height="916" alt="Screenshot 2025-11-11 at 16 22 55"
src="https://github.com/user-attachments/assets/468cc987-a2ee-432f-b306-399bfd32e891"
/>
## What's the purpose of this pull request?

This PR aims to fix the build in the dev branch.
## What's the purpose of this pull request?

With these changes, a loading skeleton will be displayed when product
price is still being validated, preventing product price flickering on
PDP.

## How to test it?

### Starters Deploy Preview
## What's the purpose of this pull request?

Allow svg files in public folder, avoid it getting deleted/overwritten
when generating .faststore

## How it works?

Add it to the allow list.

## How to test it?

Create a svg file or modify an existing svg file, it should be copied
correctly to the `/.faststore/public` when running the build command.
You can use this PR to test:
vtex-sites/faststoreqa.store#887, I've added a
new svg file and changed an existing one, before it was being
deleted/overwritten.
<img width="287" height="420" alt="Screenshot 2025-11-20 at 09 57 19"
src="https://github.com/user-attachments/assets/7b01d806-bdf9-4c3b-a385-32ea11ab2518"
/>

Nothing else should change.

### Starters Deploy Preview

- https://storeframework-cm652ufll028lmgv665a6xv0g-h0max2o2h.b.vtex.app/

## References
- [Jira task](https://vtex-dev.atlassian.net/browse/SO-559)
## What's the purpose of this pull request?

This PR considers the session when deducing the changes to the orderForm
done externally.

## What it aims to solve

The current FastStore shows a competing nature when dealing with the
same cart on two different devices (E.g. 2 browsers, Chrome and
Firefox).

### How to reproduce the problem

- Open your store in Chrome and Firefox
- Make note of the checkout.vtex.com cookie value of Chrome and view the
content of the orderForm using a client like Postman
- Paste the value of the cookie to the checkout cookie of Firefox
- Now you should have the same orderForm in Chrome, Firefox and Postman
- Add an item to the cart from Chrome
- Without going to Firefox, verify that the item is present in the
orderForm using Postman
- Now go to Firefox, but you will not see the item (Expected: the item
should be present in the cart, Actual: the browser cart in Firefox will
override the items of the real orderForm object)
- Open Postman, and you will notice that the item is not present in the
orderForm
- Now go back to Chrome, and it will add back the item to the orderForm
- Open Postman, and you will notice that the item is present in the
orderForm

## How it works?

We include the session ID to the MD5 hash, so that when the store is
used in a different browser with the same orderForm, the two hashes are
different. The two browsers should respect the changes performed by each
other.

## How to test it?

- First verify that the existing behavior of the mutation `validateCart`
is as expected.
- Follow the steps under **How to reproduce the problem**, and verify
that the expected behavior is observed.

### Starters Deploy Preview

<!--- Add a link to a deploy preview from `starter.store` with this
branch being used. --->

<!--- Tip: You can get an installable version of this branch from the
CodeSandbox generated when this PR is created. --->

## References

<!--- Spread the knowledge: is there any content you used to create this
PR that is worth sharing? --->

<!--- Extra tip: adding references to related issues or mentioning
people important to this PR may be good for the documentation and
reviewing process --->

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Title and Commit Messages**

- [ ] PR title and commit messages follow the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) 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)
## What's the purpose of this pull request?

This PR aims to fix the source code to show `undefined` `searchTerm`.
<img width="916" height="811" alt="Screenshot 2025-11-20 at 19 01 42"
src="https://github.com/user-attachments/assets/b07e44a4-9e37-45e3-9712-6ab19b1af758"
/>


## How it works?

1. The source code can't access the searchTerm from the build time;
thus, this page uses the default
<img width="1899" height="656" alt="Screenshot 2025-11-20 at 18 42 43"
src="https://github.com/user-attachments/assets/697d1b4a-e5cb-4325-a5a1-3ba5d429b7b3"
/>

2. The final code (runtime code after hydration, you can see the element
tab in the devtools), can access the dynamic search term and uses it.
<img width="1570" height="1049" alt="Screenshot 2025-11-20 at 18 42 05"
src="https://github.com/user-attachments/assets/04e0a613-950f-4416-9200-dcc239326b41"
/>

## How to test it?

You can run `pnpm build && pnpm serve` and view the source code
(right-click> Source Code). Additionally, you can view the final code
using the Element tab in the DevTools.
eduardoformiga and others added 19 commits May 11, 2026 18:01
## What's the purpose of this pull request?

Fix a bug where CMS content-types (Home, PDP, PLP, Search, Landing Page,
Global Sections) had their sections field hardcoded to an explicit list
of allowed components instead of using `$ALLOW_ALL_COMPONENTS`.

This prevented custom components from appearing in the CMS editor. Any
store that created new sections would need to manually rewrite
FastStore's schema, breaking the onboarding experience entirely.

Reported by Otavio and Caixeta. A patch was already shipped in v4.0.1 as
a hotfix.


## How it works?

FastStore's base.jsonc defines a `$ALLOW_ALL_COMPONENTS` sentinel in
**$defs**. This sentinel is replaced at build time (before sending to
Schema Registry) with the full dynamic list of all registered
components, including user-defined ones.

Previously, the .jsonc files generated for each content type had the
sections array expanded inline with a hardcoded anyOf list of known
built-in components. This list was stale and excluded any custom
component.

This PR removes the hardcoded anyOf blocks and replaces them with a
reference to `$ALLOW_ALL_COMPONENTS`, consistent with how 404, 500, and
login content types already work. Also removes the **now-obsolete**
`schema.json` that duplicated this data.


## How to test it?

Add a new custom component using the faststore@4 base. This new fixed
version is already deployed in v4.0.1.

<img width="275" height="87" alt="image"
src="https://github.com/user-attachments/assets/1e4a7398-4e5b-4b9c-827f-c7ac66ac6e2f"
/>


## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Title and Commit Messages**

- [x] PR title and commit messages follow the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification
- Available prefixes: `feat`, `fix`, `chore`, `docs`, `style`,
`refactor`, `ci` and `test`

**PR Description**

- [x] 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**

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


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

## Summary by CodeRabbit

* **Chores**
* Optimized CMS page schemas to use a centralized component allowance
system across all page types, replacing individual hardcoded component
lists. This improves maintainability and simplifies future updates to
available page section components.

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/vtex/faststore/pull/3312)

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
# Initial DK Catalog Setup

## Overview

This pull request introduces the initial setup for the DK catalog. It
includes the `catalog-info.yaml` file for integrating our services with
the DK, facilitating better visibility and management of our software
components.

## Changes

- Added `catalog-info.yaml` with the necessary metadata for our VTEX
services.
- Configured annotations for GitHub, Grafana, and TechDocs integration.
- Defined essential fields such as `type`, `lifecycle`, `owner`,
`system`.

## Purpose

The integration into DK software catalog aims to improve the
discoverability, documentation, and management of our software
components. It allows for a more centralized and organized view of our
system architecture.

## Requested Action

### Review: 

Please review the contents of the `catalog-info.yaml` for accuracy and
completeness.

### Tech Docs Pipeline Setup: 

If this repository contains docs that you want shown at your
Component/System page add the following Pipeline to your
`.vtex/deployment.(json|yaml)` file:

```yaml
- name: techdocs-v1
  parameters:
    entityReference: default/<component or system>/<your entity name> # add your entity type and name here
    sourceDir: ./
  when:
  - event: push
    source: branch
    regex: main # configure with your repository's default branch
  path:
  - "docs/*" # this will make sure this pipeline is triggered only when the `docs` directory is changes. If you use another directory to store your docs, change this.
```

Check the complete Pipeline
[documentation](https://github.com/vtex/dk-cicd-hub/blob/main/docs/pipelines/techdocs-v1.md)
for more custom options.

### Feedback: 

Suggestions for additional metadata or modifications to existing fields.

### Approval: 

Once reviewed and agreed upon, approval for merge.

## Impact

- **Visibility**: Enhanced visibility of our services within the
organization.
- **Documentation**: Better linkage to our documentation and monitoring
tools.
- **Collaboration**: Easier for teams to find and understand
dependencies and relationships between services.

## Additional Notes

- This is part of an ongoing effort to document and manage our software
architecture more effectively.
- Further iterations may include additional annotations and refinements
as our usage of DK evolves.

---

Thank you for contributing to improving our software infrastructure!

---------

Co-authored-by: dk-portal[bot] <134092483+dk-portal[bot]@users.noreply.github.com>
Co-authored-by: renatomaurovtex <[email protected]>
## What's the purpose of this pull request?

Updates faststore package readme.
- Uses how to contribute approach instead of how to use it.


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

* **Documentation**
* Comprehensive README refreshes across core, SDK, CLI, components, UI,
API, diagnostics, and Storybook with updated links and step‑by‑step
guidance for running, developing, testing, and publishing; added
Lighthouse docs.

* **Refactor**
* Modernized Storybook stories to typed meta+args format, reorganized
story groupings, and added new story variants.

* **Chores**
* Updated Storybook styling imports, switched several stories to the UI
package, and added Storybook environment docs.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/vtex/faststore/pull/3314)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## What's the purpose of this pull request?

The `RegionSlider` overlay no longer opens on stores that use **Content
Platform** as their content source, even when *"Should enable global
filter by pickup point"* is enabled in the CMS. The trigger button on
`RegionBar` correctly dispatches `openRegionSlider(...)` and
`useUI().regionSlider.isOpen` transitions to `true`, but no overlay
appears in the DOM and no warning is logged.

The defect is the cumulative consequence of three correct-in-isolation
changes that compose poorly:

1. **#2887 — Global filter by pickup point**: introduced `RegionSlider`
as a global CMS section. The runtime in `RenderSections.tsx` started
iterating the CMS-supplied `sections[]` array and mounting
`RegionSlider` whenever a section with `name: "RegionSlider"` was
present. Demo stores (`vendemo`, `storeframework`, `faststoreqa`) had
the section saved into their hCMS content during this window.
2. **#2961 — fix: Remove `RegionSlider` section**: stripped the
configurable props and then deleted the entire `{ name: "RegionSlider"
}` block from `sections.json`, because the section had no editable
per-page configuration. Stores that already had the section persisted in
hCMS kept working (hCMS doesn't revalidate persisted content against the
current schema), but the schema no longer offers it for new authoring.
3. **#3071 — chore: add content platform cms schemas**: generated the CP
schemas from `sections.json` via `vtex content split-components`. Since
`sections.json` had already been cleaned of `RegionSlider` 5 months
earlier, the generator produced CP schemas without it. Every CP
storefront created or migrated after this point — directly or
transitively via `starter.store` — inherits this gap. The CP service
strictly validates content entries against the uploaded schema, so no CP
store can save the section.

**Impact matrix:**


| Content source | Before this fix | After this fix |
|
-----------------------------------------------------------------------------------------
| ---------------------------------------- | ---------------------- |
| Content Platform, any state | Broken (trigger click is a silent no-op)
| Works |
| hCMS, section persisted in pre-#2961 content (`vendemo`,
`storeframework`, `faststoreqa`) | Works | Works (no duplication) |
| hCMS, fresh store or content created after #2961 | Broken | Works |


## How it works?

A small pure helper `withRegionSliderSection` is added inside
`packages/core/src/components/cms/RenderSections.tsx`. It inspects the
CMS-supplied `sections` and `globalSections` arrays and:

- Returns `sections` unchanged when **either** array already contains a
`{ name: "RegionSlider" }` entry. This is the legacy hCMS path — the
existing iteration mounts the component as it always has.
- Appends `{ name: "RegionSlider", data: {} }` to `sections` otherwise.
This is the CP path and the fresh-hCMS path — the runtime guarantees the
section without depending on the CMS schema.

The result is memoized as `augmentedSections` in `RenderSections` and
replaces the original `sections` reference in the second
`RenderSectionsBase` invocation. The injected entry then flows through
the existing pipeline:

- `RenderSectionsBase` resolves the component via `components[name]`, so
`CUSTOM_COMPONENTS.RegionSlider` and `PLUGINS_COMPONENTS.RegionSlider`
overrides are honored unchanged.
- `LazyLoadingSection` keeps its existing `sectionName ===
'RegionSlider' && regionSlider.isOpen && regionSlider.type !== 'none'`
branch in `shouldLoad`. The chunk is therefore only downloaded when the
shopper actually opens the slider (or after TTI, matching the bundle
behavior of `CartSidebar` and `RegionModal`).
- `RegionSlider`'s internal `if (!isOpen) return null` self-gate remains
the sole source of truth for visibility — no DOM is rendered when the
overlay is closed.


## How to test it?

Set up a Content Platform-based storefront (you can use the one from the
thread in the refs) and verify:

- Enable Delivery Promise:
  - In `discovery.config.js`, set `deliveryPromise: { enabled: true }`.
- In the CMS global settings, enable *"Should enable global filter by
pickup point"* (sets `filterByPickupPoint.enabled = true`).
- Open any page (home, PLP, PDP, search) and set a postal code.
- Click the **Filter by Store** button on the `RegionBar`.
- Expected: the `RegionSlider` overlay opens with the configured title
and pickup-point list.
- Close the overlay via the close button, `ESC`, or backdrop click.
- Expected: the overlay closes, `regionSlider.isOpen` returns to
`false`.

### Starters Deploy Preview



## References

- [Jira task](https://vtex-dev.atlassian.net/browse/SO-623)
- [Slack
thread](https://vtex.slack.com/archives/C051B6LL91U/p1778608689625729)
- Original feature PR: [#2887 — Global filter by pickup
point](#2887)
- Schema cleanup PR: [#2961 — fix: Remove `RegionSlider`
section](#2961)
- CP schemas introduction PR: [#3071 — chore: add content platform cms
schemas](#3071)

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

## Summary by CodeRabbit

* **Bug Fixes**
* The region slider CMS section is now guaranteed to be consistently
available across all CMS layouts.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/vtex/faststore/pull/3318)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
…3320)

## Summary

Phase 4 of the AI Week initiative. Restructures the agent-facing
documentation and adds two small pieces of supporting tooling.

### Commits (in chronological order)

1. **`chore: add root MCP servers configuration`** — introduces a
top-level `mcp.json` with the shared MCP server set used by the
FastStore agent workflow (chrome-devtools, Playwright, github, Figma,
vtex-docs, vtex-developer, Atlassian).
2. **`chore: add spec-kit symlink check script`** — read-only
`scripts/check-spec-kit.mjs` that warns when the private
`faststore-dx-spec-kit` symlinks (`.specify`, `.cursor`, `specs`) are
missing or broken. Always exits 0 so OSS contributors are not blocked.
Exposed as `pnpm check:spec-kit`.
3. **`docs(agents): add scoped per-package AGENTS guides`** — new
`packages/{api,cli,components,core,sdk}/AGENTS.md` files that capture
conventions previously buried in the monolithic root guide.
4. **`docs(agents): refactor root AGENTS.md as public charter`** — trims
the root down to a public charter (authority chain, architectural
principles, security & dependency rules, agent autonomy boundaries) and
defers package-specific conventions to the new scoped guides. Net: ~1k
lines of duplicated detail removed, conventions now live next to the
code they describe.

### Authority chain after this PR

1. Root `AGENTS.md` — substantive principles
2. Scoped `packages/*/AGENTS.md` — package-specific context
3. Skill files (`~/.agents/skills/*`, `vtex-agent-skills`) — execution
recipes

## Test plan

- [ ] `pnpm install` still succeeds (no behavioural changes)
- [ ] `pnpm check:spec-kit` runs and prints a warning (or exits
silently) without failing
- [ ] Spot-check the rendered `AGENTS.md` files on GitHub for broken
anchors / links between root and scoped guides
- [ ] Confirm `mcp.json` is recognized by tooling that expects it at the
repo root

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

* **Documentation**
* Added comprehensive package documentation for API, CLI, Components,
Core, and SDK covering purpose, tech stack, directory structure,
naming/workflow conventions, build & test guidance, contribution
workflows, and security/data-handling requirements.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/vtex/faststore/pull/3320)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Fanny Chien <[email protected]>
## What's the purpose of this pull request?

This PR upgrades Next.js from `16.1.6` to `16.2.6`.

## How it works?

The bump is applied centrally via the pnpm catalog in
`pnpm-workspace.yaml`, so every workspace package that declares `"next":
"catalog:"` (currently `@faststore/core` and `@faststore/storybook`)
picks up the new version automatically. The companion package
`@next/third-parties` is bumped to the same minor for consistency.

`pnpm-lock.yaml` regenerated by `pnpm install`.

No application code changes are needed — this is a patch/minor bump
within the 16.x line, no breaking changes expected.

## References

- [Vercel — Next.js May 2026 security
release](https://vercel.com/changelog/next-js-may-2026-security-release)
## What's the purpose of this pull request?

Sets up the SonarQube quality gate for FastStore. This is the foundation
for "Clean as You Code" enforcement on new code: the monorepo now
produces aggregated test coverage and runs a Sonar scan on every PR.

## How it works?

- **Coverage**: each tested package (`api`, `cli`, `components`, `core`,
`sdk`) generates LCOV via Vitest (`@vitest/coverage-v8`, pinned in
`pnpm-workspace.yaml` catalog) through a new `test:coverage` Turbo task.
- **Aggregation**: a root `ci:dkcicd` script runs `build → lint → size →
test:coverage` sequentially (avoids esbuild OOM) and merges all
per-package LCOVs into `coverage/lcov.info` with `lcov-result-merger`.
- **Pipeline**: `.vtex/deployment.yaml` runs `node-ci-v2` on PRs (amd64,
Node 24, pnpm), pointing at `sonarqube.vtex.systems` with
`gitBaseBranchName: dev` so "New Code" is compared against the right
base.


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

* **Tests**
* Added code coverage reporting across packages (unit & integration) and
a new comprehensive test suite for the Toast component with
accessibility checks.

* **Chores**
* Improved test scripts/configuration to consolidate coverage outputs
and made a minor internal typing alignment for toast timeouts.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/vtex/faststore/pull/3319)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@eduardoformiga
eduardoformiga requested a review from a team as a code owner May 15, 2026 20:53
@eduardoformiga
eduardoformiga requested review from lariciamota and ommeirelles and removed request for a team May 15, 2026 20:53
@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.

@coderabbitai

coderabbitai Bot commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 861a56eb-1133-43aa-91fc-3f4de32608a1

📥 Commits

Reviewing files that changed from the base of the PR and between dcbe238 and eb781b3.

⛔ Files ignored due to path filters (15)
  • .github/workflows/pr.yml is excluded by none and included by none
  • .vtex/catalog-info.yaml is excluded by none and included by none
  • .vtex/deployment.yaml is excluded by none and included by none
  • AGENTS.md is excluded by none and included by none
  • CHANGELOG.md is excluded by none and included by none
  • CONTRIBUTING.md is excluded by none and included by none
  • README.md is excluded by none and included by none
  • lerna.json is excluded by none and included by none
  • mcp.json is excluded by none and included by none
  • package.json is excluded by none and included by none
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml and included by none
  • pnpm-workspace.yaml is excluded by none and included by none
  • scripts/check-spec-kit.mjs is excluded by none and included by none
  • sonar-project.properties is excluded by none and included by none
  • turbo.json is excluded by none and included by none
📒 Files selected for processing (58)
  • packages/api/AGENTS.md
  • packages/api/CHANGELOG.md
  • packages/api/README.md
  • packages/api/package.json
  • packages/api/vitest.config.ts
  • packages/cli/AGENTS.md
  • packages/cli/CHANGELOG.md
  • packages/cli/README.md
  • packages/cli/package.json
  • packages/cli/vitest.config.ts
  • packages/components/AGENTS.md
  • packages/components/CHANGELOG.md
  • packages/components/README.md
  • packages/components/package.json
  • packages/components/src/molecules/Toast/Toast.tsx
  • packages/components/test/molecules/Toast/Toast.test.tsx
  • packages/components/vitest.config.mts
  • packages/core/AGENTS.md
  • packages/core/CHANGELOG.md
  • packages/core/README.md
  • packages/core/cms/faststore/pages/cms_content_type__globalfootersections.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__globalheadersections.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__globalsections.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__home.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__landingpage.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__pdp.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__plp.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__search.jsonc
  • packages/core/cms/faststore/schema.json
  • packages/core/package.json
  • packages/core/src/components/cms/RenderSections.tsx
  • packages/core/vitest.config.ts
  • packages/diagnostics/CHANGELOG.md
  • packages/diagnostics/README.md
  • packages/diagnostics/package.json
  • packages/lighthouse/CHANGELOG.md
  • packages/lighthouse/README.md
  • packages/lighthouse/package.json
  • packages/sdk/AGENTS.md
  • packages/sdk/CHANGELOG.md
  • packages/sdk/README.md
  • packages/sdk/package.json
  • packages/sdk/vitest.config.mts
  • packages/storybook/.storybook/preview.ts
  • packages/storybook/.storybook/styles.scss
  • packages/storybook/CHANGELOG.md
  • packages/storybook/README.md
  • packages/storybook/package.json
  • packages/storybook/stories/badge.stories.tsx
  • packages/storybook/stories/button.stories.tsx
  • packages/storybook/stories/dropzone.stories.tsx
  • packages/storybook/stories/fileupload.stories.tsx
  • packages/storybook/stories/quick-order-drawer.stories.tsx
  • packages/storybook/stories/textareafield.stories.tsx
  • packages/storybook/stories/upload-file-dropdown.stories.tsx
  • packages/ui/CHANGELOG.md
  • packages/ui/README.md
  • packages/ui/package.json

Walkthrough

This PR delivers monorepo-wide infrastructure and documentation updates across FastStore packages: adds AGENTS.md contributor guidance, centralizes CMS component allowlists via shared schema definitions, enables test coverage across packages, enhances the Toast component with TypeScript safety and comprehensive tests, injects RegionSlider sections automatically, and modernizes Storybook stories to CSF3 format with package import realignment.

Changes

Documentation and Developer Guidance Infrastructure

Layer / File(s) Summary
Developer Guidance & Documentation
packages/api/AGENTS.md, packages/cli/AGENTS.md, packages/components/AGENTS.md, packages/core/AGENTS.md, packages/sdk/AGENTS.md, packages/diagnostics/README.md, packages/lighthouse/README.md, packages/storybook/README.md, packages/api/README.md, packages/cli/README.md, packages/components/README.md, packages/core/README.md, packages/sdk/README.md, packages/ui/README.md, packages/api/CHANGELOG.md, packages/cli/CHANGELOG.md, packages/components/CHANGELOG.md, packages/core/CHANGELOG.md, packages/diagnostics/CHANGELOG.md, packages/lighthouse/CHANGELOG.md, packages/sdk/CHANGELOG.md, packages/storybook/CHANGELOG.md, packages/ui/CHANGELOG.md
New AGENTS.md files provide operational conventions, tech stack, build constraints, testing patterns, and contributor workflows for api, cli, components, core, and sdk. All READMEs updated with refreshed documentation links (faststore.dev → developers.vtex.com), package descriptions, local setup/test commands, and publishing guidance. Changelogs prepended with version bump entries (4.1.0-dev.10 through 4.1.0-dev.2/5/6).

Test Coverage and Monorepo Infrastructure

Layer / File(s) Summary
Test Coverage Infrastructure & Package Versioning
packages/api/package.json, packages/cli/package.json, packages/components/package.json, packages/core/package.json, packages/sdk/package.json, packages/diagnostics/package.json, packages/lighthouse/package.json, packages/storybook/package.json, packages/ui/package.json, packages/api/vitest.config.ts, packages/cli/vitest.config.ts, packages/components/vitest.config.mts, packages/core/vitest.config.ts, packages/sdk/vitest.config.mts
All packages updated to version 4.1.0-dev.10. Coverage-enabled packages (api, cli, components, core, sdk) gain @vitest/coverage-v8 devDependency and test:coverage scripts. Vitest configs add coverage blocks enabling v8 provider, text + lcov reporters, ./coverage output directory, and src-focused include/exclude globs to control coverage scope across packages.

CMS Schema Refactoring

Layer / File(s) Summary
CMS Component Allowlist Centralization
packages/core/cms/faststore/pages/cms_content_type__globalfootersections.jsonc, packages/core/cms/faststore/pages/cms_content_type__globalheadersections.jsonc, packages/core/cms/faststore/pages/cms_content_type__globalsections.jsonc, packages/core/cms/faststore/pages/cms_content_type__home.jsonc, packages/core/cms/faststore/pages/cms_content_type__landingpage.jsonc, packages/core/cms/faststore/pages/cms_content_type__pdp.jsonc, packages/core/cms/faststore/pages/cms_content_type__plp.jsonc, packages/core/cms/faststore/pages/cms_content_type__search.jsonc, packages/core/cms/faststore/schema.json
Refactors CMS page/section validation: replaces per-content-type inline anyOf component allowlists with single $ref: #/$defs/$ALLOW_ALL_COMPONENTS references across all eight page types. Centralizes $defs block (base-component, base-page-template, $ALLOW_ALL_COMPONENTS) to end of schema.json. Relocates ScrollToTopButton component definition within components object.

Toast Component Enhancement

Layer / File(s) Summary
Toast Component TypeScript Safety and Testing
packages/components/src/molecules/Toast/Toast.tsx, packages/components/test/molecules/Toast/Toast.test.tsx
Toast timeoutRef retyped from useRef<number>() to useRef<ReturnType<typeof setTimeout>>() for correct platform-specific type. New comprehensive test suite (102 lines) uses Vitest + React Testing Library to verify: no render when toasts empty, latest toast rendered with role=status, optional title support, custom icon rendering, single latest toast when multiple queued, and zero accessibility violations via axe.

RegionSlider Section Injection

Layer / File(s) Summary
RegionSlider Section Injection in RenderSections
packages/core/src/components/cms/RenderSections.tsx
Introduces REGION_SLIDER_SECTION_NAME constant and withRegionSliderSection helper that injects { name: 'RegionSlider', data: {} } when missing from both sections and globalSections. Updates lazy-loading list to use constant reference. RenderSections now memoizes augmentedSections via helper and renders via RenderSectionsBase (guarded by length check) instead of conditional iteration on original sections.

Storybook Modernization

Layer / File(s) Summary
Storybook CSF3 Modernization and Package Import Migration
packages/storybook/stories/badge.stories.tsx, packages/storybook/stories/button.stories.tsx, packages/storybook/stories/dropzone.stories.tsx, packages/storybook/stories/fileupload.stories.tsx, packages/storybook/stories/quick-order-drawer.stories.tsx, packages/storybook/stories/textareafield.stories.tsx, packages/storybook/stories/upload-file-dropdown.stories.tsx, packages/storybook/.storybook/preview.ts, packages/storybook/.storybook/styles.scss
Badge and button stories converted from function-based to typed CSF3 Meta/StoryObj with args-driven story exports (Default, Primary, Secondary, Tertiary, Info, Success, Warning, Danger). All story files (dropzone, fileupload, quickOrderDrawer, textareafield, uploadFileDropdown) updated to import from @faststore/ui instead of @faststore/components. Storybook preview now imports ./styles.scss; styles.scss now imports from @faststore/ui/src/styles/{global,components} instead of individual files.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • vtex/faststore#3321: Parallel RegionSlider injection via withRegionSliderSection helper in RenderSections.tsx.
  • vtex/faststore#3320: Comprehensive AGENTS.md documentation split across same package set (api, cli, components, core, sdk).
  • vtex/faststore#3312: CMS schema refactoring to centralize component allowlists via $defs/$ALLOW_ALL_COMPONENTS references.

Suggested labels

bug

Suggested reviewers

  • renatomaurovtex
  • emersonlaurentino
  • gabpaladino

📚 A monorepo's breath of fresh air—
Docs guide the way, schemas unified fair,
Tests now covered, stories modern and bright,
RegionSlider ensures sections render right. ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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

@sonar-workflows

Copy link
Copy Markdown

@eduardoformiga
eduardoformiga merged commit 59345b3 into main May 15, 2026
5 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 9, 2026
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.