Commit Graph

44 Commits

Author SHA1 Message Date
Erik Tiekstra
3939bf7cdc feat(SW-664): Hotel listing component and queries for content pages 2024-12-18 12:20:57 +01:00
Christian Andolf
e08e960209 chore: add consistent type imports 2024-12-12 11:47:44 +01:00
Christel Westerberg
94725297d7 fix: revalidate singleton ref tags 2024-12-04 16:51:25 +01:00
Christel Westerberg
d3d72f74c9 fix(SW-976): handle unlocalized entries revalidation 2024-11-27 16:03:26 +01:00
Christel Westerberg
3a6cfcfe5c fix: avoid sending query params to planet 2024-11-21 10:18:36 +01:00
Simon Emanuelsson
c6fc500d9e feat: make steps of enter details flow dynamic depending on data 2024-11-19 08:05:14 +01:00
Tobias Johansson
293800f024 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-19 08:05:14 +01:00
Tobias Johansson
025c5c8291 Merged in feat/SW-659-payment-send-query-params (pull request #727)
feat(SW-659): Receive query params from Planet callbacks

* feat(SW-659): read confirmation number from url and update callback url if dev

* fix(SW-659): moved callback url into env variable


Approved-by: Simon.Emanuelsson
2024-10-23 11:51:44 +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
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
7d53b0b26a fix: "typo" in revalidation logic 2024-09-30 11:49:54 +02:00
Christel Westerberg
947ceb1736 fix: revalidation endpoint for loyalty config 2024-09-27 10:04:24 +02:00
Christel Westerberg
2a5a3126fe fix: refactor OverviewTableClient 2024-09-26 12:07:03 +02:00
Christel Westerberg
56cd02f90b feat(SW-353): dynamic rewards 2024-09-26 11:52:07 +02:00
Simon Emanuelsson
af850c90e7 feat(SW-66, SW-348): search functionality and ui 2024-09-24 09:47:31 +02:00
Pontus Dreij
edbd044a79 feat(SW-334): Added affix to metadata tag and added revalidate tag 2024-09-09 09:28:04 +02:00
Hrishikesh Vaipurkar
a1ee86ea99 feat(SW-237): Cache revalidation support 2024-09-03 14:15:51 +02:00
Michael Zetterberg
a33a69fb58 fix: improve auth handling and logging 2024-08-22 14:07:36 +02:00
Tobias Johansson
e9a6499086 feat(SW-245): Delete credit card 2024-08-21 16:24:39 +02:00
Tobias Johansson
84f5e74f00 Merged in feat/SW-104-add-card (pull request #410)
Feat/SW-104 add card

* feat: add api endpoints for adding and removing credit card

* feat(SW-104): Added Sonner toast lib

* feat(SW-104): Add route handlers for add card flow

* feat(SW-104): Added link to route handler and trigger toast when query params from callback is set

* feat(SW-104): Added translations for add card success toast

* feat(SW-104): Refactored to use client request for initiate save card

* fix(SW-104): Return proper status codes when initiating save card fails

* fix(SW-104): remove delete card endpoint because it was added in SW-245

* fix(SW-104): remove console.log

* fix(SW-104): Use api.post for save card request

* fix(SW-104): move function declaration above export

* fix(SW-104): handle response of save card and use Lang enum

* fix(SW-104): added comment for why setTimeout is needed for toast and also removed lang prop

* fix(SW-104): added type for AddCreditCardButton props

* feat: add toasts

* fix(SW-104): start using toasts from ToastHandler and fix problem with duplicate toasts

* fix(SW-104): remove unnecessary wrapping div


Approved-by: Michael Zetterberg
2024-08-20 15:04:02 +00: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
Simon Emanuelsson
d84efcbb0f feat(WEB-162): final design edit profile page 2024-06-19 14:51:00 +02:00
Simon Emanuelsson
7c4b8401e9 feat(WEB-304): remaning UI from design system primitives 2024-06-13 10:00:16 +02:00
Christel Westerberg
030bac87bd fix: cache revalidation logic for language switcher 2024-06-12 14:41:53 +02:00
Michael Zetterberg
38872567bf chore(debug): envs in edge functions 2024-05-22 12:30:42 +02:00
Michael Zetterberg
13575376b1 chore(debug): envs in edge functions 2024-05-22 11:50:29 +02:00
Michael Zetterberg
eb607abdf9 chore(debug): output request headers in function 2024-05-21 14:03:51 +02:00
Michael Zetterberg
68f1e87169 fix: clean up 2024-05-20 01:10:05 +02:00
Michael Zetterberg
f5108d1a8e feat: improve structure and error handling 2024-05-20 00:51:16 +02:00
Michael Zetterberg
b2c8a2ccaf chore(debug): envs in api functions 2024-05-19 09:21:49 +02:00
Michael Zetterberg
7db829f907 chore(debug): envs in api functions 2024-05-18 09:07:38 +02:00
Michael Zetterberg
11f3928525 chore(debug): envs in api functions 2024-05-17 15:32:01 +02:00
Michael Zetterberg
62a8374144 chore(debug): envs in api functions 2024-05-17 15:16:51 +02:00
Michael Zetterberg
53ffe519cd chore(debug): envs in api functions 2024-05-17 14:24:15 +02:00
Michael Zetterberg
938200128f chore(debug): envs in api functions 2024-05-17 10:57:45 +02:00
Simon Emanuelsson
0c4aa592cc feat: revalidate my pages breadcrumbs on demand 2024-05-06 15:13:41 +02:00
Simon Emanuelsson
1bffbc837e feat(WEB-209): revalidate my pages navigation on demand 2024-05-06 13:44:22 +02:00
Michael Zetterberg
f9fbeadbb7 chore(debug): next-auth url 2024-04-28 08:00:40 +02:00
Michael Zetterberg
14e93eba7c chore: lint fix 2024-04-23 14:43:17 +02:00
Michael Zetterberg
41c29efd82 chore: move /api to /api/web 2024-04-16 11:11:48 +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
Arvid Norlin
70f9c22410 feat: add login and print user object on my-pages 2024-03-14 11:02:36 +01:00
Simon Emanuelsson
bac98b4510 fix: change tag to tags for revalidation 2024-03-06 14:29:13 +01:00
Simon Emanuelsson
f6f4e6edb4 feat(WEB-104): add on-demand revalidation for cache 2024-02-22 16:41:39 +01:00