Skip to content

feat: Check products availability when setting postal code - #2817

Merged
lucasfp13 merged 5 commits into
feat/delivery-promisefrom
feat/no-available-products-for-location
Apr 30, 2025
Merged

lucasfp13 merged 5 commits into
feat/delivery-promisefrom
feat/no-available-products-for-location

Conversation

@lucasfp13

@lucasfp13 lucasfp13 commented Apr 29, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

This PR intends to handle the scenario when shoppers are setting postal code and there is no available products for that specific location.

How it works?

For all Delivery Promises scenarios, when shoppers are setting their postal code an input error should be displayed if there is no available products for that location.

How to test it?

  • If there is a testing postal code with no products available you can use it on RegionModal or RegionPopover;
  • Or for local environment you can change the condition at useSetLocation hook to mock the no products scenario;

Starters Deploy Preview

vtex-sites/faststoreqa.store#788

@lucasfp13 lucasfp13 self-assigned this Apr 29, 2025
@lucasfp13
lucasfp13 requested a review from a team as a code owner April 29, 2025 21:27
@codesandbox-ci

codesandbox-ci Bot commented Apr 29, 2025 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

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

@lariciamota lariciamota 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.

question: an specific IS app version should be installed on the account, right? Once they've deployed it, could you add this info in our draft doc?

Comment thread packages/api/src/typeDefs/query.graphql Resolved
@hellofanny

Copy link
Copy Markdown
Contributor

niceeee!!

I've tried locally changing the useSetLocation hook to simulate this scenario.
image

with the DP disabled, everything works as before. ✅
image

@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.

🚀

@lucasfp13
lucasfp13 merged commit 9e4c9b4 into feat/delivery-promise Apr 30, 2025
@lucasfp13
lucasfp13 deleted the feat/no-available-products-for-location branch April 30, 2025 18:06
lariciamota added a commit that referenced this pull request May 8, 2025
## What's the purpose of this pull request?

This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

## How it works?

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

## How to test it?

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

### Starters Deploy Preview

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request May 12, 2025
## What's the purpose of this pull request?

This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

## How it works?

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

## How to test it?

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

### Starters Deploy Preview

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request May 13, 2025
## What's the purpose of this pull request?

Feature branch for the Delivery Promise feature - phase 1 (navigation
based on shopper location).

- #2708 
- #2728
- #2739 
- #2745 
- #2749
- #2750
- #2768
- #2772 
- #2775
- #2809
- #2817 
- #2824 
- #2835

## How it works?


## How to test it?


### Starters Deploy Preview


## References
- [Jira epic](https://vtex-dev.atlassian.net/browse/SFS-1696)


## Checklist

- [ ] For documentation changes, ping `@Mariana-Caetano` to review and
update (Or submit a doc request)
- [ ] TODO: Request Doc for PopOver
- [ ] TODO: Remind to run cms sync in the default account when the
feature branch is merged since new section was added. (And add the new
section in the admin!)

---------

Co-authored-by: Lucas Feijó <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
lariciamota added a commit that referenced this pull request May 13, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request May 13, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request May 14, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Jun 20, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Jun 23, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Jul 2, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
hellofanny pushed a commit that referenced this pull request Jul 2, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Jul 24, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Jul 30, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Jul 30, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Aug 1, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
hellofanny pushed a commit that referenced this pull request Aug 11, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Sep 2, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Sep 16, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Sep 16, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Sep 18, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Sep 23, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
lariciamota added a commit that referenced this pull request Sep 30, 2025
This PR intends to handle the scenario when shoppers are setting postal
code and there is no available products for that specific location.

For all Delivery Promises scenarios, when shoppers are setting their
postal code an input error should be displayed if there is no available
products for that location.

- If there is a testing postal code with no products available you can
use it on `RegionModal` or `RegionPopover`;
- Or for local environment you can change the condition at
`useSetLocation` hook to mock the `no products` scenario;

vtex-sites/faststoreqa.store#788

---------

Co-authored-by: Larícia Mota <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants