Commit Graph
25 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
Tobias Johansson 869c9b67b8 Merged in feat/SW-475-enter-details-header (pull request #630)
Feat/SW-475 enter details header

* feat(SW-475): updated hotel mock data to reflect api

* feat(SW-475): Added hotel selection header with sidepeek buttons

* fix(SW-475): fixes from PR

* fix(SW-475): changed intl string


Approved-by: Arvid Norlin
2024-10-03 07:42:26 +00:00
Tobias Johansson 5cfbd8e70d fix: change procedure for booking widget toggle call to not require cms uid 2024-09-16 15:15:55 +02:00
Tobias JohanssonandErik Tiekstra 4cc325f54c fix: wrong prop name 2024-09-12 10:12:43 +02:00
Tobias Johansson fd9d6d5a1c fix: wrong prop name 2024-09-05 11:38:13 +02:00
Tobias Johansson 238de4cd3a Merged in feat/CJ-17-points-expiration-table (pull request #527)
Feat/CJ-17 points expiration table

* feat(CJ-17): Added point expiration table and refactored to use Table component

* feat(CJ-17): Use Table component inside Row

* fix(CJ-117): Added missing css class and update date formatting

* fix(CJ-117): Added copy of membershipLevel route with a protectedProcedure


Approved-by: Christel Westerberg
2024-09-05 09:28:25 +00:00
Tobias Johansson bc3233ff64 Merged in feat/SW-196-design-fixes (pull request #547)
Feat/SW-196 design fixes

* feat(SW-196): Updated copy My credit cards -> My payment cards

* fix: update design system version

* feat(SW-196): Update Header component to use Preamble instead of Subtitle

* feat(SW-196): Minor design fixes


Approved-by: Christel Westerberg
2024-09-03 08:43:13 +00:00
Tobias Johansson c0b16e8dee Merged in feat/SW-212-copy-to-clipboard-feedback (pull request #548)
Feat/SW-212 copy to clipboard feedback

* feat(SW-212): Added toast to give feedback when copying member id

* feat(SW-212): Update copy

* feat(SW-212): Changed to use success toast and updated copy

* fix: update copy in toast for copying membership ID


Approved-by: Christel Westerberg
Approved-by: Matilda Landström
2024-09-02 13:49:10 +00:00
Tobias JohanssonandMichael Zetterberg d3b21b8e9c Merged in fix/wrong-firstname-link (pull request #517)
fix: wrong link in top menu when clicking first name

Approved-by: Michael Zetterberg
2024-08-27 10:20:00 +00:00
Tobias JohanssonandMichael Zetterberg 0c795694a4 Merged in fix/name-alignment (pull request #519)
fix: issue with name not being center aligned

Approved-by: Michael Zetterberg
2024-08-27 10:19:06 +00:00
Tobias Johansson e092631c4d fix: issue with name not being center aligned 2024-08-27 11:40:51 +02:00
Tobias Johansson cd3d805bf0 fix: wrong link in top menu when clicking first name 2024-08-27 11:09:21 +02:00
Tobias JohanssonandMichael Zetterberg e733ce283a Merged in fix/revert-filtering-of-rewardnights (pull request #477)
fix: revert back filtering of reward nights with operaId ORS

Approved-by: Michael Zetterberg
2024-08-23 11:01:57 +00:00
Tobias Johansson b3ba4edd69 fix: revert back filtering of reward nights with operaId ORS 2024-08-23 12:49:59 +02:00
Tobias JohanssonandMichael Zetterberg 68be3275cf Merged in fix/hide-booking-link-in-webview (pull request #474)
fix: hide clickable booking url in webview

Approved-by: Michael Zetterberg
2024-08-23 10:45:20 +00:00
Tobias JohanssonandMichael Zetterberg 76663cc2f8 Merged in fix/toast-triggering (pull request #475)
fix: issue with toasts not triggering on page load and fix padding issue

Approved-by: Michael Zetterberg
2024-08-23 10:44:35 +00:00
Tobias Johansson fb581ad489 fix: hide clickable booking url in webview 2024-08-23 11:01:07 +02:00
Tobias Johansson 8c26d0c238 fix: issue with toasts not triggering on page load and fix padding issue 2024-08-23 10:59:35 +02:00
Tobias JohanssonandMichael Zetterberg dbb55c3d33 Merged in feat/SW-165-fix (pull request #467)
fix(SW-165): fix issue with pagination now showing

Approved-by: Michael Zetterberg
2024-08-23 07:35:30 +00:00
Tobias Johansson 88a23c590d fix(SW-165): fix issue with pagination now showing 2024-08-23 09:07:10 +02:00
Tobias Johansson 159114a082 Merged in feat/SW-165-fixes (pull request #460)
Feat/SW-165 fixes

* fix(SW-165): update translations for reward labels

* fix(SW-165): Fix sorting and filtering of transactions and hide fields when BALFWD

* fix(SW-165): update condition


Approved-by: Michael Zetterberg
2024-08-22 14:34:55 +00:00
Tobias JohanssonandMichael Zetterberg e0459eb2a8 Merged in feat/SW-245-delete-card (pull request #407)
Feat/SW-245 delete card

Approved-by: Michael Zetterberg
Approved-by: Christel Westerberg
2024-08-21 14:26:11 +00:00
Tobias JohanssonandMichael Zetterberg e9a6499086 feat(SW-245): Delete credit card 2024-08-21 16:24:39 +02:00
Tobias Johansson 1ec1033267 Merged in feat/SW-165-correct-labels (pull request #427)
Feat/SW-165 correct labels

* feat(SW-165): sort friend transactions and return additional properties

* feat(SW-165): Added points being calculated label

* feat(SW-165): added transactionDate for transactions without checkinDate

* feat(SW-165): Updated description copy for various reward types

* feat(SW-165): filter out expired transactions

* feat(SW-165): removed Mobile table and unified them into Table instead

* feat(SW-165): Added bookingUrl to friend transactions

* fix(SW-165): style fixes

* fix(SW-165): fix issues from merge

* fix(SW-165): remove comment

* fix(SW-165): fixed booking urls not being set and smaller fixes

* fix(SW-165): added comment regarding 'BALFWD'


Approved-by: Michael Zetterberg
Approved-by: Christel Westerberg
2024-08-21 13:54:55 +00: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