2.7 KiB
2.7 KiB
Location resolution and region switching
Scope: native location store/useRegion, web region gate/store, manual selector, GPS attachment, persisted browsing context.
| ID | Priority | Action / input | Expected result |
|---|---|---|---|
| LOC-01 | P0 | Fresh signed-out/signed-in launch inside A. | One-shot resolution selects A; bound/catalog loads without mandatory login. |
| LOC-02 | P1 | Permission denied/permanently denied/GPS unavailable. | Manual choice available; saved valid region preserved. |
| LOC-03 | P1 | Coordinates outside all bounds; empty regions list. | Useful unavailable-service state, not endless spinner. |
| LOC-04 | P0 | Delayed GPS A response after manual B selection. | Late automatic response cannot undo manual choice. |
| LOC-05 | P1 | Location changes A→B while app remains open. | No unexpected continuous cart-clearing auto-switch. |
| LOC-06 | P0 | Both A carts populated; request B switch, cancel then confirm. | Cancel preserves all; confirm clears regional carts/slots/coupons/address context and loads B. |
| LOC-07 | P0 | Rapid A→B→A with delayed catalog responses. | Region-generation guard rejects stale B/A responses and mixed prices. |
| LOC-08 | P1 | Relaunch saved region with changed/removed service metadata. | Selection revalidated; appropriate fallback, no invalid cached context. |
| LOC-09 | P1 | Cold launch physically in B with A carts. | One-shot switch follows confirmation/reset policy; no silent mixed-region order. |
| LOC-10 | P1 | U1 A/B addresses; default B while browsing A. | No automatic foreign default override; A browsing choice retained. |
| LOC-11 | P0 | Explicit foreign-address switch confirm/cancel. | Same safe region-switch behavior and cleared regional state. |
| LOC-12 | P1 | Missing coordinates but saved regional address. | Address-bound/effective-bound fallback works; warnings accurate. |
| LOC-13 | P1 | Shared location-store consumers mount/unmount repeatedly. | No duplicate listeners/resolutions or memory leaks affecting selection. |
| LOC-14 | P2 | Browser refresh/SSR/localStorage denied. | No hydration crash; usable manual region selector. |
| LOC-15 | P1 | Force-quit during confirmed switch/state clearing. | Relaunch coherent region and carts; no half-reset checkout. |
| LOC-16 | P1 | Resolve request offline/timeout, then restore network. | Bounded retry; manual selection remains usable. |
| LOC-17 | P2 | Emulator/mock-location environment vs physical device. | Supported location path without production-only/emulator-only assumptions. |
| LOC-18 | P0 | Change region while submit request pending. | No duplicate order or new-region UI falsely representing old-region order. |
Open policy: exact cold-start/manual-choice precedence after a populated saved cart. Do not label ambiguity PASS.