Commit Graph

93 Commits

Author SHA1 Message Date
Joakim Jäderberg
00b94976b7 Merged in fix/hotel-subpage-unable-to-fetch (pull request #1381)
fix: was unable to fetch hotel subpage data, now uses the same function as when fetching a 'normal' hotel page

* fix: was unable to fetch hotel subpage data, now uses the same function as when fetching a 'normal' hotel page


Approved-by: Linus Flood
2025-02-20 10:05:26 +00:00
Linus Flood
21e564934d Merged in fix/preview-contentstack (pull request #1380)
* fix: preview in contentstack now works again


Approved-by: Joakim Jäderberg
2025-02-20 08:55:00 +00:00
Joakim Jäderberg
0d6bbf7b78 Merged in fix/get-from-contentstack (pull request #1378)
* fix: include lang when fetching from contentstack


Approved-by: Matilda Landström
2025-02-19 14:28:10 +00:00
Joakim Jäderberg
873183ec2f * move setLang() to a root layout
* fix: findLang only returns acceptable languages
* fix: fallback to use header x-lang if we haven't setLang yet
* fix: languageSchema, allow uppercase

Approved-by: Linus Flood
2025-02-19 09:06:37 +00:00
Linus Flood
7c0f9084b6 Merged in feat/refactor-header-footer-sitewidealert (pull request #1374)
Refactor: removed parallel routes for header, footer and sidewidealert. Langswitcher and sidewidealert now client components

* feat - removed parallel routes and made sidepeek and sitewidealerts as client components

* Langswitcher as client component

* Fixed lang switcher for current header

* Passing lang when fetching siteconfig

* Merge branch 'master' into feat/refactor-header-footer-sitewidealert

* Refactor

* Removed dead code

* Show only languages that has translation

* Refetch sitewidealert every 60 seconds

* Merge branch 'master' into feat/refactor-header-footer-sitewidealert

* Removed sidepeek parallel route from my-stay

* Added missing env.var to env.test

* Removed console.log


Approved-by: Joakim Jäderberg
2025-02-19 08:59:24 +00:00
Joakim Jäderberg
46ebbbba8f Merged in feature/sas-login (pull request #1256)
First steps towards the SAS partnership

* otp flow now pretends to do the linking

* Update LinkAccountForm header

* Update redirect times

* Clean up comments

* Set maxAge on sas cookies

* make all SAS routes protected

* Merge remote-tracking branch 'refs/remotes/origin/feature/sas-login' into feature/sas-login

* Require auth for sas link flow

* Fix resend otp

* Add error support to OneTimePasswordForm

* Add Sentry to SAS error boundary

* Move SAS_REQUEST_OTP_STATE_STORAGE_COOKIE_NAME

* Add missing translations

* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/sas-login

* Merge branch 'feature/sas-login' of bitbucket.org:scandic-swap/web into feature/sas-login

* Add TooManyCodesError component

* Refactor GenericError to support new errors

* Add FailedAttemptsError

* remove removed component <VWOScript/>

* Merge branch 'feature/sas-login' of bitbucket.org:scandic-swap/web into feature/sas-login

* remove local cookie-bot reference

* Fix sas campaign logo scaling

* feature toggle the SAS stuff

* Merge branch 'feature/sas-login' of bitbucket.org:scandic-swap/web into feature/sas-login

* fix: use env vars for SAS endpoints


Approved-by: Linus Flood
2025-02-05 14:43:14 +00:00
Erik Tiekstra
dd4a2d8120 Merged in feat/SW-1296-hotel-subpages (pull request #1233)
feat(SW-1296): added Subpage for hotel pages and its routing

* feat(SW-1296): added Subpage for hotel pages and its routing


Approved-by: Fredrik Thorsson
2025-02-03 10:58:53 +00:00
Christel Westerberg
b2935114e3 refactor: url management in hotel reservation flow 2025-01-14 11:09:42 +01:00
Christel Westerberg
5901cab440 fix: refactor breadcrumbs to take page type variants to better match margins 2025-01-07 11:41:39 +01:00
Linus Flood
3982b1ba56 Merged in feat/sentry (pull request #1089) 2024-12-19 10:35:20 +00:00
Christel Westerberg
4545de877f fix: normalize format of dates when setting them in middleware 2024-12-03 16:14:58 +01:00
Christel Westerberg
6bc7e27908 fix: dateFormat normalization middleware 2024-12-03 16:07:03 +01:00
Simon Emanuelsson
94f693c4f0 feat: make steps of enter details flow dynamic depending on data 2024-11-18 16:30:09 +01:00
Pontus Dreij
76a93db67e fix(SW-449): Moved normalizeDate outside middleware 2024-11-13 20:59:16 +01:00
Pontus Dreij
a16062a705 fix(SW-449): dateFormat middleware 2024-11-13 08:57:14 +01:00
Erik Tiekstra
953f860e5d fix(SW-663): Fixed leaking of live preview hash and removing preview pages 2024-11-11 07:48:05 +01:00
Erik Tiekstra
bc93fcaefd feat(SW-508): preview for content pages 2024-11-04 14:40:00 +01:00
Michael Zetterberg
4238483889 feat: add utility for getting internal next url 2024-10-17 09:08:04 +02:00
Michael Zetterberg
a53ab5c833 Revert "chore: debug middleware"
This reverts commit b2f0b88cae.

Revert "chore: debug mfa login"

This reverts commit 0f1ce32c4d.

Revert "chore: debug mfa login"

This reverts commit 670778864e.

Revert "chore: debug mfa login"

This reverts commit 5269fcb6c4.
2024-10-17 01:43:10 +02:00
Michael Zetterberg
0f1ce32c4d chore: debug mfa login 2024-10-16 22:41:30 +02:00
Michael Zetterberg
670778864e chore: debug mfa login 2024-10-16 18:47:01 +02:00
Michael Zetterberg
5269fcb6c4 chore: debug mfa login 2024-10-16 16:52:43 +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
Linus Flood
10aa735a2e Refactor 2024-10-14 10:39:53 +02:00
Linus Flood
a8f7c62f59 refactor 2024-10-14 10:36:13 +02:00
Linus Flood
697d571ab2 Fixed expiresAt value depending of cache hit/miss 2024-10-14 10:19:29 +02:00
Linus Flood
a91c8ed928 feat: cms cache 2024-10-14 10:08:26 +02:00
Christel Westerberg
668eedd837 fix: toggle section accordion open 2024-10-08 11:42:06 +02:00
Christel Westerberg
1bb2d3f687 feat(SW-467): add routing for details steps 2024-10-08 11:42:06 +02:00
Simon Emanuelsson
af850c90e7 feat(SW-66, SW-348): search functionality and ui 2024-09-24 09:47:31 +02:00
Simon Emanuelsson
93526ce693 fix: rename retried-wrapped fetch to make caching work again 2024-08-28 14:55:31 +02:00
Michael Zetterberg
efd2e1730c fix: send headers to error rewrites 2024-08-23 09:34:17 +02:00
Michael Zetterberg
a33a69fb58 fix: improve auth handling and logging 2024-08-22 14:07:36 +02:00
Michael Zetterberg
2361ba696d fix: improve auth handling and logging 2024-08-22 07:25:22 +02:00
Christel Westerberg
855713565e feat: handle ecid and loginType params from mobile app 2024-08-21 11:24:44 +02:00
Hrishikesh Vaipurkar
7393347f99 Merged in feat/SW-162-2fa-for-my-profile-forms (pull request #432)
feat(SW-162): Handled netlify domain url issue

Approved-by: Michael Zetterberg
2024-08-21 08:24:25 +00:00
Hrishikesh Vaipurkar
08927bceb9 feat(SW-162): Handled netlify domain url issue 2024-08-21 10:18:43 +02:00
Hrishikesh Vaipurkar
710730a9e9 feat(SW-158): Implemented seamless login in magic link login 2024-08-19 12:02:07 +02:00
Hrishikesh Vaipurkar
84670dbd14 feat(SW-162): Optimized as review comments 2024-08-14 10:44:15 +02:00
Hrishikesh Vaipurkar
51df6bfd34 feat(SW-162): Used token instead of cookie 2024-08-14 10:44:14 +02:00
Hrishikesh Vaipurkar
13ded529cc feat(SW-162): Updated MFA to use basic cookie validation 2024-08-14 10:44:13 +02:00
Hrishikesh Vaipurkar
1040c09147 feat: SW-162 Handled void scenario of isMFAInvalid fn 2024-08-14 10:44:13 +02:00
Hrishikesh Vaipurkar
e264e4d2e2 feat: SW-162 Updated redirect to rewrite reducing unnecessary redirects for user 2024-08-14 10:44:13 +02:00
Hrishikesh Vaipurkar
8ab77a5522 feat: SW-162 Updated as per review comments 2024-08-14 10:44:11 +02:00
Hrishikesh Vaipurkar
dde2b828cb feat: SW-162 MFA for Profile implemented 2024-08-14 10:44:10 +02:00
Michael Zetterberg
71dcf30719 fix: make sure all logged errors are preceeded with a message
Just logging an error makes it difficult to relate the error log to code in the
codebase. Error logging a message right before the error itself makes it easier
to search the codebase for that error log.
2024-07-24 11:32:15 +02:00
Christel Westerberg
92829108be bug: fix rewrites to profile routes for all languages 2024-07-16 07:57:11 +02:00
Niclas Edenvin
d6fe6a33b4 feat(SW-70): create base for rate selection page
This is the foundation for the rate selection. Since we don't have UX
and UI ready yet this is on a best effort basis. Things that will be
changed later includes proper API fetching, correct design,
internationalization of text and form handling.
2024-07-09 13:25:26 +02:00
Chuma McPhoy
bfcef5b832 chore: create a utils/languages file 2024-07-04 15:19:17 +02:00
Fredrik Thorsson
37f4713715 feat: create route for hotel reservation 2024-07-03 10:56:04 +02:00