Commit Graph

4133 Commits

Author SHA1 Message Date
Anton Gunnarsson
b354398c69 Merged in fix/improve-sas-error-logging (pull request #1854)
Improve SAS flow logging

* Improve logging


Approved-by: Joakim Jäderberg
2025-04-24 12:30:34 +00:00
Chuma Mcphoy (We Ahead)
169094fc37 Merged in refactor/SW-2476-use-react-aria-radio-group-for-payment-options (pull request #1849)
Refactor(SW-2177): Use react aria RadioGroup & Radio for payment options

* fix(SW-SW-2177): enhance accessibility for payment options

* Added keyboard navigation support to payment options.
* Updated CSS to improve focus styles for payment option labels.

* refactor: use RadioGroup & Radio from react aria for payment options

* refactor(SW-2177): replace setValue and watch with useController for payment method handling

* fix(SW-2177): remove comment and use cx for styles on PaymentOption

* fix(SW-2177): Add keyboard focus indicator to payment option


Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
2025-04-24 11:22:36 +00:00
Christian Andolf
055f9ab139 Merged in fix/remove-useless-check (pull request #1844)
fix: remove useless check since cmsreward is always defined

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-24 09:41:28 +00:00
Christian Andolf
f17c8005d4 fix: remove useless check since cmsreward is always defined 2025-04-24 10:14:52 +02:00
Joakim Jäderberg
d66a3aabdf Merged in fix/SW-2478-search-label-inverted-colors (pull request #1850)
fix: colors of the search field on <JumpTo/> had inverted behaviour

* fix: colors of the search field on <JumpTo/> had inverted behaviour


Approved-by: Linus Flood
2025-04-24 06:52:00 +00:00
Bianca Widstam
d077184e5e Merged in fix/SW-2481-booking-number (pull request #1845)
fix(SW-2481): add booking number for multiroom

* fix(SW-2481): add booking number for multiroom


Approved-by: Michael Zetterberg
2025-04-23 23:44:52 +00:00
Erik Tiekstra
d827bf04d0 fix(SW-2210): Checking for session inside MyPagesMenu to sync session state 2025-04-24 00:48:42 +02:00
Erik Tiekstra
7b76e351d9 fix(SW-2210): Removed isUserLoggedIn from RatesStore 2025-04-24 00:48:40 +02:00
Michael Zetterberg
5323a8e46e feat: harmonize log and metrics 2025-04-23 22:40:46 +00:00
Bianca Widstam
858a81b16f Merged in fix/SW-2435-modal-whitespace (pull request #1848)
Fix/SW-2435 modal whitespace

* fix(SW-2435): prevent modal content to move when clicking checkbox

* fix(SW-2435): prevent modal content to move when clicking checkbox


Approved-by: Christian Andolf
Approved-by: Matilda Landström
2025-04-23 14:50:59 +00:00
Bianca Widstam
2f0a196b49 Merged in fix/SW-1414-tracking-gla (pull request #1837)
fix(SW-1414): add hotelId to tracking for gla

* fix(SW-1414): add hotelId to tracking for gla


Approved-by: Niclas Edenvin
2025-04-23 11:05:43 +00:00
Simon Emanuelsson
722d4505ba fix: always use totalPrice to display roomCharge 2025-04-23 11:50:44 +02:00
Simon Emanuelsson
1f94c581ae fix: unite all price details modals to one and align on ui 2025-04-23 08:45:50 +00:00
Erik Tiekstra
8152aea649 fix(SW-1241): Adjusted amenities sidepeek on hotel pages and booking flow
Approved-by: Michael Zetterberg
Approved-by: Matilda Landström
2025-04-23 08:41:04 +00:00
Erik Tiekstra
c23a32cd10 fix(SW-2414): Removed continue button on single room member bookings
Approved-by: Christian Andolf
Approved-by: Matilda Landström
2025-04-23 08:33:15 +00:00
Matilda Landström
bcd7474da6 Merged in fix/map-card-amenities (pull request #1840)
Fix/map card amenities

* fix: only display 3 amenities on map card

* fix: add Typography


Approved-by: Christian Andolf
2025-04-22 12:46:45 +00:00
Christian Andolf
652023fac3 Merged in fix/SW-2476-country-select-controlled (pull request #1839)
fix(SW-2476): turn country select into a controlled component again

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-22 12:40:02 +00:00
Christian Andolf
3df28f950e fix(SW-2476): turn country select into a controlled component again 2025-04-22 14:01:43 +02:00
Christian Andolf
2fadf71a58 Merged in fix/add-data-testid-to-date-selects (pull request #1838)
fix: add back data-testid attributes to date selects

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-22 11:53:15 +00:00
Christian Andolf
3181579d38 fix: add back data-testid attributes to date selects 2025-04-22 13:44:42 +02:00
Christian Andolf
281efd0df5 Merged in fix/dont-request-cms-with-no-reward-ids (pull request #1836)
fix: dont request cms rewards if we have no reward ids

Approved-by: Linus Flood
2025-04-22 09:18:48 +00:00
Niclas Edenvin
8d1312c0fa Merged in fix/sw-2444-view-all-on-mobile (pull request #1834)
fix(sw-2444): view all ancillaries mobile

* fix(sw-2444): view all ancillaries mobile

On mobile the view all button to show all ancillaries shouldn't be
shown. It's already a carousel showing all available ancillaries.


Approved-by: Bianca Widstam
Approved-by: Matilda Landström
2025-04-22 09:07:24 +00:00
Niclas Edenvin
3f6a65d390 Merged in fix/sw-1867-multiroom-guests (pull request #1822)
fix(sw-1867): Don't allow same name or membno between rooms

* fix(sw-1867): Don't allow same name or membno between rooms

We don't want to allow two different rooms to have the same firstname
and lastname combination or the same membership number.

* Fine tune validation triggers

* Add comments explaining manual validation triggering

* Change to react-hook-form built-in deps instead


Approved-by: Simon.Emanuelsson
2025-04-22 09:06:43 +00:00
Christian Andolf
55b255d36b fix: dont request cms rewards if we have no reward ids
fixes a cache issue since we have no keys to cache on
2025-04-22 10:55:04 +02:00
Chuma Mcphoy (We Ahead)
8a68a79ac4 Merged in fix/LOY-227-password-input-validation-crash (pull request #1835)
fix(LOY-227): use new getErrorMessage for PasswordInput

* fix(LOY-227): improve error message handling in PasswordInput component


Approved-by: Christian Andolf
Approved-by: Linus Flood
2025-04-22 08:13:30 +00:00
Christian Andolf
e62e87e306 Merged in feat/LOY-169-use-new-country-select (pull request #1832)
feat(LOY-169): use new filter select for country select

Approved-by: Erik Tiekstra
2025-04-22 07:14:06 +00:00
Chuma Mcphoy (We Ahead)
27aef3982e Merged in fix/LOY-222-find-my-booking-urls-for-prod (pull request #1817)
Fix(LOY-222): Find my booking url handling

* fix(LOY-222): adapt findMyBooking url based on HIDE_FOR_NEXT_RELEASE

* feat(LOY-222): add current web paths for findMyBooking in multiple languages

* refactor(LOY-222): better env and new url constructions

* refactor(LOY-222): decouple env var handling from getCurrentWebUrl

* fix(LOY-222): update findMyBooking URL construction to use baseUrl

* fix(LOY-222): simplify findMyBooking URL handling for new web urls

* fix(LOY-222): Update Finnish path for hotel reservation lookup

* refactor(LOY-222): rename PUBLIC_URL to NEXT_PUBLIC_PUBLIC_URL for consistency


Approved-by: Christian Andolf
Approved-by: Linus Flood
2025-04-22 07:03:23 +00:00
Christian Andolf
c773dc3dfc feat(LOY-169): use new filter select for country select
standardised colors on error messages

fixed error validation on date field

removed duplicates in country list
2025-04-22 08:48:34 +02:00
Erik Tiekstra
ba2198b77f fix(SW-2142): layout changes on destination pages and destination pages filter fix
Approved-by: Matilda Landström
2025-04-22 05:21:53 +00:00
Matilda Landström
b981e8bffc Merged in feat/SW-2133-accordion (pull request #1799)
fix(SW-2133): rte in accordion

* fix(SW-2133): rte in accordion


Approved-by: Michael Zetterberg
2025-04-17 14:20:59 +00:00
Joakim Jäderberg
a56290edc7 Merged in fix/SW-2401-share-cache-in-prod (pull request #1815)
Fix/SW-2401 share cache in prod

* fix: reuse cache between prod and pre-prod

* tests: add tests for generating cachePrefix

* tests: remove unnecessary reset of process.env

* tests: add tests for generateCacheKey

* fix: make sure that we don't get invalid cacheKeys

* fix: make sure that we don't get invalid cacheKeys


Approved-by: Linus Flood
2025-04-17 08:57:21 +00:00
Joakim Jäderberg
213bd2c561 Merged in fix/SW-2427-floating-booking-widget-fullwidth (pull request #1826)
fix: when floating booking widget is sticky let it have white background all the way out. SW-2427

* fix: when floating booking widget is sticky let it have white background all the way out.
Resolves SW-2427

* pr: move styling variants to it's own file


Approved-by: Christian Andolf
2025-04-17 08:56:24 +00:00
Joakim Jäderberg
4e17bf1391 Merged in fix/SW-2314-search-modal-shifting (pull request #1831)
fix: search modal shifted to the right on mobile

Approved-by: Linus Flood
2025-04-17 08:56:02 +00:00
Linus Flood
cfa8c166a3 Merged in feat/sw-2403-mystay-webview (pull request #1828)
Feat/sw-2403 - Adding webview for MyStay

* feat/webview - added for my stay

* wip

* Passing headers so we can get the lang

* Cleanup

* Refactored and some performance improvements


Approved-by: Christian Andolf
2025-04-17 08:48:52 +00:00
Christian Andolf
3ce3063973 Merged in fix/restore-generated-id-inputs (pull request #1829)
fix: restore generated id for inputs

Approved-by: Arvid Norlin
2025-04-17 07:03:43 +00:00
Arvid Norlin
007b20bfb6 Merged in chore/svg-prop-warnings (pull request #1830)
fix attribute casing for svgs in jsx to get rid of warnings

* fix attribute casing for svgs in jsx to get rid of warnings


Approved-by: Erik Tiekstra
2025-04-17 06:45:43 +00:00
Joakim Jäderberg
b98d6c10c0 Merged in fix/SW-2253-consolidate-autocomplete-search (pull request #1795)
Consolidate autocomplete search SW-2253 SW-2338

* use fuse.js for fuzzy search
* Handle weird behaviour when search field loses focus on destinationPage
* Add error logging for JumpTo when no URL was provided
* Switch to use <Typography /> over <Caption />
* fix: bookingWidget search label should always be red
* fix: searchHistory can no longer add invalid items
* fix: list more hits when searching
* fix: issue when searchField value was undefined
* fix: don't show searchHistory label if no searchHistory items
* simplify skeleton for listitems in search

Approved-by: Linus Flood
2025-04-17 06:39:42 +00:00
Christian Andolf
b52e1b0629 fix: restore generated id for inputs
really this shouldn't be needed but in multiple cases we're passing the field name as id which causes multiple labels to use the same for value. really we should just omit this prop unless necessary so we don't need to generate it like this.
2025-04-16 17:31:14 +02:00
Hrishikesh Vaipurkar
8c0597727b Merged in feat/SW-1879-aa-tracking-bed-breakfastpayment (pull request #1789)
feat: SW-1879 Tracking enter-details sections

* feat: SW-1879 Tracking enter-details sections

* feat: SW-1879 removed onSelect to trigger in onSubmit

* feat: SW-1879 Removed onSelect and triggered inside onSubmit

* feat: SW-1879 Optimized to remove unnecessary useEffect triggers in every re-render

* feat: SW-1879 Updated breakfast package typings

* feat: SW-1879 Reverted RadioCardProps

* feat: SW-1879 Optimised code


Approved-by: Tobias Johansson
Approved-by: Christian Andolf
2025-04-16 14:06:15 +00:00
Christian Andolf
4076f8d6d8 Merged in fix/deprecated-motion-instantiate (pull request #1825)
fix: now using the correct method to instantiate motion since its constructor is deprecated in favor of the create method

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-16 12:54:21 +00:00
Hrishikesh Vaipurkar
df7e101be6 Merged in fix/SW-2375-aa-tracking-critical-pageview- (pull request #1805)
fix: SW-2375 Tracking on booking-flow soft navigations based on query params

* fix: SW-2375 Tracking on booking-flow soft navigations based on query params

* fix: SW-2375 Restricted query params check to booking widget params

* fix: SW-2375 Moved empty check before other regex check


Approved-by: Tobias Johansson
2025-04-16 12:47:58 +00:00
Christian Andolf
c23121fceb Merged in fix/booking-code-error-messages (pull request #1824)
fix: booking code and reward night messages are now displayed correctly

Approved-by: Michael Zetterberg
2025-04-16 12:16:46 +00:00
Christian Andolf
8a9107cdf2 fix: now using the correct method to instantiate motion since its constructor is deprecated in favor of the create method 2025-04-16 14:11:24 +02:00
Christian Andolf
b252c8be2d fix: booking code and reward night messages are now displayed correctly
also fixed an incorrect css value
2025-04-16 14:07:28 +02:00
Anton Gunnarsson
009d46ebac Merged in fix/too-many-codes-error (pull request #1814)
Fix SAS OTP rate limited error

* Fix error for too many codes not showing up


Approved-by: Joakim Jäderberg
2025-04-16 11:20:20 +00:00
Anton Gunnarsson
0ab5dc1c9d Merged in fix/sw-2132-unlink-error (pull request #1816)
Add UnlinkError for when SAS account unlinking fails

* Add UnlinkError for when unlinking fails


Approved-by: Joakim Jäderberg
2025-04-16 11:19:07 +00:00
Erik Tiekstra
8b65f63d60 fix(SW-2171): Added focus state on rate cards and image-gallery
Approved-by: Arvid Norlin
2025-04-16 10:24:51 +00:00
Christian Andolf
27f5ca9851 fix(SW-2385): use booking widget error constants in component 2025-04-16 10:17:17 +00:00
Christian Andolf
e544feaa36 fix(SW-2385): add booking widget error messages 2025-04-16 10:17:17 +00:00
Christian Andolf
595eb575d7 fix(SW-2385): handle error messages provided from zod validation in forms client side 2025-04-16 10:17:17 +00:00