fix(LOY-391): uses transaction date if checkinDate does not exist
* fix(LOY-391): uses transaction date if checkinDate does not exist
* fix(LOY-391): changed date to datejs and fixed description for reward night and reward gift
* fix(LOY-391):use year transaction date
* fix(LOY-391): fixed date timezone and dt() instead of datejs()
* fix(LOY-391): small improv with year
* fix(LOY-391): utc fix
* fix(LOY-391): changed sorting order on transaction date
* fix(LOY-391): filter out transactions with 0 award points
Approved-by: Joakim Jäderberg
Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation
* Remove all REFS
* Revalidate correct language
* PR fixes
* PR fixes
* Throw when errors from contentstack api
Approved-by: Joakim Jäderberg
Feat/LOY-391 my points transactions table design
* feat(LOY-391): Added new design to point transaction table
* fix(LOY-391): rebase fix
* fix(LOY-391): fix
* fix(LOY-391): fix
* fix(LOY-391): fixed sticky header etc.
* feat(LOY-391): added focus on the newest loaded item in the list
* fix(LOY-391): cleaned up
* fix(LOY-391): style fix
* fix(LOY-391): fixed PR-comments, types, removed the old files for earn and burn table
* fix(LOY-391): fixed PR-comments
* feat(LOY-391): added useCallback so scrolling is avoided when clicking see all on expiring points
Approved-by: Anton Gunnarsson
Approved-by: Matilda Landström
fix(SW-3616): Handle EuroBonus point type everywhere
* Add tests to formatPrice
* formatPrice
* More work replacing config with api points type
* More work replacing config with api points type
* More fixing with currency
* maybe actually fixed it
* Fix MyStay
* Clean up
* Fix comments
* Merge branch 'master' into fix/refactor-currency-display
* Fix calculateTotalPrice for EB points + SF points + cash
Approved-by: Joakim Jäderberg
* feat(BOOK-463): Fetching hotel filters from CMS and using these inside the destination pages
* fix(BOOK-698): fetch hotel filters from CMS on select hotel page
Approved-by: Bianca Widstam
Feature/SW-3616 partner points my stay
* feat(SW-3616): display partner points in my stays
* null check roomPointType
* Lowercase POINTS in my stay
* include other than Scandic points when displaying price details modal
Approved-by: Anton Gunnarsson
Include more details when throwing errors for debugging in Sentry
* WIP throw errors with more details for debugging in Sentry
* Fix throwing response-data
* Clearer message when a response fails
* Add message to errors
* better typings
* .
* Try to send profileID and membershipNumber to Sentry when we fail to parse the apiResponse
* rename notFound -> notFoundError
* Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/add-error-details-for-sentry
Approved-by: Linus Flood
Fix/BOOK-257 video player
* fix(BOOK-257): Fixes to VideoPlayerButton and added stories
* fix(BOOK-257): Hiding mute button when the user has interacted with it
* fix(BOOK-257): Added support for poster image
* fix(BOOK-257): add crossOrigin attr to videoplayer
* fix(BOOK-257): comment
Approved-by: Anton Gunnarsson
Fix/STAY-135 & STAY-127
* fix: make quantity and delivery separate steps in mobile
* fix: update design for delivery step in ancillary flow
* fix: add error state for missing time
* fix: only allow points or cash payment for ancillaries
* fix: break out stepper to design system
* fix: update design of select quantity step in add ancillaries flow
* fix: add error states for quantity
* fix: handle insufficient points case
* fix: update stepper to include optional disabledMessage tooltip
* fix: handle validations
* fix: change name to camel case
Approved-by: Bianca Widstam
Approved-by: Chuma Mcphoy (We Ahead)
* fix(BOOK-607): updated to read from base URL env and contentstack slug instead
* made url optional on interface
* added url to findBooking query
* added the correct (new) link in the confirmation header, add to calendar
Approved-by: Erik Tiekstra
* fix(BOOK-240): Added support for multiple sources and fixed issue with play/pause on mobile
* fix(BOOK-240): Pausing hero video when scrolling out of view
Approved-by: Christel Westerberg
fix(BOOK-672): remove unused relationsships that threw when missing
* fix(BOOK-672): remove unused relationsships that threw when missing
Approved-by: Linus Flood
* feat(BOOK-257): Added VideoPlayer with card component
* feat(BOOK-257): Added queries and component for VideoCard block to Content and Collection pages
* fix(BOOK-257): Only setting object-fit: cover on the video if it is not fullscreen
* feat(BOOK-257): Added queries and component for VideoCard block to Startpage
* feat(BOOK-257): Added queries and component for Video block to content/collection/start page
Approved-by: Chuma Mcphoy (We Ahead)
Counter name is now searchable and add counter for redirects
* refactor: createCounter() only takes one argument, the name of the counter. Makes it easier to search for
* feat: add counter when we do a redirect from redirect-service
Approved-by: Linus Flood
Feat/LOY-430 reward nights
* chore(LOY-430): add reward nights request and dynamic content
* chore(LOY-430): fix Reward Night component
* Refactor: use existing endpoint and add rewardNight data to that response instead
Approved-by: Linus Flood
fix: fix logic for identifying single use ancillaries
* fix: fix logic for identifying single use ancillaries
* fix: filter out empty categories of ancillaries
Approved-by: Erik Tiekstra
feat(BOOK-639): add all block types on startpage to refs cache key
* feat(BOOK-639): add all block types on startpage to refs cache key
Approved-by: Erik Tiekstra
Approved-by: Matilda Landström
fix(LOY-400): made contentstack data optional so the whole page does not crash if it's empty.
* fix(LOY-400): made contentstack data optional so the whole page does not crash if it's empty.
* Merged in fix/LOY-400-make-contentstack-data-optional-2 (pull request #3269)
Fix/LOY-400 make contentstack data optional 2
* Test
* .
* Correct ref tag
* refactor
* Correct key
* fix(LOY-400): cleaned up
Approved-by: Linus Flood
Approved-by: Matilda Landström
Chore/remove enrichHotel call
* chore: remove enrichHotel api call
* include cityId when errors happen
* remove unused funciton and cleanup code
* tests no longer expect us to have called a function that is not used
* remove commented code
Approved-by: Linus Flood
Feat/LOY-400 create spend points modal
* feat(LOY-400): Added custom button to my pages overview and skeleton file to custom modal for my points.
* feat(LOY-400): Added custom button to my pages overview and components for custom modal for my points.
* feat(LOY-400): Changed some style and infogridcardover
* feat(LOY-400):Removed custom card components and changed in infoCard: Added imagePosition top, added optional height prop. In Card: Changed Text-wrap styling, added min-width styling to buttons, added optional Icon prop, added optional height prop
* feat(LOY-400):Added linkList, LinkListItem component and messageBanner component. Added granola illustration.
* feat(LOY-400): Removed background in several illustrations. Added component for illustration. Fixed LinkedList and styling for UsePointsButton.
* feat(LOY-400): Added modal to PointsToSpendCard and fixed UsePointsButton.
* fix(LOY-400):added some styling
* feat(LOY-400): Linked Modal to contentstack and fetch the data in cards with UsePointsModal for now
* feat(LOY-400): changed link to aria-component, cleaned up a bit
* feat(LOY-400): Changed height for larger modals in mobile, fixed zod schema for no illustration input, cleaned up
* fix(LOY-400): fixed graphql after rebase
* fix(LOY-400): mini fix
* fix(LOY-400): fixed pr-comments
* fix(LOY-400): fixed some PR-comments
* fix(LOY-400): fixed a PR-comment
* feat(LOY-400): added size prop to ilustration in LinkListItem to be able to use illustrations in IllustrationByIconName
* fix(LOY-400): fixed pr-comments
* Merged in feat/LOY-402-pre-ticked-book-reward-night-in-booking-flow (pull request #3210)
Feat/LOY-402 pre ticked book reward night in booking flow
* feat(LOY-402): Changed UsePointsModal structure to handle button actions in card.
* feat(LOY-402): added functionality for book now button
* feat(LOY-400): pr comment fix
* feat(LOY-402): transformed the contentstack data
* fix(LOY-402): fixed pr comments
Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Anton Gunnarsson
Approved-by: Matilda Landström
* Merged in feat/LOY-404-add-tracking-for-spend-points-modal (pull request #3229)
Feat/LOY-404 add tracking for spend points modal
* feat(LOY-402): Changed UsePointsModal structure to handle button actions in card.
* feat(LOY-402): added functionality for book now button
* feat(LOY-400): pr comment fix
* feat(LOY-402): transformed the contentstack data
* feat(LOY-404): added tracking
* fix(LOY-404): fix for session storage removal of bookNowFromPointsModal
* feat(LOY-404): added consts
* fix(LOY-404): moved foxusWidget const
* fix(LOY-404): moved BOOKING_WIDGET_STATE const
* fix(LOY-404):fix
Approved-by: Matilda Landström
* fix(LOY-400): some fixes
* feat(LOY-400): created linkList storybook
Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Matilda Landström
Feat/LOY-431: Switch to V2 of Profile endpoint
* feat(LOY-431): switch to v2 of profile endpoint
* feat(LOY-431): use CreditCard
* feat(LOY-431): remove hotelinformation from friendTransaction schema
* chore(LOY-431): add hotel data request to transactions
* fix(LOY-431): use v1 of friendTransactions
Approved-by: Linus Flood
Approved-by: Erik Tiekstra
Approved-by: Anton Gunnarsson
Feat/LOY-486 consent prompt date
* chore(LOY-486): update name on date
* chore(LOY-486): open links in new tab
* chore(LOY-486): send prompt date + refactor modal
* chore(LOY-486): update README
Approved-by: Chuma Mcphoy (We Ahead)
fix: improve error messages in find my booking flow
* fix: improve error messages in find my booking flow
Approved-by: Linus Flood
Approved-by: Erik Tiekstra
feat(booking): remove fetching of user just for logging
* feat(booking): remove fetching of user just for logging
Approved-by: Joakim Jäderberg
Approved-by: Matilda Landström