Commit Graph

41 Commits

Author SHA1 Message Date
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
Linus Flood
3982b1ba56 Merged in feat/sentry (pull request #1089) 2024-12-19 10:35:20 +00:00
Chuma McPhoy
6958db3ca5 refactor(SW-898): replace signup server action with TRPC 2024-11-19 15:45:00 +01:00
Simon Emanuelsson
62f549e85d feat: get breakfast package from API 2024-10-29 15:39:21 +01:00
Michael Zetterberg
7bbb8915b3 fix: improve error handling
- Do not throw in onError callback for server client. This lets the originating error bubble to Next.js.
- Do not log errors inside the service token procedure, server client onError callback will log all procedure errors.
- Log errors for fetching service token failure.
2024-10-11 10:42:40 +02:00
Chuma McPhoy
87fb4d79dd fix(SW-360): service procedure update + contentyp layout fix 2024-10-10 09:37:38 +02:00
Chuma McPhoy
aa20a803d0 fix(SW-360): better handleSubmit error handling 2024-10-10 08:59:33 +02:00
Chuma McPhoy
9ee53fd94a feat(SW-360): include signup form as a dynamic content 2024-10-10 08:59:33 +02:00
Tobias Johansson
e086857072 feat(SW-360): Added register form with server action 2024-10-10 08:59:33 +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
Christel Westerberg
2ea0adbf98 fix: handle cache tags for service tokens 2024-10-09 16:46:53 +02:00
Tobias Johansson
4103e3fb37 Merged in feat/SW-431-payment-flow (pull request #635)
Feat/SW-431 payment flow

* feat(SW-431): Update mock hotel data

* feat(SW-431): Added route handler and trpc routes

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

* feat(SW-431): Updated booking page to poll for booking status

* feat(SW-431): Updated create booking contract

* feat(SW-431): small fix

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

* fix(SW-431): Changes from PR

* fix(SW-431): fixes from PR

* fix(SW-431): add todo comments

* fix(SW-431): update schema prop


Approved-by: Simon.Emanuelsson
2024-10-04 09:37:09 +00:00
Christel Westerberg
56cd02f90b feat(SW-353): dynamic rewards 2024-09-26 11:52:07 +02:00
Pontus Dreij
efb8d278cd fix(sw-398): moved logic for disable scroll in mobile and fixed issue that page is scrolling when toggling languageswitcher 2024-09-18 12:41:40 +02:00
Erik Tiekstra
7fd2fd7ec6 feat(SW-159): merged contentstack and api requests for hotel query 2024-08-30 07:55:46 +02:00
Christel Westerberg
ae123810a6 fix: handle pages without uid for metadata 2024-08-23 09:38:13 +02:00
Michael Zetterberg
149e97fa34 Merged in fix/headers-for-errors (pull request #466)
fix: send headers to error rewrites

Approved-by: Arvid Norlin
2024-08-23 07:35:09 +00:00
Michael Zetterberg
efd2e1730c fix: send headers to error rewrites 2024-08-23 09:34:17 +02:00
Simon Emanuelsson
2337d37f1a feat(SW-160): update profile 2024-08-23 09:09:55 +02:00
Chuma McPhoy
ed379202c8 refactor(SW-188): replace anon or auth procedure with serviceProcedure 2024-08-21 10:31:52 +02:00
Chuma McPhoy
1ff6cd267d feat: update getHotel to use real hotel api endpoint, support for service tokens, type modifications 2024-08-21 10:31:52 +02:00
Christel Westerberg
da343f45da feat: new "safe" procedure without unauth throwing 2024-07-08 14:56:11 +02:00
Niclas Edenvin
404b1b38cb Remove debug logging 2024-06-28 14:17:38 +02:00
Michael Zetterberg
68df666487 fix: add ctx to trpc error output. 2024-06-26 07:17:07 +02:00
Christel Westerberg
74f875d30b fix: refactor lang handling in contentstack base procedure 2024-06-18 16:51:06 +02:00
Christel Westerberg
16ee1bf493 fix: return baseUrls if no uid is given to language switcher query 2024-06-14 07:57:35 +02:00
Simon Emanuelsson
7c4b8401e9 feat(WEB-304): remaning UI from design system primitives 2024-06-13 10:00:16 +02:00
Christel Westerberg
07f81c34e3 fix: refactor session handling 2024-05-28 15:05:16 +02:00
Christel Westerberg
c36578a83f Fix: break out pages to dynamic route 2024-05-28 08:30:20 +02:00
Christel Westerberg
bac513ec4c fix: add headers correctly 2024-05-28 08:30:20 +02:00
Christel Westerberg
9e4f41ee46 fix: redirect users to /refresh on unauth and mod webview links 2024-05-28 08:29:52 +02:00
Christel Westerberg
b58b5f368d fix: refactor navigation of webview pages and add redirect to refresh 2024-05-28 08:29:20 +02:00
Christel Westerberg
d07826b2a3 fix: get access token from headers 2024-05-28 08:29:20 +02:00
Michael Zetterberg
476e9f7582 fix(auth): make things work 2024-05-20 09:10:20 +02:00
Simon Emanuelsson
c4912bbb94 feat(WEB-215): add refresh_token 2024-05-20 02:43:59 +02:00
Michael Zetterberg
f5108d1a8e feat: improve structure and error handling 2024-05-20 00:51:16 +02:00
Christel Westerberg
d9f1470eb7 refactor: zod validation and pr comments 2024-04-29 14:31:30 +02:00
Simon Emanuelsson
55794034c5 feat(WEB-169): get profile data from API 2024-04-18 13:53:49 +02:00
Michael Zetterberg
7093a0b2dd feat(WEB-132): add middlewares, support for seamless login and improve lang based routes 2024-04-10 11:23:38 +02:00
Simon Emanuelsson
ec4da5798b feat(WEB-127): add trpc to handle requests both serverside and clientside 2024-03-27 11:56:06 +01:00