Repository navigation
feat: All Delivery Methods filter - #2909
Merged
lariciamota merged 5 commits intoJun 24, 2025
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 20, 2025 14:51
lariciamota
requested review from
emersonlaurentino,
hellofanny,
lucasfp13 and
ommeirelles
and removed request for
a team and
emersonlaurentino
June 20, 2025 14:51
1 task
lariciamota
force-pushed
the
feat/delivery-promise-1.2
branch
from
June 20, 2025 15:22
c111574 to
a47dc04
Compare
lariciamota
force-pushed
the
feat/filter-all-delivery-methods
branch
2 times, most recently
from
June 20, 2025 17:21
a5eed0e to
ef0e647
Compare
lucasfp13
reviewed
Jun 23, 2025
lucasfp13
approved these changes
Jun 23, 2025
lariciamota
force-pushed
the
feat/delivery-promise-1.2
branch
from
June 23, 2025 21:09
58594d8 to
8f647c2
Compare
lariciamota
force-pushed
the
feat/filter-all-delivery-methods
branch
from
June 23, 2025 21:15
fc5ac18 to
755739a
Compare
When Delivery Promise enabled: - Adds Shipping Filters component in PLP - List Shipping options available to filter - Enable add custom labels for shipping option via hCMS - Adds `Set Location` button when no zip code provided note: Button actions and facets filters is not fully integrated yet. - List Shipping options available to filter (according to the zipcode provided) |Desktop| Mobile| |-|-| |<img width="559" alt="image" src="https://github.com/user-attachments/assets/580c5e0c-9bb2-485a-8746-514f938cf54d" />|<img width="300" alt="image" src="https://github.com/user-attachments/assets/b4f23fa4-99ab-474e-9484-ab13cd7ff516" />| |Desktop| Mobile| |-|-| |<img width="691" alt="image" src="https://github.com/user-attachments/assets/c1b6a448-5e2e-46e4-9969-742e6a35649b" />|<img width="200" alt="image" src="https://github.com/user-attachments/assets/2ffe9385-da5f-4417-8d9b-7d1e207ebd1e" />| - Show `Set Location` Button when no zipcode is provided |Desktop| Mobile| |-|-| |<img width="518" alt="image" src="https://github.com/user-attachments/assets/d66d972b-fa25-4e0e-b07a-51300f5ff787" />|<img width="392" alt="image" src="https://github.com/user-attachments/assets/2e4bfe9b-412f-4f1f-b3f4-04055834424a" />| - CMS <img width="500" alt="image" src="https://github.com/user-attachments/assets/bb83b8b1-95f0-4bea-b49b-7f750a57b052" /> if you test using an account that delivery promise is not enabled, nothing should be changed. Run locally pointing to `vendemo` account, ou try this preview. 1. if deliveryPromise.enabled is `false` in `discovery.config, no changes are expected. Enable deliveryPromise in `discovery.config`, and test the scenarios below: 1. Navigate to a PLP, you should be able to see a `Delivery` section in the Filters component. (Also try in the mobile resolution) 2. If no zipCode provided, you should be able to see `Set Location` button 3. If zipCode provided, you should be able to see the list of available shipping options for that zipCode vtex-sites/faststoreqa.store#799 --------- Co-authored-by: Lucas Feijó <[email protected]> Co-authored-by: Larícia Mota <[email protected]>
This PR contains the shipping methods integration with API. We already have some of the shipping facets being rendered, but no action was being made. After these changes, the filters should work depending on the selected scenario. The `usePickupPoints` hook is responsible to get the list of pickup points available for the specific location in session. Based on that list, we create the `pickup-in-point` facet on the client-side (it's not delivered by the IS API) and inject on the facets list. When the `pickup-in-point` is selected, a additional facet called `pickupPoint` is also added on the facets list, then on the Search client (`@faststore/api`) we transform it on query string param and send it in the `product_search` IS request. | Desktop | Mobile | | - | - | |  |  | - Use the following postal code: `50030-260`; - Pay attention to the behavior of each different filter: each one must send the correct parameters/variables in the query (check the `Network` tab); - Observe the behavior and visibility of the filters on both desktop and mobile, the logic is similar but they have some different details that can impact navigation; vtex-sites/faststoreqa.store#812
lariciamota
force-pushed
the
feat/filter-all-delivery-methods
branch
from
June 23, 2025 21:20
755739a to
ef5fff1
Compare
hellofanny
approved these changes
Jun 24, 2025
hellofanny
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
I've tested it, and the facets are updating as expected. 🚀
lariciamota
added a commit
that referenced
this pull request
Jul 2, 2025
## What's the purpose of this pull request? Add the "All Delivery Methods" filter to FilterDesktop and FilterSlider (mobile). ## How it works? When selected, this facet won't add any shipping filter to the IS request. When no other delivery facet is selected, this All Delivery Methods one should be selected to make it explicit to the shopper that no delivery filter is being used. ## How to test it? Using the `vendemo` preview or running the core package changing to use DP in the `vendemo` account. - When accessing a PLP/Search page the "All Delivery Methods" should be selected initially - When changing to another Delivery Method (example: pickup nearby), "All Delivery Methods" should be unselected and the one you chose should be selected - Selecting "All Delivery Methods" shouldn't add a facet to the IS request, only the other methods should do that (example: pickup nearby adds "/shipping/pickup-nearby" to the IS request). #### hCMS  #### Desktop | PLP | Search | | ---- | ---- | |  |  | |  |  | #### Mobile | PLP | Search | | ---- | ---- | |  |  | |  |  | ### Starters Deploy Preview [PR](dp-faststore-org/vendemo-dp#13) https://vendemo-cm9sir9v900u7z6llkl62l70j-kcx6vkr4k.b.vtex.app/ ## References - [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2529) - [Figma](https://www.figma.com/design/2ou3QUE4xEAsq6DkEfbzXp/Delivery-Promise?node-id=2-74354&t=DVfnElFzrvFM0flp-4) --------- Co-authored-by: Fanny Chien <[email protected]> Co-authored-by: Lucas Feijó <[email protected]>
hellofanny
added a commit
that referenced
this pull request
Jul 2, 2025
## What's the purpose of this pull request? Add the "All Delivery Methods" filter to FilterDesktop and FilterSlider (mobile). ## How it works? When selected, this facet won't add any shipping filter to the IS request. When no other delivery facet is selected, this All Delivery Methods one should be selected to make it explicit to the shopper that no delivery filter is being used. ## How to test it? Using the `vendemo` preview or running the core package changing to use DP in the `vendemo` account. - When accessing a PLP/Search page the "All Delivery Methods" should be selected initially - When changing to another Delivery Method (example: pickup nearby), "All Delivery Methods" should be unselected and the one you chose should be selected - Selecting "All Delivery Methods" shouldn't add a facet to the IS request, only the other methods should do that (example: pickup nearby adds "/shipping/pickup-nearby" to the IS request). #### hCMS  #### Desktop | PLP | Search | | ---- | ---- | |  |  | |  |  | #### Mobile | PLP | Search | | ---- | ---- | |  |  | |  |  | ### Starters Deploy Preview [PR](dp-faststore-org/vendemo-dp#13) https://vendemo-cm9sir9v900u7z6llkl62l70j-kcx6vkr4k.b.vtex.app/ ## References - [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2529) - [Figma](https://www.figma.com/design/2ou3QUE4xEAsq6DkEfbzXp/Delivery-Promise?node-id=2-74354&t=DVfnElFzrvFM0flp-4) --------- Co-authored-by: Fanny Chien <[email protected]> Co-authored-by: Lucas Feijó <[email protected]>
lariciamota
added a commit
that referenced
this pull request
Jul 24, 2025
## What's the purpose of this pull request? Add the "All Delivery Methods" filter to FilterDesktop and FilterSlider (mobile). ## How it works? When selected, this facet won't add any shipping filter to the IS request. When no other delivery facet is selected, this All Delivery Methods one should be selected to make it explicit to the shopper that no delivery filter is being used. ## How to test it? Using the `vendemo` preview or running the core package changing to use DP in the `vendemo` account. - When accessing a PLP/Search page the "All Delivery Methods" should be selected initially - When changing to another Delivery Method (example: pickup nearby), "All Delivery Methods" should be unselected and the one you chose should be selected - Selecting "All Delivery Methods" shouldn't add a facet to the IS request, only the other methods should do that (example: pickup nearby adds "/shipping/pickup-nearby" to the IS request). #### hCMS  #### Desktop | PLP | Search | | ---- | ---- | |  |  | |  |  | #### Mobile | PLP | Search | | ---- | ---- | |  |  | |  |  | ### Starters Deploy Preview [PR](dp-faststore-org/vendemo-dp#13) https://vendemo-cm9sir9v900u7z6llkl62l70j-kcx6vkr4k.b.vtex.app/ ## References - [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2529) - [Figma](https://www.figma.com/design/2ou3QUE4xEAsq6DkEfbzXp/Delivery-Promise?node-id=2-74354&t=DVfnElFzrvFM0flp-4) --------- Co-authored-by: Fanny Chien <[email protected]> Co-authored-by: Lucas Feijó <[email protected]>
lariciamota
added a commit
that referenced
this pull request
Jul 28, 2025
## What's the purpose of this pull request? Feature branch for the Delivery Promise feature - phase 1.2 (filters by shipping method). - #2803 - #2826 - #2845 - #2847 - #2851 - #2852 - #2847 - #2872 - #2886 - #2909 - #2916 - #2918 - #2922 - #2887 - #2944 - #2953 - #2956 - #2955 - #2961 - #2962 ## How it works? <!--- Tell us the role of the new feature, or component, in its context. Provide details about what you have implemented and screenshots if applicable. ---> ## How to test it? <!--- Describe the steps with bullet points. Is there any external link that can be used to better test it or an example? ---> ### Starters Deploy Preview <!--- Add a link to a deploy preview from `starter.store` with this branch being used. ---> <!--- Tip: You can get an installable version of this branch from the CodeSandbox generated when this PR is created. ---> ## References - [Jira epic](https://vtex-dev.atlassian.net/browse/SFS-2038) ## Checklist **Documentation** - [ ] For documentation changes, ping `@Mariana-Caetano` to review and update (Or submit a doc request) --------- Co-authored-by: Lucas Feijó <[email protected]> Co-authored-by: Fanny Chien <[email protected]> Co-authored-by: Fanny Chien <[email protected]> Co-authored-by: Otavio Moreira Meirelles <[email protected]>
lucasfp13
added a commit
that referenced
this pull request
Aug 1, 2025
Add the "All Delivery Methods" filter to FilterDesktop and FilterSlider (mobile). When selected, this facet won't add any shipping filter to the IS request. When no other delivery facet is selected, this All Delivery Methods one should be selected to make it explicit to the shopper that no delivery filter is being used. Using the `vendemo` preview or running the core package changing to use DP in the `vendemo` account. - When accessing a PLP/Search page the "All Delivery Methods" should be selected initially - When changing to another Delivery Method (example: pickup nearby), "All Delivery Methods" should be unselected and the one you chose should be selected - Selecting "All Delivery Methods" shouldn't add a facet to the IS request, only the other methods should do that (example: pickup nearby adds "/shipping/pickup-nearby" to the IS request).  | PLP | Search | | ---- | ---- | |  |  | |  |  | | PLP | Search | | ---- | ---- | |  |  | |  |  | [PR](dp-faststore-org/vendemo-dp#13) https://vendemo-cm9sir9v900u7z6llkl62l70j-kcx6vkr4k.b.vtex.app/ - [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2529) - [Figma](https://www.figma.com/design/2ou3QUE4xEAsq6DkEfbzXp/Delivery-Promise?node-id=2-74354&t=DVfnElFzrvFM0flp-4) --------- Co-authored-by: Fanny Chien <[email protected]> Co-authored-by: Lucas Feijó <[email protected]>
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?
Add the "All Delivery Methods" filter to FilterDesktop and FilterSlider (mobile).
How it works?
When selected, this facet won't add any shipping filter to the IS request. When no other delivery facet is selected, this All Delivery Methods one should be selected to make it explicit to the shopper that no delivery filter is being used.
How to test it?
Using the
vendemopreview or running the core package changing to use DP in thevendemoaccount.hCMS
Desktop
Mobile
Starters Deploy Preview
PR
https://vendemo-cm9sir9v900u7z6llkl62l70j-kcx6vkr4k.b.vtex.app/
References