Commit Graph

383 Commits

Author SHA1 Message Date
Michael Zetterberg
55df33d26c fix: throw on errors in api tier rewards 2024-10-16 07:30:04 +02: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
Niclas Edenvin
d37f99f2ba Merged in feat/sw-590-update-room-configuration-schema (pull request #687)
Rename bedType to roomTypeCode

* Rename bedType to roomTypeCode


Approved-by: Fredrik Thorsson
2024-10-14 12:56:11 +00:00
Michael Zetterberg
8ec1707fd5 fix: fields from Contentstack can be null. 2024-10-14 14:31:23 +02:00
Erik Tiekstra
3656245f8d fix(SW-187): Fixed open in new tab and some general refactoring 2024-10-14 10:44:03 +02:00
Fredrik Thorsson
1c0dd739a5 feat(SW-322): clean up 2024-10-14 09:51:14 +02:00
Fredrik Thorsson
5d1bdd9cd8 feat(SW-322): refactor shortcuts list 2024-10-14 09:51:14 +02:00
Fredrik Thorsson
67a33c9dc8 feat(SW-322): variable name change 2024-10-14 09:51:13 +02:00
Fredrik Thorsson
84a11d731a feat(SW-322): change output variable name 2024-10-14 09:51:13 +02:00
Fredrik Thorsson
5ea3410006 feat(SW-322): implement two column list 2024-10-14 09:51:13 +02:00
Erik Tiekstra
84881ee16a feat(SW-391): Changes after PR 2024-10-11 14:48:37 +02:00
Erik Tiekstra
9620071c78 feat(SW-391): Added sidepeek functionality to teasercard 2024-10-11 14:48:37 +02:00
Pontus Dreij
e723558870 fix: removed second validation since it is not needed 2024-10-11 12:15:11 +02:00
Pontus Dreij
7c4a880519 Merge in feat/SW-415-select-room-card (pull request #663)
Feat/SW-415 select room card
2024-10-11 06:48:57 +00:00
Christel Westerberg
c9684dee11 feat: add validation to enter details flow 2024-10-10 16:48:38 +02:00
Pontus Dreij
7c3ff7f94e Merge remote-tracking branch 'origin/develop' into feat/SW-415-select-room-card 2024-10-10 14:45:35 +02:00
Tobias Johansson
740419bad2 Merged in feat/SW-459-payment-flow-ui-ux (pull request #657)
Feat/SW-459 payment flow ui ux

* feat(SW-431): List payment methods and handle booking status and redirection

* feat(SW-431): small fix

* fix(SW-431): Added intl string and sorted dictionaries

* fix(SW-431): add todo comments

* feat(SW-459): Added payment method icons

* feat(SW-459): refactored into new component and added form

* feat(SW-459): Localized strings

* feat(SW-459): added checkbox

* feat(SW-459): Refactored payment options and updated payment form

* feat(SW-459): update input bg color

* feat(SW-459): add current web links and style fixes

* fix(SW-459): fix issue with booking confirmation not being accessible

* feat(SW-459): style changes

* feat(SW-459): update max width of payment container

* feat(SW-459): update create booking schema

* feat(SW-459): fixes from PR


Approved-by: Arvid Norlin
2024-10-10 12:20:41 +00:00
Pontus Dreij
c69b473de1 feat(SW-415): Normalize roomSchema 2024-10-10 14:10:03 +02:00
Pontus Dreij
9d106713a0 feat(SW-415): Update typings 2024-10-10 13:38:05 +02:00
Pontus Dreij
4c06a1b98d feat(SW-415): Added content from API 2024-10-10 10:48:02 +02:00
Chuma McPhoy
bf8976c24c feat(SW-360): Add signup verification route w. tracking for login 2024-10-10 10:47:09 +02:00
Chuma McPhoy
8583306b3c refactor(SW-360): improve error handling logic 2024-10-10 10:47:09 +02:00
Christel Westerberg
2886f537ee fix: wrap tier rewards endpoint in unstable_cache 2024-10-10 10:46:31 +02:00
Christel Westerberg
ed3acce57c fix: add args as keyParts for unstable_cache 2024-10-10 10:46:31 +02:00
Christel Westerberg
ea8fdc940d fix: refactor scopes for service token 2024-10-10 10:46:31 +02:00
Chuma McPhoy
1f6fd4e980 feat(SW-360): Add signup verification route w. tracking for login 2024-10-10 08:59:33 +02:00
Chuma McPhoy
5bdef742c7 refactor(SW-360): improve error handling logic 2024-10-10 08:59:33 +02:00
Christel Westerberg
491253d866 fix: wrap tier rewards endpoint in unstable_cache 2024-10-09 16:53:52 +02:00
Christel Westerberg
95ff011bdb fix: add args as keyParts for unstable_cache 2024-10-09 16:49:15 +02:00
Christel Westerberg
71b03143ce fix: refactor scopes for service token 2024-10-09 16:46:53 +02:00
Pontus Dreij
79442d80b8 feat(SW-415): Update Room card UI 2024-10-09 11:03:33 +02:00
Niclas Edenvin
4a64cd083d Fix response validation for get stays 2024-10-09 11:03:33 +02:00
Niclas Edenvin
c2c1a676ca SW-454 Use the API on select room page 2024-10-09 11:03:33 +02:00
Erik Tiekstra
23953aeb61 feat(SW-216): Added heading and preamble text to table block 2024-10-09 11:03:33 +02:00
Erik Tiekstra
5c10d36745 fix(SW-216): Fixes after PR 2024-10-09 11:03:33 +02:00
Erik Tiekstra
dfd40aa7aa feat(SW-441): Added table block component 2024-10-09 11:03:33 +02:00
Erik Tiekstra
ef411b4cf9 feat(SW-216): added table to contentstack query for contentpage 2024-10-09 11:03:33 +02:00
Niclas Edenvin
1b1c7e6398 Fix response validation for get stays 2024-10-08 15:24:01 +02:00
Niclas Edenvin
baf6ed9f2b SW-454 Use the API on select room page 2024-10-08 15:24:01 +02:00
Erik Tiekstra
4b9a6d2e8e feat(SW-216): Added heading and preamble text to table block 2024-10-08 15:11:54 +02:00
Erik Tiekstra
bc43f79c24 fix(SW-216): Fixes after PR 2024-10-08 15:11:54 +02:00
Erik Tiekstra
5e4ef02ebf feat(SW-441): Added table block component 2024-10-08 15:11:53 +02:00
Erik Tiekstra
4979c22c4a feat(SW-216): added table to contentstack query for contentpage 2024-10-08 15:11:53 +02:00
Niclas Edenvin
6e6d14875d Merged in feat/SW-454-select-room-api (pull request #648)
Feat/SW-454 Create select rate page foundation

* Extract select-rate page to its own, fixed route

* Rename availability to hotelsAvailability

* Update availability hotels response

* Number to string


Approved-by: Pontus Dreij
2024-10-08 09:10:06 +00:00
Matilda Landström
038fa81de2 refactor(SW-302) 2024-10-08 08:53:42 +02:00
Matilda Landström
0fa8251cd3 refactor(SW-302 2024-10-08 08:53:41 +02:00
Matilda Landström
22f3656b92 refactor(SW-296) 2024-10-08 08:53:41 +02:00
Matilda Landström
1d8319bfcb fix(SW-302): fixes after rebase 2024-10-08 08:53:41 +02:00
Matilda Landström
a12eea5493 refactor(SW-302): split upp function into two 2024-10-08 08:53:41 +02:00
Matilda Landström
72c961eabf refactor(SW-302): code cleanup 2024-10-08 08:53:41 +02:00