Commit Graph

121 Commits

Author SHA1 Message Date
Linus Flood
87820a6f2d Merged in feat/sw-1575-profileId-tracking (pull request #1264)
feat: #sw-1575 using profileId instead of membershipnumber for tracking i userInfo object

* feat: #sw-1575 using profileId instead of membershipnumber for tracking i userInfo object


Approved-by: Erik Tiekstra
2025-02-06 10:02:26 +00:00
Linus Flood
66649ba6af feat/user: use our wrapped cache instead of reacts cache 2024-12-17 17:22:50 +01:00
Christel Westerberg
8328493289 fix: align placeholder handling for all hotel images in zod 2024-12-17 16:13:58 +01:00
Linus Flood
431ab477eb Fixes bookingwidget skeleton and memoize fetching of creditcards 2024-12-17 14:31:52 +01:00
Linus Flood
1862b16c8c feat/membershipcard: utilize memoiozed function to fetch membership cards 2024-12-16 13:06:27 +01:00
Linus Flood
742a2820d1 Merge remote-tracking branch 'origin' into feature/tracking 2024-12-13 09:02:37 +01:00
Michael Zetterberg
594a279186 fix(DELIGHT-11001): do not require address key in user profile 2024-12-09 15:13:30 +01:00
Tobias Johansson
9b90e99adf Merged in feat/SW-1007-saved-cards-filtering (pull request #980)
Feat/SW-1007 saved payment cards now shown based on supported cards by hotel

* fix(SW-1007): refactored savedCards to only show supported payment cards

* fix(SW-1007): show error message even if metadata is null

* fix: merge changes that were missed

* fix: remove use server


Approved-by: Christel Westerberg
2024-11-28 08:08:39 +00:00
Michael Zetterberg
ee8f1def20 fix(SW-1079): add apiResponse to validation error logs 2024-11-27 11:22:22 +01:00
Chuma McPhoy
6f980fe9cd refactor(SW-360): review feedback 2024-11-26 10:30:24 +01:00
Chuma McPhoy
a68e37c26f fix(SW-898): remove redundant schema and add transform in signupInput 2024-11-19 15:45:00 +01:00
Chuma McPhoy
cfaa92260a chore(SW-898): pr comments 2024-11-19 15:45:00 +01:00
Chuma McPhoy
bc5a01fdf4 fix(SW-898): formatting 2024-11-19 15:45:00 +01:00
Chuma McPhoy
6958db3ca5 refactor(SW-898): replace signup server action with TRPC 2024-11-19 15:45:00 +01:00
Tobias Johansson
a70f8a3b97 Merged in feat/SW-618-payment-non-happy-path (pull request #874)
Feat/SW-618 payment non happy path

* feat(SW-618): filter out expired saved cards

* feat(SW-618): Added payment error codes and way of showing messages based on code

* feat(SW-618): show error message if max retries has been reached and remove search param after showing toast

* fix(SW-618): move fallback error codes

* fix(SW-618): remove ref from stopping useEffect to run twice

* fix(SW-618): refactored logic for toast message and minor fixes

* fix(SW-618): remove error message enum due to static analysis problems


Approved-by: Christian Andolf
Approved-by: Arvid Norlin
2024-11-18 14:10:11 +00:00
Simon Emanuelsson
0897a398ee feat(SW-791): make confirmation page dynamic 2024-11-08 09:47:35 +01:00
Simon Emanuelsson
62f549e85d feat: get breakfast package from API 2024-10-29 15:39:21 +01:00
Linus Flood
687a110a39 Utilizing memoized requests 2024-10-25 15:33:06 +02:00
Tobias Johansson
b33381d1b4 Merged in feat/SW-588-payment-saved-card (pull request #697)
feat(SW-588): Added saved card to payment step

* feat(SW-588): Added saved card to payment step

* feat(SW-588): Add proper label for saved card

* feat(SW-588): fix from PR feedback

* feat(SW-588): Add preloading of data

* feat(SW-588): remove onChange logic for PaymentOption

* feat(SW-588): moved payment files to correct folder

* feat(SW-588): moved preload to layout

* fix: remove unused prop


Approved-by: Simon.Emanuelsson
2024-10-21 10:39:19 +00:00
Michael Zetterberg
4a846540c3 feat: improve handling of deployment env vars
These are now defined in Netlify UI for dedicated environments (test, stage, production):

AUTH_URL
NEXTAUTH_URL
PUBLIC_URL

Code now falls back to incoming request host. Mainly used for
deployment previews which do not have Akamai in front, meaning
we do not need the above workaround as incoming request host
matches the actual public facing host. When Akamai is in front,
we lose the public facing host in Netlify's routing layer as they
internally use `x-forwarded-for` and we can't claim it for our usage.
2024-10-15 17:03:36 +02:00
Christel Westerberg
c9684dee11 feat: add validation to enter details flow 2024-10-10 16:48:38 +02:00
Christel Westerberg
71b03143ce fix: refactor scopes for service token 2024-10-09 16:46:53 +02:00
Niclas Edenvin
1b1c7e6398 Fix response validation for get stays 2024-10-08 15:24:01 +02:00
Christel Westerberg
44747058d0 fix: loyalty levels fetch in rsc for mobile menu
fix: get loyalty level in rsc

fix: typo
2024-10-08 08:25:44 +02:00
Christel Westerberg
2886084a82 feat: add communication preferences
feat: add generatePreferencesLink

feat: add subscriberId endpoint
2024-10-08 08:25:44 +02:00
Simon Emanuelsson
451d461c7f feat: guest information form enter details 2024-10-07 08:12:07 +02:00
Simon Emanuelsson
af850c90e7 feat(SW-66, SW-348): search functionality and ui 2024-09-24 09:47:31 +02:00
Niclas Edenvin
b9dbcf7d90 Merged in feat/booking-flow-submit (pull request #580)
This implements the actual call to the API to create a booking. That’s the only thing it does, it doesn’t handle the response in any way.

This PR is just to get it there and the new booking sub team will handle it further, with payment etc.

Approved-by: Michael Zetterberg
Approved-by: Fredrik Thorsson
Approved-by: Simon.Emanuelsson
2024-09-20 13:05:23 +00:00
Christel Westerberg
df38a718b5 fix(SW-366): add nights to next level 2024-09-06 11:05:33 +02:00
Tobias Johansson
238de4cd3a Merged in feat/CJ-17-points-expiration-table (pull request #527)
Feat/CJ-17 points expiration table

* feat(CJ-17): Added point expiration table and refactored to use Table component

* feat(CJ-17): Use Table component inside Row

* fix(CJ-117): Added missing css class and update date formatting

* fix(CJ-117): Added copy of membershipLevel route with a protectedProcedure


Approved-by: Christel Westerberg
2024-09-05 09:28:25 +00:00
Michael Zetterberg
46852a36a1 fix: default dob in zod schema 2024-08-29 09:42:05 +02:00
Michael Zetterberg
ce3248562b feat: mask date of birth 2024-08-27 10:55:46 +02:00
Michael Zetterberg
68aa6e565d Merged in fix/profile-data-error-logging (pull request #513)
fix: log api response for profile data errors
2024-08-27 06:19:02 +00:00
Michael Zetterberg
2f628aa41f fix: log api response for profile data errors 2024-08-27 08:16:27 +02:00
Michael Zetterberg
2ea6a2d242 fix: allow any membership level 2024-08-27 07:41:59 +02:00
Michael Zetterberg
f8d60afb49 debug: debug profile calls 2024-08-26 15:30:50 +02:00
Arvid Norlin
b56069e009 fix: remove toString() in metric attributes to avooid silly data like Object: Object 2024-08-26 13:30:07 +02:00
Arvid Norlin
0b2936159f feat: add metrics 2024-08-26 11:50:35 +02:00
Arvid Norlin
5b6295779d fix: add apiResponse.text() to logging 2024-08-26 11:50:35 +02:00
Simon.Emanuelsson
388060086e Merged in feat/masked-values (pull request #489)
feat: handle masked values only based on MFA

Approved-by: Michael Zetterberg
Approved-by: Arvid Norlin
2024-08-26 09:19:02 +00:00
Simon Emanuelsson
61b722d9ad feat: handle masked values only based on MFA 2024-08-26 11:06:01 +02:00
Christel Westerberg
231edbe944 fix: default language if missing in profile 2024-08-26 10:52:13 +02:00
Matilda Landström
f46207a308 feat: improve handling of stays 2024-08-23 15:45:15 +02:00
Tobias Johansson
b3ba4edd69 fix: revert back filtering of reward nights with operaId ORS 2024-08-23 12:49:59 +02:00
Arvid Norlin
9497e8eef3 fix: add apiResponse.text() to logging 2024-08-23 12:33:28 +02:00
Arvid Norlin
7cd6367c15 fix: change bad JSON.stringify:s 2024-08-23 09:47:45 +02:00
Arvid Norlin
8340f1ff6c fix: structure logged data 2024-08-23 09:47:43 +02:00
Arvid Norlin
7de8a184b7 fix: improve logging for api requests 2024-08-23 09:46:17 +02:00
Tobias Johansson
dbb55c3d33 Merged in feat/SW-165-fix (pull request #467)
fix(SW-165): fix issue with pagination now showing

Approved-by: Michael Zetterberg
2024-08-23 07:35:30 +00:00
Simon Emanuelsson
2337d37f1a feat(SW-160): update profile 2024-08-23 09:09:55 +02:00