Repository navigation
chore: use global settings in RegionPopover and RegionModal - #2918
Merged
Merged
Conversation
|
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
marked this pull request as ready for review
June 24, 2025 20:10
lariciamota
requested review from
hellofanny and
lucasfp13
and removed request for
a team
June 24, 2025 20:10
lariciamota
marked this pull request as draft
June 26, 2025 14:49
lariciamota
marked this pull request as ready for review
June 26, 2025 18:14
lucasfp13
reviewed
Jun 27, 2025
lucasfp13
approved these changes
Jun 30, 2025
ommeirelles
reviewed
Jun 30, 2025
ommeirelles
reviewed
Jun 30, 2025
ommeirelles
reviewed
Jun 30, 2025
ommeirelles
reviewed
Jun 30, 2025
ommeirelles
approved these changes
Jun 30, 2025
hellofanny
approved these changes
Jul 1, 2025
1 task
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's the purpose of this pull request?
Make
RegionModalandRegionPopoverhave access to global settings (hCMS -> Global Sections -> Settings)How it works?
The Global Settings was created to remove duplications of messages in hCMS.
RegionModal,RegionPopoverand filter componentes have some messages in common that were being duplicated across sections and pages in hCMS.FilterDesktopandFilterSliderhad 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 fromRegionModalandRegionPopoverthat are global sections. Therefore, in this current PR was necessary some changes related to page context, which involved addingPageProviderto 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
⚠️ Make sure to test all different types of pages, example: PLP, Search, PDP, Landing Page, 404, 500.

vendemoadmin so we can see the impact.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.
Region Popover
Differences:
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:
Region Modal
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:
Starters Deploy Preview
References