Commit Graph

195 Commits

Author SHA1 Message Date
Chuma McPhoy
400c0b48e4 refactor(SW-188): reintroduce tempHotelData 2024-08-21 10:31:52 +02:00
Chuma McPhoy
bd5e754d8a fix(SW-188): forAllergics typo 2024-08-21 10:31:52 +02:00
Chuma McPhoy
3a2a58a9ca fix(SW-188): improve semantics, use hotel instead of attribute naming 2024-08-21 10:31:52 +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
a1a0a73e3a chore: use correct env var in fetch service token function 2024-08-21 10:31:52 +02:00
Chuma McPhoy
5d6fac63c1 chore: remove temp hotel data json 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
Arvid Norlin
f96712538e refactor: implement trpc client pattern for EarnAndBurn Journey 2024-08-21 09:44:28 +02:00
Arvid Norlin
1bcd3b81e1 chore: move totalPages to meta 2024-08-21 09:44:28 +02:00
Arvid Norlin
8c75b9bcd7 wip: initial stab trpc pagination 2024-08-21 09:44:25 +02:00
Arvid Norlin
6f293be3a7 feat(SW-164): Add pagination for friendship transactions 2024-08-21 09:43:51 +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
Niclas Edenvin
819ac454b0 Merged in feature/refresh-token (pull request #401)
feat: SW-101 Proactively refresh tokens

Approved-by: Michael Zetterberg
2024-08-16 13:56:09 +00:00
Michael Zetterberg
bc84122a40 fix(SW-236): properly handle expired token in webviews
Trying out a new pattern for errors in data fetching.

Next.js is not a fan of throwing errors. Instead it recommends returning
different shapes for each state. Ref:
https://nextjs.org/docs/app/building-your-application/routing/error-handling#handling-expected-errors-from-server-components

It requires some more detailing and a bit more refactoring in non webview part,
but it is a start. This webview specific implementation should not break web.
2024-08-13 16:54:33 +02:00
Simon.Emanuelsson
9796ff29c5 Merged in feat/SW-207 (pull request #386)
feat(SW-207): add expiring points and date when they will expire

Approved-by: Michael Zetterberg
2024-08-07 08:53:48 +00:00
Simon Emanuelsson
be620f18ba feat(SW-207): add expiring points and date when they will expire 2024-08-06 15:59:40 +02:00
Fredrik Thorsson
75011dffe5 feat: schema change 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
798d19d3c8 feat: filter route changes 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
c7bef7d1cf feat: css and syntax changes 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
a48019a6a0 feat: pass filters as prop 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
ebfe4d45dc feat: add router for filters 2024-08-06 13:12:22 +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
2457314003 fix: cleanup title before tracking it 2024-07-17 15:01:36 +02:00
Christel Westerberg
d8f7e4157a fix: add correct properties to tracking 2024-07-16 10:39:22 +02:00
Christel Westerberg
183e1cd6d2 fix: refactor tracking requests 2024-07-15 13:35:36 +02:00
Christel Westerberg
73cea4ba51 fix: add channel and pageType 2024-07-15 13:35:36 +02:00
Christel Westerberg
c96008fb78 fix: track user on page load 2024-07-15 13:35:36 +02:00
Christel Westerberg
546679387f feat: add tracking to account pages 2024-07-15 13:35:36 +02:00
Christel Westerberg
a8a67d5e35 feat: add tracking events for loyalty pages 2024-07-15 13:35:36 +02:00
Matilda Landström
801a041404 Merged in feat/best-friend-hero (pull request #338)
Feat(SW-170): Update overview hero

Approved-by: Christel Westerberg
2024-07-12 06:45:44 +00:00
Christel Westerberg
c1892ace66 Merged develop into fix/friends-transaktions 2024-07-11 13:29:38 +00:00
Christel Westerberg
9ede5e4210 fix: remove pagination from friends endpoints since it is no longer supported 2024-07-11 15:00:46 +02:00
Chuma McPhoy
0697c8d9ef feat: add included param to hotel call, fetch room data, setup schema, use in hotelpage 2024-07-10 18:55:22 +02:00
Hrishikesh Vaipurkar
15b9523611 feat: WEB-210 Update env path & try catch handling 2024-07-10 11:37:31 +02:00
Hrishikesh Vaipurkar
88a7f57349 feat: WEB-210 Fallback booking URL if encryption fails 2024-07-10 11:37:31 +02:00
Hrishikesh Vaipurkar
eb4cfcce3a feat: WEB-210 Updated encryption to concat buffers instead of result 2024-07-10 11:37:30 +02:00
Hrishikesh Vaipurkar
3f69eda17f feat: WEB-210 Updated lang type 2024-07-10 11:37:30 +02:00
Hrishikesh Vaipurkar
1f53b29a69 feat: WEB-210 Updated .map to avoid mutation 2024-07-10 11:37:30 +02:00
Hrishikesh Vaipurkar
cbd634144e feat: WEB-210 Updated types as review comments 2024-07-10 11:37:29 +02:00
Hrishikesh Vaipurkar
d33e038703 feat: WEB-210 Updated as per review comments 2024-07-10 11:37:29 +02:00
Hrishikesh Vaipurkar
c018dc8ce0 feat: WEB-210 Removed unnecessary env changes and logs 2024-07-10 11:37:28 +02:00
Hrishikesh Vaipurkar
83cb76be65 feat: WEB-210 Fixed API response 2024-07-10 11:37:28 +02:00
Hrishikesh Vaipurkar
b5636774ef feat: WEB-210 Updated nexjs plugin 2024-07-10 11:37:26 +02:00
Hrishikesh Vaipurkar
fd64ffadb9 feat: WEB-210 Testing logs for node_options 2024-07-10 11:37:26 +02:00
Hrishikesh Vaipurkar
714d0d91f0 feat: WEB-210 Replaced custom env with process.env 2024-07-10 11:37:26 +02:00
Hrishikesh Vaipurkar
b57860ddfe feat: (Web-210) Added encryption for my-booking Urls 2024-07-10 11:37:25 +02:00
Niclas Edenvin
722bab97ad feat(SW-70): Create TRPC route to get rates 2024-07-09 13:25:26 +02:00
Chuma Mcphoy (We Ahead)
0f0678e829 Merged develop into feat/hotel-pages-intro-section 2024-07-08 15:55:01 +00:00
Christel Westerberg
da343f45da feat: new "safe" procedure without unauth throwing 2024-07-08 14:56:11 +02:00
Chuma McPhoy
57b424819a fix: return attributes from hotel router 2024-07-08 12:53:12 +02:00