Skip to content

feat: Add RegionSlider clear filter button - #2944

Merged
lucasfp13 merged 23 commits into
feat/delivery-promise-1.2from
feat/SFS-2459-region-slider-clear-filter-button
Jul 17, 2025
Merged

lucasfp13 merged 23 commits into
feat/delivery-promise-1.2from
feat/SFS-2459-region-slider-clear-filter-button

Conversation

@lucasfp13

@lucasfp13 lucasfp13 commented Jul 15, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup points filters in the RegionSlider component.

How it works?

This button will be displayed only when shopper is changing pickup points (selected or global ones).

Than for applied filters it will clear everything, including from selected facets.

How to test it?

First, you can use the Starter preview below, but for local development you'll need to use the vendemo account we already set up for Delivery Promise: on discovery.config you should change the following attributes:

  • api: { storeId: 'vendemo', ... };
  • session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR', country: 'BRA', ... };
  • deliveryPromise: { enabled: true, mandatory: false };

After that, specify one of the following zip codes (using the RegionButton on the navbar) to test Delivery Promise features: 50030-260, 20070-001 or 04538-132.

Then, try opening the RegionSlider and applying some pickup points and clearing the filter. The RegionSlider should not close after clear filters and all the state should be reset: selectedFacets should not have the previously selected pickup point, and both globalPickupPoint and defaultSelectedPickup also should be reset.

Starters Deploy Preview

vtex-sites/faststoreqa.store#838

@lucasfp13 lucasfp13 self-assigned this Jul 15, 2025
@lucasfp13
lucasfp13 requested a review from a team as a code owner July 15, 2025 13:53
@lucasfp13
lucasfp13 requested review from gabpaladino and renatomaurovtex and removed request for a team July 15, 2025 13:53
@codesandbox-ci

codesandbox-ci Bot commented Jul 15, 2025 •

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.

Base automatically changed from feat/filter-by-store to feat/delivery-promise-1.2 July 15, 2025 14:10
lariciamota and others added 16 commits July 15, 2025 11:22
It creates a new tab inside the Global Sections CMS. In the new Settings
tab, it will be possible to configure settings related to
regionalization, which will be used by components such as the Region
Modal and Region Popover.
This PR doesn't update all components/sections, it'll be done after. In
this PR, there is an update to `FilterDesktop` so we can validate the
change.

The merchant will be able to configure their regionalization-related
message in a single place (Global Sections Settings tab) instead of
duplicate messages through sections.
To avoid introducing breaking changes, I haven't removed the messages
from the sections yet - this will be done in v4. I've added a
deprecation notice in every field that was created in the Settings tab.

In v3, the components/sections will use the messages defined in the
sections CMS; if they're blank, they will use the messages in the Global
Sections Settings tab.
<img width="1227" alt="Screenshot 2025-05-15 at 10 30 42"
src="https://github.com/user-attachments/assets/e1b9b32f-7270-43a7-8016-abb536c08272"
/>

In the CMS of the vendemo store, I've added messages in the Global
Sections Settings tab using a `[GS]` at the beginning of every message
so we can identify the ones that are coming from this tab.

- PLP
I've only removed (left blank) the messages in `Product List Page >
Product Gallery > Filter > Delivery Settings > **Delivery Section
description**` and `Product List Page > Product Gallery > Filter >
Delivery Settings > Delivery Custom labels > **Shipping label**`, those
are the ones that should use the GS one.

- Search page
The messages from `Search Page > Product Gallery > Filter > Delivery
Settings` were all left blank (we hadn't updated this page to add the
messages -- so this page didn't have messages defined for those cases,
and we hadn't noticed 😣).

| PLP | Search Page |
| ---- | ---- |
| <img width="649" alt="Screenshot 2025-05-15 at 09 59 40"
src="https://github.com/user-attachments/assets/199d8e0d-a638-4b3e-ade2-95bbeaaf3a86"
/> | <img width="772" alt="Screenshot 2025-05-15 at 10 09 08"
src="https://github.com/user-attachments/assets/8edc352e-bf44-46bd-92a2-f9232b407d77"
/> |
| <img width="1496" alt="Screenshot 2025-05-15 at 10 15 40"
src="https://github.com/user-attachments/assets/17284640-fb0e-45d0-b44b-8c7db98fc7be"
/> | <img width="1499" alt="Screenshot 2025-05-15 at 10 16 30"
src="https://github.com/user-attachments/assets/97801ddd-3b87-4c1f-a166-f8ef7b8d6fcd"
/> |
| <img width="1495" alt="Screenshot 2025-05-15 at 10 17 37"
src="https://github.com/user-attachments/assets/1eb5023c-b724-41f3-8b4f-8cc57f7c4b4c"
/> | <img width="1495" alt="Screenshot 2025-05-15 at 10 18 05"
src="https://github.com/user-attachments/assets/4457b88e-31a7-4aa2-83ed-8038290a1e2c"
/> |

- Vendemo [[PR](dp-faststore-org/vendemo-dp#17)
/
[preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-7sfv6u49l.b.vtex.app/)]

- [Slack discussion
thread](https://vtex.slack.com/archives/C03L3CRCDC4/p1747248599365189)
When Delivery Promise enabled:
- Adds Shipping Filters component in PLP
- List Shipping options available to filter
- Enable add custom labels for shipping option via hCMS
- Adds `Set Location` button when no zip code provided

note: Button actions and facets filters is not fully integrated yet.

- List Shipping options available to filter (according to the zipcode
provided)

|Desktop| Mobile|
|-|-|
|<img width="559" alt="image"
src="https://github.com/user-attachments/assets/580c5e0c-9bb2-485a-8746-514f938cf54d"
/>|<img width="300" alt="image"
src="https://github.com/user-attachments/assets/b4f23fa4-99ab-474e-9484-ab13cd7ff516"
/>|

|Desktop| Mobile|
|-|-|
|<img width="691" alt="image"
src="https://github.com/user-attachments/assets/c1b6a448-5e2e-46e4-9969-742e6a35649b"
/>|<img width="200" alt="image"
src="https://github.com/user-attachments/assets/2ffe9385-da5f-4417-8d9b-7d1e207ebd1e"
/>|

- Show `Set Location` Button when no zipcode is provided

|Desktop| Mobile|
|-|-|
|<img width="518" alt="image"
src="https://github.com/user-attachments/assets/d66d972b-fa25-4e0e-b07a-51300f5ff787"
/>|<img width="392" alt="image"
src="https://github.com/user-attachments/assets/2e4bfe9b-412f-4f1f-b3f4-04055834424a"
/>|

- CMS
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/bb83b8b1-95f0-4bea-b49b-7f750a57b052"
/>

if you test using an account that delivery promise is not enabled,
nothing should be changed.

Run locally pointing to `vendemo` account, ou try this preview.

1. if deliveryPromise.enabled is `false` in `discovery.config, no
changes are expected.

Enable deliveryPromise in `discovery.config`, and test the scenarios
below:
1. Navigate to a PLP, you should be able to see a `Delivery` section in
the Filters component. (Also try in the mobile resolution)
2. If no zipCode provided, you should be able to see `Set Location`
button
3. If zipCode provided, you should be able to see the list of available
shipping options for that zipCode

vtex-sites/faststoreqa.store#799

---------

Co-authored-by: Lucas Feijó <[email protected]>
Co-authored-by: Larícia Mota <[email protected]>
This PR contains the shipping methods integration with API.

We already have some of the shipping facets being rendered, but no
action was being made. After these changes, the filters should work
depending on the selected scenario.

The `usePickupPoints` hook is responsible to get the list of pickup
points available for the specific location in session. Based on that
list, we create the `pickup-in-point` facet on the client-side (it's not
delivered by the IS API) and inject on the facets list.

When the `pickup-in-point` is selected, a additional facet called
`pickupPoint` is also added on the facets list, then on the Search
client (`@faststore/api`) we transform it on query string param and send
it in the `product_search` IS request.

| Desktop | Mobile |
| - | - |
| ![Screenshot 2025-05-26 at 14 39
03](https://github.com/user-attachments/assets/782a45b5-d1bd-4967-9a7e-abe8c6f41ae7)
| ![Screenshot 2025-05-26 at 14 38
53](https://github.com/user-attachments/assets/078fbc83-2b89-411a-9533-415486f99e7b)
|

- Use the following postal code: `50030-260`;
- Pay attention to the behavior of each different filter: each one must
send the correct parameters/variables in the query (check the `Network`
tab);
- Observe the behavior and visibility of the filters on both desktop and
mobile, the logic is similar but they have some different details that
can impact navigation;

vtex-sites/faststoreqa.store#812
This PR intends to add the `RegionFilter` component and its
specifications.

It will display the global filter by store if the following scenario is
confirmed:
- It is enabled in `sections.json` inside `Navbar`'s navigation
settings;
- Delivery Promise feature is enabled in `discovery.config`;
- The shopper has set a zip code;
- Has pickup points available for that zip code;

<img width="420" alt="Screenshot 2025-06-12 at 10 31 52"
src="https://github.com/user-attachments/assets/ece10e36-f91e-407c-a902-f376d54667f1"
/>

Check all possible states:
- Without postal code set;
- Only with postal code;
- With both buttons enabled;

vtex-sites/faststoreqa.store#825

---------

Co-authored-by: Fanny Chien <[email protected]>
This PR intends to create the Delivery Promise reducer and provider to
handle global context through shopper navigation, while leverage from
the `useDeliveryPromise` hook towards managing all delivery state and
actions.

It should handle the global filter by store scenario: the shopper should
be able to select a pickup point from the specific location set in the
current session and this pickup point should be read when navigating to
any PLP.

vtex-sites/faststoreqa.store#832

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
@lucasfp13
lucasfp13 force-pushed the feat/SFS-2459-region-slider-clear-filter-button branch from 7960eea to 857ba42 Compare July 15, 2025 14:27
value === PICKUP_IN_POINT_FACET_VALUE || key === PICKUP_POINT_FACET_KEY
)

if (selectedPickupInPointFacets.length === 0) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot, this is the scenario when no facets selected, but we just need to clear the state right?

@lucasfp13 lucasfp13 Jul 17, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, basically the shopper is selecting for the first time and want to clear, so we just need to clear the RegionSlider state

@@ -62,6 +62,7 @@ function RegionSlider() {
clearPickupPointsSimulation,
globalPickupPoint,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly related to this task, but we've made quite a few changes to this file recently, and it feels like the RegionSlider is starting to accumulate a lot of logic :/ . I was wondering if it would make sense to extract some of the pickup point logic — but I’m not sure yet what the best approach would be.

@hellofanny hellofanny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clear filter button LGTM.

  1. When no global pickup selected, reset to null
  2. In plp, when global pickup point, changes to global, else null.
reset-filters.mov

@lucasfp13
lucasfp13 merged commit 98a43dd into feat/delivery-promise-1.2 Jul 17, 2025
@lucasfp13
lucasfp13 deleted the feat/SFS-2459-region-slider-clear-filter-button branch July 17, 2025 12:20
lariciamota added a commit that referenced this pull request Jul 24, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Jul 28, 2025
## What's the purpose of this pull request?

Feature branch for the Delivery Promise feature - phase 1.2 (filters by
shipping method).

- #2803 
- #2826
- #2845
- #2847 
- #2851
- #2852 
- #2847
- #2872
- #2886
- #2909
- #2916 
- #2918 
- #2922 
- #2887 
- #2944 
- #2953 
- #2956 
- #2955 
- #2961 
- #2962 

## How it works?

<!--- Tell us the role of the new feature, or component, in its context.
Provide details about what you have implemented and screenshots if
applicable. --->

## 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

<!--- 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

- [Jira epic](https://vtex-dev.atlassian.net/browse/SFS-2038)

## Checklist

**Documentation**

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

---------

Co-authored-by: Lucas Feijó <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
Co-authored-by: Otavio Moreira Meirelles <[email protected]>
lariciamota added a commit that referenced this pull request Jul 30, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Jul 30, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Jul 31, 2025
With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lucasfp13 added a commit that referenced this pull request Aug 1, 2025
With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Aug 1, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
hellofanny added a commit that referenced this pull request Aug 11, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Sep 2, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Sep 16, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Sep 16, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Sep 18, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Sep 23, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request Sep 30, 2025
## What's the purpose of this pull request?

With these changes, the shopper will be able to clear current pickup
points filters in the `RegionSlider` component.

## How it works?

This button will be displayed only when shopper is changing pickup
points (selected or global ones).

Than for applied filters it will clear everything, including from
selected facets.

## How to test it?

First, you can use the Starter preview below, but for local development
you'll need to use the `vendemo` account we already set up for Delivery
Promise: on `discovery.config` you should change the following
attributes:
- `api: { storeId: 'vendemo', ... }`;
- `session: { currency: { code: 'BRL', symbol: 'R$' }, locale: 'pt-BR',
country: 'BRA', ... }`;
- `deliveryPromise: { enabled: true, mandatory: false }`;

After that, specify one of the following zip codes (using the
`RegionButton` on the navbar) to test Delivery Promise features:
`50030-260`, `20070-001` or `04538-132`.

Then, try opening the `RegionSlider` and applying some pickup points and
clearing the filter. The `RegionSlider` should not close after clear
filters and all the state should be reset: `selectedFacets` should not
have the previously selected pickup point, and both `globalPickupPoint`
and `defaultSelectedPickup` also should be reset.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#838

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
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.

4 participants