Skip to content

chore: use global settings in RegionPopover and RegionModal - #2918

Merged
lariciamota merged 6 commits into
feat/delivery-promise-1.2from
chore/use-global-settings
Jul 1, 2025
Merged

lariciamota merged 6 commits into
feat/delivery-promise-1.2from
chore/use-global-settings

Conversation

@lariciamota

@lariciamota lariciamota commented Jun 24, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

Make RegionModal and RegionPopover have access to global settings (hCMS -> Global Sections -> Settings)

How it works?

The Global Settings was created to remove duplications of messages in hCMS. RegionModal, RegionPopover and filter componentes have some messages in common that were being duplicated across sections and pages in hCMS.

FilterDesktop and FilterSlider had already been modified to use global settings in a previous PR, but they were only in the context of PLP and Search pages, which is different from RegionModal and RegionPopover that are global sections. Therefore, in this current PR was necessary some changes related to page context, which involved adding PageProvider to ALL pages (that's why there is a lot of modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside the section, if not then use the message inside the global settings -- this avoids breaking changes.

How to test it?

I've made some changes in the hCMS in vendemo admin so we can see the impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search, PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error message when there is no product available for the location has a "Oh no!" in the beginning, and there is a message for the "I don't know my postal code" link.
global settings

Region Popover

region popover

Differences:

  • The input field label has a "!" in the end.
  • There is no message for the error of no product available

What should happen: Since it was defined some messages in the section, those messages should be gotten from the section. The only one that should be from global settings is the one for the error of no product available, therefore:

  • The input field label should have a "!" in the end.
  • The error message should be "Oh no! There are no products available for %s." %s being replaced by the inserted postal code.
Desktop Mobile Error
popover popover mobile popover error

Region Modal

region modal
  • The input field label has a "!" in the end.
  • There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section, those messages should be gotten from the section. The only one that should be from global settings is the one for the "I don't know my postal code" link, therefore:

  • The input field label should have a "!" in the end.
  • The "I don't know my postal code" link message should be "I don't know my Postal Code".
Desktop Mobile Error
modal modal mobile modal error

Starters Deploy Preview

References

@lariciamota lariciamota self-assigned this Jun 24, 2025
@lariciamota lariciamota added the enhancement New feature or request label Jun 24, 2025
@codesandbox-ci

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

@lariciamota
lariciamota marked this pull request as ready for review June 24, 2025 20:10
@lariciamota
lariciamota requested a review from a team as a code owner June 24, 2025 20:10
@lariciamota
lariciamota requested review from hellofanny and lucasfp13 and removed request for a team June 24, 2025 20:10
@lariciamota
lariciamota marked this pull request as draft June 26, 2025 14:49
@lariciamota
lariciamota marked this pull request as ready for review June 26, 2025 18:14
@lariciamota
lariciamota requested a review from lucasfp13 June 27, 2025 12:34
Comment thread packages/core/src/pages/404.tsx Resolved
@lariciamota
lariciamota merged commit cd8ff66 into feat/delivery-promise-1.2 Jul 1, 2025
@lariciamota
lariciamota deleted the chore/use-global-settings branch July 1, 2025 14:41
lariciamota added a commit that referenced this pull request Jul 2, 2025
## What's the purpose of this pull request?

Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

## How it works?

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

## How to test it?

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

### Region Popover
<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.
 
| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

### Region Modal
<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

### Starters Deploy Preview

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

## References

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lucasfp13 pushed a commit that referenced this pull request Jul 2, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
hellofanny pushed a commit that referenced this pull request Jul 2, 2025
## What's the purpose of this pull request?

Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

## How it works?

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

## How to test it?

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

### Region Popover
<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.
 
| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

### Region Modal
<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

### Starters Deploy Preview

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

## References

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lucasfp13 pushed a commit that referenced this pull request Jul 2, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lariciamota added a commit that referenced this pull request Jul 24, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lariciamota added a commit that referenced this pull request Jul 24, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
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
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lucasfp13 pushed a commit that referenced this pull request Aug 1, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lariciamota added a commit that referenced this pull request Aug 1, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
hellofanny pushed a commit that referenced this pull request Aug 11, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lariciamota added a commit that referenced this pull request Sep 2, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lariciamota added a commit that referenced this pull request Sep 16, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lariciamota added a commit that referenced this pull request Sep 16, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lariciamota added a commit that referenced this pull request Sep 18, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lariciamota added a commit that referenced this pull request Sep 23, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
lariciamota added a commit that referenced this pull request Sep 30, 2025
Make `RegionModal` and `RegionPopover` have access to global settings
(hCMS -> Global Sections -> Settings)

The Global Settings was created to remove duplications of messages in
hCMS. `RegionModal`, `RegionPopover` and filter componentes have some
messages in common that were being duplicated across sections and pages
in hCMS.

`FilterDesktop` and `FilterSlider` had already been modified to use
global settings in a previous PR, but they were only in the context of
PLP and Search pages, which is different from `RegionModal` and
`RegionPopover` that are global sections. Therefore, in this current PR
was necessary some changes related to page context, which involved
adding `PageProvider` to ALL pages (that's why there is a lot of
modified files) passing the globalSettings as its context.

The prioritization order is: first check if there is the message inside
the section, if not then use the message inside the global settings --
this avoids breaking changes.

I've made some changes in the hCMS in `vendemo` admin so we can see the
impact.
⚠️ Make sure to test all different types of pages, example: PLP, Search,
PDP, Landing Page, 404, 500.
In Global Settings, the input field label is "Postal Code", the error
message when there is no product available for the location has a "Oh
no!" in the beginning, and there is a message for the "I don't know my
postal code" link.
<img width="350" alt="global settings"
src="https://github.com/user-attachments/assets/bd0c28a5-a1d3-4ce7-8551-6be703bb9a05"
/>

<img width="350" alt="region popover"
src="https://github.com/user-attachments/assets/69bc2aed-0019-441d-ae07-5bb92e46201f"
/>

Differences:
- The input field label has a "!" in the end.
- There is no message for the error of no product available

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the error of no
product available, therefore:
- The input field label should have a "!" in the end.
- The error message should be "Oh no! There are no products available
for %s." %s being replaced by the inserted postal code.

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="607" alt="popover"
src="https://github.com/user-attachments/assets/675da07d-20de-4fd0-8d8e-ac49b9c3b30c"
/> | <img width="217" alt="popover mobile"
src="https://github.com/user-attachments/assets/dcc731ea-4185-4162-ad2e-ec30341c1067"
/> | <img width="600" alt="popover error"
src="https://github.com/user-attachments/assets/2762ff82-46d7-44fb-ad3d-3808df24f93e"
/> |

<img width="350" alt="region modal"
src="https://github.com/user-attachments/assets/f51c8bc5-c956-435a-9939-3ffca985b148"
/>

- The input field label has a "!" in the end.
- There is no message for the "I don't know my postal code" link.

What should happen: Since it was defined some messages in the section,
those messages should be gotten from the **section**. The only one that
should be from **global settings** is the one for the "I don't know my
postal code" link, therefore:
- The input field label should have a "!" in the end.
- The "I don't know my postal code" link message should be "I don't know
my Postal Code".

| Desktop | Mobile | Error |
| ---- | ---- | ---- |
| <img width="1232" alt="modal"
src="https://github.com/user-attachments/assets/042d3e12-98e5-4e53-9713-cab24d5e0a10"
/> | <img width="215" alt="modal mobile"
src="https://github.com/user-attachments/assets/a1e0f277-d45f-4927-9aaf-b6f0311f8cdf"
/> | <img width="1240" alt="modal error"
src="https://github.com/user-attachments/assets/c1eb84a3-c7e0-45d6-acae-79ae38a5a6c5"
/> |

-
[Preview](https://vendemo-cm9sir9v900u7z6llkl62l70j-m66r5st5t.b.vtex.app/)
- [PR](dp-faststore-org/vendemo-dp#39)

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2524)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants