Skip to content

feat: Create useDeliveryPromise's reducer and provider - #2890

Merged
lucasfp13 merged 36 commits into
feat/filter-by-storefrom
feat/use-delivery-hook
Jul 14, 2025
Merged

lucasfp13 merged 36 commits into
feat/filter-by-storefrom
feat/use-delivery-hook

Conversation

@lucasfp13

@lucasfp13 lucasfp13 commented Jun 10, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

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.

How it works?

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.

Starters Deploy Preview

vtex-sites/faststoreqa.store#832

@codesandbox-ci

codesandbox-ci Bot commented Jun 10, 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.

@lucasfp13
lucasfp13 force-pushed the feat/region-filter-component branch from 2ee02df to 56ed087 Compare June 11, 2025 12:45
@lucasfp13
lucasfp13 force-pushed the feat/use-delivery-hook branch 2 times, most recently from fe54b48 to 2a1e4ed Compare June 12, 2025 17:23
@lucasfp13
lucasfp13 marked this pull request as ready for review June 12, 2025 17:25
@lucasfp13
lucasfp13 requested a review from a team as a code owner June 12, 2025 17:25
@lucasfp13
lucasfp13 force-pushed the feat/use-delivery-hook branch 3 times, most recently from 4eeab5b to 92f9232 Compare June 18, 2025 19:22
Base automatically changed from feat/region-filter-component to feat/filter-by-store June 20, 2025 13:23
@lucasfp13
lucasfp13 force-pushed the feat/use-delivery-hook branch from 92f9232 to 40d8b44 Compare June 20, 2025 19:14
@lucasfp13
lucasfp13 force-pushed the feat/filter-by-store branch from cf7f245 to 38a50fd Compare June 20, 2025 20:41
@lucasfp13
lucasfp13 force-pushed the feat/use-delivery-hook branch from 40d8b44 to 4d02f39 Compare June 20, 2025 22:39
@lucasfp13
lucasfp13 force-pushed the feat/filter-by-store branch from 14f4a88 to ee21646 Compare June 24, 2025 17:03
@lucasfp13
lucasfp13 force-pushed the feat/filter-by-store branch from 4aa542a to 29a41de Compare July 3, 2025 14:01
lariciamota and others added 8 commits July 3, 2025 11:25
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)
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
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]>
lucasfp13 added a commit that referenced this pull request Jul 14, 2025
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 added a commit that referenced this pull request Jul 15, 2025
## What's the purpose of this pull request?

Revision order:

1) #2889 
2) #2890

## How it works?

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

## 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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#834

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lucasfp13 added a commit that referenced this pull request Jul 15, 2025
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]>
lariciamota added a commit that referenced this pull request Jul 24, 2025
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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 24, 2025
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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 24, 2025
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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 17, 2025
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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
Revision order:

1) #2889
2) #2890

These changes will introduce global filtering by pickup point for the
selected zip code.

We are changing the `RegionSlider` opening: the component it's a global
section now, so it should be able to be rendered everywhere in the
store, still using the `UI Provider` actions but no longer need to
import it.

Furthermore, we made adjustments to the the `RegionBar` component,
adding new data-atributes and matching new design prototype, but we keep
backward compatibility by leaving the current props and data-attributes
unaltered.

Although, the core of this implementation it's to support global
filtering (including shelves' queries) by available pickup points, and
for that we created the Delivery Promise's reducer and provider to
handle this global context through shopper navigation, leveraging from
the `useDeliveryPromise` hook towards managing all state and actions.

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 to set a global pickup point and see if the store name is
added on the navbar, navigate to PLP and you should see the `Delivery`
facet section, you can filter by other methods. Everything should keep
working as before. Also, try the mobile version.

vtex-sites/faststoreqa.store#834

---------

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