Skip to content

feat: Shipping methods integration - #2847

Merged
lucasfp13 merged 16 commits into
feat/delivery-promise-1.2from
feat/shipping-methods-integration
May 30, 2025
Merged

lucasfp13 merged 16 commits into
feat/delivery-promise-1.2from
feat/shipping-methods-integration

Conversation

@lucasfp13

@lucasfp13 lucasfp13 commented May 16, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

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.

How it works?

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

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

Desktop Mobile
Screenshot 2025-05-26 at 14 39 03 Screenshot 2025-05-26 at 14 38 53

How to test it?

  • 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;

Starters Deploy Preview

vtex-sites/faststoreqa.store#812

@lucasfp13 lucasfp13 self-assigned this May 16, 2025
@codesandbox-ci

codesandbox-ci Bot commented May 16, 2025 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@lucasfp13
lucasfp13 force-pushed the feat/shipping-methods-integration branch from 8bbbd59 to 772ebe7 Compare May 23, 2025 18:10
@lucasfp13
lucasfp13 marked this pull request as ready for review May 26, 2025 17:44
@lucasfp13
lucasfp13 requested a review from a team as a code owner May 26, 2025 17:44

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These changes shouldn't cause any type errors for other stores since I've just added a new action type case.

}
`)

export const usePickupPoints = () => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The important thing here is to observe the number of this query calls (Network tab), if it's being made when it shouldn't.

@lucasfp13 lucasfp13 May 26, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same thing here regarding type errors for other stores, here I've just added an optional param at the end of the function signature, so it shouldn't break any code using this function only with the required params.

@hellofanny hellofanny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Well Done 🥇

I've tried few scenarios:

  1. No pickup point available:
  • no pickup point facet added ✅
image
  1. Available facets displayed + pickup point facet added when available
  • params being updated according ✅
  • pickup-all not being displayed because is not enabled ✅
image image

We're aware of the pickup-nearby issue — in this case, it's not being displayed because it's not being returned by the API.

: undefined

let filteredFacets = facets.filter((facet) => facet.key !== 'shipping')
if (isDeliveryPromiseEnabled) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is very similar to the filterFacets logic in FilterDesktop. It would be great if we could extract it for reuse, it would really help with maintainability. Let's try to revisit this and refactor it later. 🤞

onClick: () => {
resetInfiniteScroll(0)

const noPickupInPointShippingFacet = selected.find(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think I didn't understand this part 😕

@lucasfp13 lucasfp13 May 30, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it'll be clear change to otherShippingFacet, but the logic is basically we'll filter the list to not have the pickupPoint facet for the other shipping methods, not the pickup-in-point.

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 pushed a commit that referenced this pull request Jul 30, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Jul 30, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Jul 30, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Jul 30, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Jul 31, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Jul 31, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lucasfp13 added a commit that referenced this pull request Aug 1, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lucasfp13 added a commit that referenced this pull request Aug 1, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Aug 1, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Aug 1, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
hellofanny pushed a commit that referenced this pull request Aug 11, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
hellofanny pushed a commit that referenced this pull request Aug 11, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 2, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 2, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 16, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 16, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 16, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 16, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 17, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 17, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 17, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 18, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 18, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 23, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 23, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 30, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 30, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 30, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
lariciamota pushed a commit that referenced this pull request Sep 30, 2025
This PR contains the shipping methods integration with API.

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

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

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

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

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

vtex-sites/faststoreqa.store#812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants