Commit Graph

248 Commits

Author SHA1 Message Date
Erik Tiekstra
ac953ccd97 feat(SW-1818): Refactored sysAsset handling to support PDF links
Approved-by: Matilda Landström
2025-06-09 09:28:17 +00:00
Matilda Landström
0383a332ad Merged in feat/SW-2888-facilities (pull request #2267)
Feat/SW-2888 facilities

* chore(SW-2944): change order of content

* chore(SW-2944): add openinghourstype from api


Approved-by: Erik Tiekstra
2025-06-05 07:29:49 +00:00
Matilda Landström
d63e13aff5 Merged in feat/SW-2939-update-destination-list (pull request #2295)
fix(SW-2939): update destination overview lists with Stuttgart

* fix(SW-2939): update lists


Approved-by: Erik Tiekstra
2025-06-05 07:19:49 +00:00
Michael Zetterberg
17f1a59e97 fix: sync English labels 2025-06-03 12:02:49 +02:00
Erik Tiekstra
be98c2faf6 feat(SW-1409): Synced tabnavigation headings and section headings on hotel pages
* feat(SW-2409): Added same headings to relevant sidepeeks


Approved-by: Christian Andolf
Approved-by: Matilda Landström
2025-06-03 09:22:28 +00:00
Hrishikesh Vaipurkar
f9e838e77a Merged in fix/SW-2838-in-select-hotel-lang-switch- (pull request #2261)
fix: SW-2838 Use of city identifier instead of city name

* fix: SW-2838 Updated selection to city identifier instead of city name


Approved-by: Christian Andolf
Approved-by: Linus Flood
2025-06-03 07:58:00 +00:00
Joakim Jäderberg
a95ef65d02 Merged in feat/use-hash-for-graphql-cache (pull request #2251)
Feature: Use hash of query+variables for graphql cache instead of gitsha

* feature: use a hash of query+variables as part of the cache key instead of gitsha

* .

* Merge branch 'master' of bitbucket.org:scandic-swap/web into feat/use-hash-for-graphql-cache

* use correct json stringify

* merge

* remove edgeRequest in favor of request

* add more indicative logging


Approved-by: Linus Flood
2025-06-03 06:39:04 +00:00
Anton Gunnarsson
cbf9e7b7c2 Merged in chore/next15 (pull request #1999)
chore (SW-834): Upgrade to Next 15

* wip: apply codemod and upgrade swc plugin

* wip: design-system to react 19, fix issues from async (search)params

* wip: fix remaining issues from codemod

serverClient is now async because context use headers()
getLang is now async because it uses headers()

* Minor cleanup

* Inline react-material-symbols package

Package is seemingly not maintained any more and doesn't support
React 19. This copies the package source into `design-system`,
makes the necessary changes for 19 and export it for others to use.

* Fix missing awaits

* Disable modal exit animations

Enabling modal exit animations via isExiting prop is causing
modals to be rendered in "hidden" state and never unmount.
Seems to be an issue with react-aria-components,
see https://github.com/adobe/react-spectrum/issues/7563.
Can probably be fixed by rewriting to a solution similar to
https://react-spectrum.adobe.com/react-aria/examples/framer-modal-sheet.html

* Remove unstable cache implementation and use in memory cache locally

* Fix ref type in SelectFilter

* Use cloneElement to add key prop to element


Approved-by: Linus Flood
2025-06-02 11:11:50 +00:00
Erik Tiekstra
9a868e6fe5 feat(SW-2466): Sorting destinations by country depending on language
Approved-by: Christian Andolf
Approved-by: Matilda Landström
2025-06-02 09:38:20 +00:00
Erik Tiekstra
09879d2f4a feat(SW-2134): Added support for images inside accordions
Approved-by: Matilda Landström
2025-06-02 09:37:20 +00:00
Anton Gunnarsson
b19d849b2b Merged in feat/sw-2923-link-sas-referenceid (pull request #2243)
Send SAS OTP referenceId to API

* Send SAS OTP referenceId to API

API needs the referenceId to pass along to SAS
as they use it to verify that OTP was successful.


Approved-by: Joakim Jäderberg
2025-06-02 08:01:23 +00:00
Anton Gunnarsson
7e97b74c18 Merged in chore/remove-unused-code (pull request #2229)
Remove unused code

* Remove unused scandic-web files

* Remove unused exports


Approved-by: Joakim Jäderberg
2025-05-30 12:41:18 +00:00
Erik Tiekstra
42701739a0 Merged in fix/SW-2921-countryName (pull request #2249)
fix(SW-2921): Moved countryName to attributes in locations schema

* fix(SW-2921): Moved countryName to attributes in locations schema


Approved-by: Linus Flood
2025-05-28 08:45:03 +00:00
Joakim Jäderberg
26b005d72a Merged in fix/cache-graphql-data (pull request #2248)
fix: add missing cache for cms data

* fix: cache cms data


Approved-by: Linus Flood
2025-05-28 08:28:21 +00:00
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