284 Commits

Author SHA1 Message Date
Erik Tiekstra
efbed53be4 fix(SW-2921): Fixed issue with countryName missing from locations response
* fix(SW-2921): Added more correct cache key to locations endpoint

Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
2025-05-27 11:46:59 +00:00
Erik Tiekstra
8b85235f1d feat(SW-2408): Improved meta titles for Hotel subpages
Approved-by: Matilda Landström
2025-05-27 05:32:50 +00:00
Joakim Jäderberg
b20c8ce42b Merged in fix/warmup-autocomplete-data-2 (pull request #2218)
fix: chunked data overwrote it self

* fix: chunked data overwrote it self


Approved-by: Linus Flood
2025-05-26 09:39:48 +00:00
Linus Flood
a7e55b4d54 Merged in fix/date-query-params (pull request #2214)
Fix/date query params

* fix: date query params lowercase redirect middleware

* fix: date query params lowercase redirect middleware

* Merge branch 'master' into fix/date-query-params
2025-05-26 08:51:22 +00:00
Joakim Jäderberg
196ea2994f Merged in fix/warmup-autocomplete-data (pull request #2212)
warmup autocomplete data

* warmup autocomplete data


Approved-by: Anton Gunnarsson
2025-05-26 08:23:20 +00:00
Joakim Jäderberg
231ea05348 Merged in fix/refetching-availability-on-select (pull request #2204)
don't use rateCode to determine if bookingCode should come from the room or the 'big' input

* don't use rateCode to determine if bookingCode should come from the room or the 'big' input


Approved-by: Linus Flood
2025-05-23 09:55:35 +00:00
Anton Gunnarsson
e4ad0d3466 Update typescript 2025-05-22 14:00:38 +02:00
Simon Emanuelsson
5ca30d02a0 feat: keep inventory of bedselections 2025-05-22 09:37:52 +00:00
Christian Andolf
cddd9c1ea8 chore: update ancillary imageurl typing to reflect that the image url may be undefined 2025-05-21 13:40:01 +02:00
Joakim Jäderberg
5272af2ab1 Merged in fix/SW-2839-prevent-fetching-hotel-availability-with-invalid-input (pull request #2166)
Prevent calling availability for cities if input model is invalid

* fix: make sure that input data is valid


Approved-by: Linus Flood
2025-05-21 04:47:05 +00:00
Joakim Jäderberg
6634bfa93f Merged in fix/SW-2827-wrong-key (pull request #2162)
fix: error key was wrong for hotel availability input object

* fix: error key was wrong


Approved-by: Linus Flood
2025-05-20 12:54:16 +00:00
Joakim Jäderberg
3de4f9e406 Merged in fix/SW-2827-availability-for-old-dates (pull request #2158)
fix: add error handling for hotel room availability

* fix: add error handling for hotel room availability

* fix: update error codes

* fix: have one error message to rule them all. them as in permutations of invalid dates


Approved-by: Linus Flood
2025-05-20 12:25:36 +00:00
Niclas Edenvin
fbc7366dd6 Merged in feat/SW-1749-sidepeek-hotel-cta (pull request #2123)
feat(SW-1749): add link to hotel page in sidepeek

* feat(SW-1749): add link to hotel page in sidepeek


Approved-by: Matilda Landström
2025-05-19 13:25:54 +00:00
Joakim Jäderberg
b486fd1ad0 Merged in fix/SW-2804-missing-meeting-rooms (pull request #2138)
fix: return [] when we get a 404 for meeting rooms for a hotel

* fix: return [] when we get a 404 for meeting rooms for a hotel


Approved-by: Linus Flood
2025-05-19 08:35:47 +00:00
Simon Emanuelsson
1f1bcd480b feat: prevent users from selecting the same room when there is no vacancy for it 2025-05-16 13:04:45 +00:00
Joakim Jäderberg
ec29664a60 Merged in fix/capture-errors-in-trpc (pull request #2103)
Fix/capture errors in trpc

* fix: import @sentry/nextjs, not @sentry/node

* add sentry logging for errors in trpc


Approved-by: Linus Flood
2025-05-16 11:44:25 +00:00
Chuma Mcphoy (We Ahead)
d489bc7aed Merged in chore/navigation-router-spelling-error (pull request #2115)
chore: correct spelling of navigationRouter

* chore: correct spelling of navigationRouter


Approved-by: Erik Tiekstra
2025-05-16 07:41:49 +00:00
Joakim Jäderberg
31d75ffa74 Merged in fix/default-page-settings (pull request #2076)
fix: default page settings when invalid or missing

* fix: default page settings when invalid or missing since most pages don't have pageSettings


Approved-by: Anton Gunnarsson
2025-05-15 10:41:16 +00:00
Simon Emanuelsson
e082bf2e50 feat: make sure correct data is sent to tracking 2025-05-14 15:10:18 +00:00
Arvid Norlin
2cdd086ef3 Merged in feat/log-create-booking-data (pull request #2075)
feat: improve logging for booking.create

* feat: improve logging for booking.create


Approved-by: Michael Zetterberg
2025-05-13 11:33:37 +00:00
Joakim Jäderberg
aceb88cb1a Merged in fix/seo-whitelist-scandic-friends (pull request #2071)
fix: SEO whitelist /scandic-friends

* fix: SEO whitelist /scandic-friends

* fix: SEO whitelist /scandic-friends


Approved-by: Linus Flood
2025-05-13 09:35:28 +00:00
Matilda Landström
00f040cfbe Merged in fix/SW-2546-country-search (pull request #2049)
fix(SW-2546): fix country destination search

* fix(SW-2546): fix url for countries


Approved-by: Erik Tiekstra
Approved-by: Joakim Jäderberg
2025-05-13 08:48:22 +00:00
Chuma Mcphoy (We Ahead)
81e4150cb3 Merged in fix/nullish-check-on-dynamic-content-headers (pull request #2069)
fix: Allow component to be nullish in dynamic content schemas

* fix: Allow component to be nullish in dynamic content schemas


Approved-by: Erik Tiekstra
2025-05-13 08:41:25 +00:00
Chuma Mcphoy (We Ahead)
8530c2cc93 Merged in fix/nullable-dynamic-content-in-static-page-header (pull request #2058)
fix: update header  dynamic_content schema to allow null values

* fix: update header  dynamic_content schema to allow null values

* fix: update to use nullish


Approved-by: Erik Tiekstra
2025-05-12 12:57:40 +00:00
Anton Gunnarsson
94a00d40b7 Merged in feat/sw-2526-update-sas-error-handling-after-api-changes (pull request #1886)
SW-2526 - Update error handling for link SAS account

* Update error handling for link SAS account

* Capture schema validation error and send to Sentry

* Add cases for unhandled otp errors


Approved-by: Joakim Jäderberg
2025-05-12 11:48:31 +00:00
Simon Emanuelsson
6d1f9cbb28 fix: should not display bedtypes from not available room 2025-05-12 10:26:50 +00:00
Anton Gunnarsson
60af31762b Merged in fix/make-user-loyalty-optional (pull request #2044)
fix: Make loyalty optional on user

* Optional user loyalty

* merge


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
2025-05-12 09:00:11 +00:00
Joakim Jäderberg
cbbde963dc Merged in fix/my-pages-menu-not-translated (pull request #2045)
fix: my pages menu not translated

* fix: my pages menu not translated
fix: able to pass lang to getIntl()


Approved-by: Michael Zetterberg
2025-05-12 07:57:11 +00:00
Simon Emanuelsson
2adb0e92eb fix: re-add tracking my-stay 2025-05-09 14:53:51 +00:00
Matilda Landström
b696c670c8 Merged in fix/SW-2689-Danish-urls (pull request #2033)
Fix/SW-2689 Danish urls

* fix(SW-2689): update destinations lists


Approved-by: Christian Andolf
Approved-by: Erik Tiekstra
2025-05-09 13:09:21 +00:00
Anton Gunnarsson
a0bef340e9 Format zodError so we don't try to sanitize functions 2025-05-09 10:59:18 +00:00
Bianca Widstam
e38b2931d3 Merged in fix/default-nullish-value-to-array (pull request #2024)
fix: null does not default to empty array causing sanitize error

* fix: null does not default to empty array causing sanitize error


Approved-by: Michael Zetterberg
Approved-by: Anton Gunnarsson
2025-05-09 10:59:05 +00:00
Chuma Mcphoy (We Ahead)
7af4d3be1e Merged in LOY-188-employee-benefit-call-to-actions (pull request #1954)
feat(LOY-188): dynamic content support in content pages headers & use in DTMC employee benefits page

* feat(LOY-188): add dynamic content handling for DTMC employee benefits page header

* fix(LOY-188): change section to div in EmployeeBenefitsCallToActions component

* refactor(LOY-188): switch to ButtonLink

* refactor(LOY-188): replace enum with as const objects in DynamicContentEnum

* chore(LOY-188): change ComponentValue type exports to internal scope in DynamicContentEnum

* fix(EmployeeBenefitsCallToActions): replace div with fragment

* chore(LOY-188): update translations


Approved-by: Christian Andolf
2025-05-08 15:24:22 +00:00
Arvid Norlin
aaffcba94a fix(SW-2659): pass input to userTrackingInfo since lang needs to be passed from client 2025-05-08 11:54:44 +00:00
Hrishikesh Vaipurkar
74a5b5748a Merged in fix/SW-2642-select-hotel-corporate-ch (pull request #2003)
fix: SW-2642 Fixed corporate chq and voucher rates city search

* fix: SW-2642 Fixed corporate chq and voucher rates city search

* fix: SW-2642 Fixed no availability alert for all hotels

* fix: SW-2642 Combined flags to suitable variable

* fix: SW-2642 Fixed map view to show prices


Approved-by: Arvid Norlin
2025-05-08 10:46:05 +00:00
Tobias Johansson
194a401a56 Merged in fix/SW-2631-check-session-expiry (pull request #2004)
fix(SW-2631): check if session is valid otherwise use service token

* fix: check if session is valid otherwise use service token

* fix: only use service token for queries and updated mutations to check for valid user token


Approved-by: Michael Zetterberg
2025-05-08 09:20:48 +00:00
Matilda Landström
15a899f48b Merged in fix/startpage-cards (pull request #1994)
fix: display carousel cards without filtering

* fix: display carousel cards without filtering


Approved-by: Erik Tiekstra
2025-05-08 08:49:23 +00:00
Matilda Landström
ef2d4a3846 Merged in fix/explore-all-hotels (pull request #1998)
Fix/explore all hotels

* fix: update lists

* fix: adds Scandic Nuremberg after api fix

* fix: add sorting based on city name


Approved-by: Erik Tiekstra
2025-05-07 14:19:01 +00:00
Matilda Landström
78cef80de0 Merged in fix/explore-countrypages (pull request #1989)
Fix(SW-2513): Explore all hotels - country page links not showing

* fix: fix issue with country page urls


Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
2025-05-07 10:25:50 +00:00
Michael Zetterberg
b720a894fd feat(SW-2622): pass language to guarantee booking 2025-05-06 15:13:49 +02:00
Matilda Landström
5f38a92b74 fix(2547): filter inActive hotels from booking widget 2025-05-06 13:12:19 +00:00
Matilda Landström
6a2bb5ac2d fix(SW-2547): filter out cities and hotel with isPublished=false 2025-05-06 13:12:18 +00:00
Matilda Landström
e38fceb237 feat(SW-2547): filter out nonActive and nonPublished hotels and cities 2025-05-06 13:12:18 +00:00
Niclas Edenvin
2c03172e39 Don't pass language to status 2025-05-06 14:17:05 +02:00
Michael Zetterberg
c6a0ce86df feat(SW-2605): confirmation page only valid for 1 minute for the session 2025-05-06 11:01:32 +00:00
Niclas Edenvin
e0fe5ff0d5 fix(SW-2614): send language to API
We were missing the language param on some endpoints. We are still
missing it on some, but I left those without when we don't need it, e.g.
when only caring about the IDs in the response.
2025-05-06 10:17:05 +00:00
Michael Zetterberg
b910b6a313 feat(SW-2116): Use refId instead of confirmationNumber 2025-05-05 12:26:37 +00:00
Joakim Jäderberg
5784822a1e Merged in feature/SW-2320-languagebased-hide-for-next-release (pull request #1937)
Language based alternative to HIDE_FOR_NEXT_RELEASE

Approved-by: Anton Gunnarsson
2025-05-05 10:53:28 +00:00
Simon Emanuelsson
db289b80b1 feat: refactor NewDates, clean up legacy code
This reverts commit 0c7836fa59.
2025-05-03 21:45:45 +02:00
Linus Flood
d49ecdae1f Merged in feat/sw-2323-find-booking3 (pull request #1928)
Feat/sw-2323 New Find booking endpoint

* wip

* wip


Approved-by: Anton Gunnarsson
2025-05-02 13:21:00 +00:00