Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add popover to delivery button #10

Merged
merged 18 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added

## [0.4.2] - 2024-11-06
- Popover to open the location drawer;
- Popover with input to add postal code.

## [0.4.2] - 2024-11-06

### Fixed

Expand All @@ -20,7 +23,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Drawer opens behind the sidebar


## [0.4.0] - 2024-10-04

### Fixed
Expand Down
7 changes: 3 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
"vtex.render-runtime": "8.x",
"vtex.store-drawer": "0.x",
"vtex.pixel-manager": "1.x",
"vtex.device-detector": "0.x"
"vtex.device-detector": "0.x",
"vtex.address-form": "4.x"
},
"registries": [
"smartcheckout"
],
"registries": ["smartcheckout"],
"policies": [],
"$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema"
}
2 changes: 1 addition & 1 deletion messages/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Преглед на магазините във вашия регион",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Избиране на магазин",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Въвеждане на пощенския ви код",
"store/shipping-option-zipcode.postalCodeInput.error.": "Въведеният пощенски код не е в района на нашето покритие",
"store/shipping-option-zipcode.postalCodeInput.error": "Въведеният пощенски код не е в района на нашето покритие",
"store/shipping-option-zipcode.currentLocationButton": "Използване на настоящото местоположение",
"store/shipping-option-zipcode.storeHoursButton": "Преглед на работното време на магазина",
"store/shipping-option-zipcode.viewMoreButton": "Преглед на повече",
Expand Down
4 changes: 2 additions & 2 deletions messages/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Mostrar les botigues a la vostra regió",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Tria una botiga",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Introduïu el vostre codi postal",
"store/shipping-option-zipcode.postalCodeInput.error.": "El codi postal introduït no forma part de la nostra zona de cobertura",
"store/shipping-option-zipcode.postalCodeInput.error": "El codi postal introduït no forma part de la nostra zona de cobertura",
"store/shipping-option-zipcode.currentLocationButton": "Fes servir la ubicació actual",
"store/shipping-option-zipcode.storeHoursButton": "Mostra l'horari de la botiga",
"store/shipping-option-zipcode.viewMoreButton": "Mostra'n més",
Expand All @@ -19,4 +19,4 @@
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Recollida a prop",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Recollida",
"store/shipping-option-zipcode.updateButton.label": "Actualitza"
}
}
4 changes: 2 additions & 2 deletions messages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Prohlédněte si obchody ve svém regionu",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Vyberte si obchod",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Zadejte své poštovní směrovací číslo",
"store/shipping-option-zipcode.postalCodeInput.error.": "Zadané poštovní směrovací číslo se nenachází v naší oblasti pokrytí",
"store/shipping-option-zipcode.postalCodeInput.error": "Zadané poštovní směrovací číslo se nenachází v naší oblasti pokrytí",
"store/shipping-option-zipcode.currentLocationButton": "Použít aktuální polohu",
"store/shipping-option-zipcode.storeHoursButton": "Zobrazit otevírací dobu obchodu",
"store/shipping-option-zipcode.viewMoreButton": "Zobrazit více",
Expand All @@ -19,4 +19,4 @@
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Vyzvednutí v okolí",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Vyzvednutí",
"store/shipping-option-zipcode.updateButton.label": "Aktualizovat"
}
}
4 changes: 2 additions & 2 deletions messages/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Vis butikker i din region",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Vælg en butik",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Indtast dit postnummer",
"store/shipping-option-zipcode.postalCodeInput.error.": "Det indtastede postnummer er ikke indenfor dit dækningsområde",
"store/shipping-option-zipcode.postalCodeInput.error": "Det indtastede postnummer er ikke indenfor dit dækningsområde",
"store/shipping-option-zipcode.currentLocationButton": "Brug nuværende lokation",
"store/shipping-option-zipcode.storeHoursButton": "Vis butikkens åbningstider",
"store/shipping-option-zipcode.viewMoreButton": "Vis mere",
Expand All @@ -19,4 +19,4 @@
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Afhent i nærheden",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Afhent",
"store/shipping-option-zipcode.updateButton.label": "Opdater"
}
}
2 changes: 1 addition & 1 deletion messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Shops in Ihrer Region anzeigen",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Shop auswählen",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Geben Sie Ihre Postleitzahl ein",
"store/shipping-option-zipcode.postalCodeInput.error.": "Die eingegebene Postleitzahl ist nicht in unserem Abdeckungsbereich",
"store/shipping-option-zipcode.postalCodeInput.error": "Die eingegebene Postleitzahl ist nicht in unserem Abdeckungsbereich",
"store/shipping-option-zipcode.currentLocationButton": "Aktuellen Standort verwenden",
"store/shipping-option-zipcode.storeHoursButton": "Ladenöffnungszeiten anzeigen",
"store/shipping-option-zipcode.viewMoreButton": "Mehr ansehen",
Expand Down
4 changes: 2 additions & 2 deletions messages/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Προβολή καταστημάτων στην περιοχή σας",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Επιλέξτε ένα κατάστημα",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Εισαγάγετε τον ταχυδρομικό σας κώδικα",
"store/shipping-option-zipcode.postalCodeInput.error.": "Ο ταχυδρομικός κώδικας που καταχωρήσατε δεν βρίσκεται εντός της περιοχής κάλυψής μας",
"store/shipping-option-zipcode.postalCodeInput.error": "Ο ταχυδρομικός κώδικας που καταχωρήσατε δεν βρίσκεται εντός της περιοχής κάλυψής μας",
"store/shipping-option-zipcode.currentLocationButton": "Χρήση τρέχουσας τοποθεσίας",
"store/shipping-option-zipcode.storeHoursButton": "Προβολή ωρών λειτουργίας καταστήματος",
"store/shipping-option-zipcode.viewMoreButton": "Προβολή περισσοτέρων",
Expand All @@ -19,4 +19,4 @@
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Παραλαβή πλησίον",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Παραλαβή",
"store/shipping-option-zipcode.updateButton.label": "Ενημέρωση"
}
}
9 changes: 7 additions & 2 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "View stores in your region",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Choose a store",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Enter your postal code",
"store/shipping-option-zipcode.postalCodeInput.error.": "The entered postal code is not within our coverage area",
"store/shipping-option-zipcode.postalCodeInput.error": "The entered postal code is not within our coverage area",
"store/shipping-option-zipcode.currentLocationButton": "Use Current Location",
"store/shipping-option-zipcode.storeHoursButton": "View Store Hours",
"store/shipping-option-zipcode.viewMoreButton": "View More",
Expand All @@ -18,5 +18,10 @@
"store/shipping-option-zipcode.shippinFilter.pkcupAt.chooseAStore": "Choose a Store",
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Pickup nearby",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Pickup",
"store/shipping-option-zipcode.updateButton.label": "Update"
"store/shipping-option-zipcode.updateButton.label": "Update",
"store/shipping-option-zipcode.popoverButton.label": "Select a location",
"store/shipping-option-zipcode.popover.description": "Offers and delivery options vary based on region.",
"store/shipping-option-zipcode.deliveryPopover.submitButton.label": "Continue",
"store/shipping-option-zipcode.deliveryPopover.postalCodeInput.placeholder": "Postal Code",
"store/shipping-option-zipcode.popover.postalCodeLink": "I don't know my postal code"
}
7 changes: 5 additions & 2 deletions messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Consulta las tiendas en tu región",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Selecciona una tienda",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Ingresa tu código postal",
"store/shipping-option-zipcode.postalCodeInput.error.": "El código postal ingresado no está incluido en nuestra área de cobertura",
"store/shipping-option-zipcode.postalCodeInput.error": "El código postal ingresado no está incluido en nuestra área de cobertura",
"store/shipping-option-zipcode.currentLocationButton": "Usar la ubicación actual",
"store/shipping-option-zipcode.storeHoursButton": "Horario de la tienda",
"store/shipping-option-zipcode.viewMoreButton": "Ver más",
Expand All @@ -18,5 +18,8 @@
"store/shipping-option-zipcode.shippinFilter.pkcupAt.chooseAStore": "Selecciona una tienda",
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Recogida cerca de",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Recogida",
"store/shipping-option-zipcode.updateButton.label": "Actualizar"
"store/shipping-option-zipcode.updateButton.label": "Actualizar",
"store/shipping-option-zipcode.popoverButton.label": "Selecciona una ubicación",
"store/shipping-option-zipcode.popover.description": "Las ofertas y las opciones de entrega varían según la región.",
"store/shipping-option-zipcode.popover.postalCodeLink": "No se mi codigo postal"
}
4 changes: 2 additions & 2 deletions messages/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Näytä alueesi myymälät",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Valitse myymälä",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Anna postinumerosi",
"store/shipping-option-zipcode.postalCodeInput.error.": "Annettu postinumero ei kuulu kattavuusalueellemme",
"store/shipping-option-zipcode.postalCodeInput.error": "Annettu postinumero ei kuulu kattavuusalueellemme",
"store/shipping-option-zipcode.currentLocationButton": "Käytä nykyistä sijaintia",
"store/shipping-option-zipcode.storeHoursButton": "Näytä myymälän aukioloajat",
"store/shipping-option-zipcode.viewMoreButton": "Näytä lisää",
Expand All @@ -19,4 +19,4 @@
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Nouto läheltä",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Nouto",
"store/shipping-option-zipcode.updateButton.label": "Päivitä"
}
}
2 changes: 1 addition & 1 deletion messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Voir les magasins de votre région",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Choisissez un magasin",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Entrez votre code postal",
"store/shipping-option-zipcode.postalCodeInput.error.": "Le code postal saisi ne se trouve pas dans notre zone de couverture",
"store/shipping-option-zipcode.postalCodeInput.error": "Le code postal saisi ne se trouve pas dans notre zone de couverture",
"store/shipping-option-zipcode.currentLocationButton": "Utiliser la localisation actuelle",
"store/shipping-option-zipcode.storeHoursButton": "Voir les heures d’ouverture du magasin",
"store/shipping-option-zipcode.viewMoreButton": "Afficher plus",
Expand Down
4 changes: 2 additions & 2 deletions messages/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Üzletek megtekintése a régiójában",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Válasszon egy üzletet",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Adja meg az irányítószámát",
"store/shipping-option-zipcode.postalCodeInput.error.": "A megadott irányítószám nem tartozik a lefedettségi területünkhöz",
"store/shipping-option-zipcode.postalCodeInput.error": "A megadott irányítószám nem tartozik a lefedettségi területünkhöz",
"store/shipping-option-zipcode.currentLocationButton": "Aktuális tartózkodási hely használata",
"store/shipping-option-zipcode.storeHoursButton": "Nyitvatartási idő megtekintése",
"store/shipping-option-zipcode.viewMoreButton": "Több megtekintése",
Expand All @@ -19,4 +19,4 @@
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Felvétel a közelben",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Felvétel",
"store/shipping-option-zipcode.updateButton.label": "Frissítés"
}
}
4 changes: 2 additions & 2 deletions messages/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Lihat toko di wilayah Anda",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Pilih toko",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Masukkan kode pos Anda",
"store/shipping-option-zipcode.postalCodeInput.error.": "Kode pos yang dimasukkan tidak masuk area jangkauan kami",
"store/shipping-option-zipcode.postalCodeInput.error": "Kode pos yang dimasukkan tidak masuk area jangkauan kami",
"store/shipping-option-zipcode.currentLocationButton": "Gunakan Lokasi Saat Ini",
"store/shipping-option-zipcode.storeHoursButton": "Lihat Jam Toko",
"store/shipping-option-zipcode.viewMoreButton": "Lihat Selengkapnya",
Expand All @@ -19,4 +19,4 @@
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Ambil terdekat",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Ambil",
"store/shipping-option-zipcode.updateButton.label": "Perbarui"
}
}
2 changes: 1 addition & 1 deletion messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Vedi i negozi nella tua regione",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Scegli un negozio",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Inserisci il tuo codice di avviamento postale",
"store/shipping-option-zipcode.postalCodeInput.error.": "Il codice di avviamento postale inserito non rientra nella nostra zona di copertura",
"store/shipping-option-zipcode.postalCodeInput.error": "Il codice di avviamento postale inserito non rientra nella nostra zona di copertura",
"store/shipping-option-zipcode.currentLocationButton": "Usa posizione attuale",
"store/shipping-option-zipcode.storeHoursButton": "Orari del negozio",
"store/shipping-option-zipcode.viewMoreButton": "Mostra di più",
Expand Down
2 changes: 1 addition & 1 deletion messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "お住まいの地域の店舗を見る",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "店舗を選択",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "郵便番号を入力してください",
"store/shipping-option-zipcode.postalCodeInput.error.": "入力された郵便番号は、当社のサービス提供地域外です。",
"store/shipping-option-zipcode.postalCodeInput.error": "入力された郵便番号は、当社のサービス提供地域外です。",
"store/shipping-option-zipcode.currentLocationButton": "現在地を使用",
"store/shipping-option-zipcode.storeHoursButton": "営業時間を見る",
"store/shipping-option-zipcode.viewMoreButton": "もっと見る",
Expand Down
2 changes: 1 addition & 1 deletion messages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "해당 지역의 스토어 보기",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "스토어 선택",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "우편번호 입력",
"store/shipping-option-zipcode.postalCodeInput.error.": "입력한 우편번호가 당사의 서비스 지역 내에 있지 않습니다",
"store/shipping-option-zipcode.postalCodeInput.error": "입력한 우편번호가 당사의 서비스 지역 내에 있지 않습니다",
"store/shipping-option-zipcode.currentLocationButton": "현재 위치 사용",
"store/shipping-option-zipcode.storeHoursButton": "매장 시간 보기",
"store/shipping-option-zipcode.viewMoreButton": "더 보기",
Expand Down
2 changes: 1 addition & 1 deletion messages/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Bekijk winkels in uw regio",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Kies een winkel",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Voer uw postcode in",
"store/shipping-option-zipcode.postalCodeInput.error.": "De ingevoerde postcode valt niet binnen ons gebied",
"store/shipping-option-zipcode.postalCodeInput.error": "De ingevoerde postcode valt niet binnen ons gebied",
"store/shipping-option-zipcode.currentLocationButton": "Gebruik huidige locatie",
"store/shipping-option-zipcode.storeHoursButton": "Winkeluren bekijken",
"store/shipping-option-zipcode.viewMoreButton": "Meer weergeven",
Expand Down
4 changes: 2 additions & 2 deletions messages/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Se butikker i din region",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Velg en butikk",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Skriv inn postkode",
"store/shipping-option-zipcode.postalCodeInput.error.": "Postnummeret du skrev inn er ikke innenfor vårt dekningsområde",
"store/shipping-option-zipcode.postalCodeInput.error": "Postnummeret du skrev inn er ikke innenfor vårt dekningsområde",
"store/shipping-option-zipcode.currentLocationButton": "Bruk gjeldende posisjon",
"store/shipping-option-zipcode.storeHoursButton": "Vis butikktimer",
"store/shipping-option-zipcode.viewMoreButton": "Vis mere",
Expand All @@ -19,4 +19,4 @@
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Henting i nærheten",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Hent",
"store/shipping-option-zipcode.updateButton.label": "Oppdater"
}
}
4 changes: 2 additions & 2 deletions messages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"store/shipping-option-zipcode.pickupDrawer.title.empty": "Wyświetl sklepy w swoim regionie",
"store/shipping-option-zipcode.pickupDrawer.title.filled": "Wybierz sklep",
"store/shipping-option-zipcode.postalCodeInput.placeholder": "Wprowadź swój kod pocztowy",
"store/shipping-option-zipcode.postalCodeInput.error.": "Wprowadzony kod pocztowy nie znajduje się w naszym zasięgu",
"store/shipping-option-zipcode.postalCodeInput.error": "Wprowadzony kod pocztowy nie znajduje się w naszym zasięgu",
"store/shipping-option-zipcode.currentLocationButton": "Użyj bieżącej lokalizacji",
"store/shipping-option-zipcode.storeHoursButton": "Zobacz godziny otwarcia sklepu",
"store/shipping-option-zipcode.viewMoreButton": "Zobacz więcej",
Expand All @@ -19,4 +19,4 @@
"store/shipping-option-zipcode.shippinFilter.pickupnearBy": "Odbiór w pobliżu",
"store/shipping-option-zipcode.shippinFilter.pickpu": "Odbiór",
"store/shipping-option-zipcode.updateButton.label": "Aktualizuj"
}
}
Loading
Loading