Commit Graph

31 Commits

Author SHA1 Message Date
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