Commit Graph
100 Commits
Author SHA1 Message Date
Christian Andolf 7359ab4afd feat(LOY-195): digital team member card button on my pages overview 2025-05-06 14:46:12 +02:00
Christian Andolf f681fa7675 Merged in chore/replace-corner-radius-variable-with-new (pull request #1943)
chore: replace old border-radius variables with new tokens

Approved-by: Erik Tiekstra
2025-05-05 11:24:48 +00:00
Christian Andolf 3bcf6cff4a Merged in chore/remove-useless-color-attr (pull request #1944)
chore: remove useless color attributes on html elements

Approved-by: Erik Tiekstra
2025-05-05 10:49:14 +00:00
Christian Andolf 5da16ed10a chore: remove useless color attributes on html elements 2025-05-05 11:40:10 +02:00
Christian Andolf d6b70edfa3 chore: replace old border-radius variables with new tokens 2025-05-05 11:11:37 +02:00
Christian Andolf 17b0d53e4f Merged in fix/use-link-component-content-card (pull request #1899)
fix: use link component for all types of links to add proper styling to set text decoration none when external

Approved-by: Chuma Mcphoy (We Ahead)
2025-05-05 08:24:16 +00:00
Christian Andolf 244560cfac fix: use link component for all types of links to add proper styling to set text decoration none when external 2025-05-05 09:20:07 +02:00
Christian AndolfandNiclas Edenvin 43bdd80dff Merged in fix/SW-2508-new-api-cancel-booking-contract (pull request #1906)
Ending up doing some extra things:

Consolidated booking queries: We had both cancel and cancelMany, but functionally they’re the same, only one accepts an array and the other doesn’t. Didn’t see much point in keeping the single cancel as it wasn’t used anywhere. Thus, I could rename cancelMany to be the one stop method.

remove method for API now properly supports body so we don’t have to hijack the typing in certain places

* fix(SW-2508): now sending additional params to cancel api for new contract


Approved-by: Niclas Edenvin
2025-05-02 07:37:23 +00:00
Christian AndolfandMichael Zetterberg 0cd2e9c89f fix(SW-2463): scroll to payment error 2025-05-02 06:37:37 +00:00
Christian Andolf 5f836b0c82 Merged in fix/prevent-jump-when-hover-card (pull request #1889)
fix: prevent jumping layout when hovering card

Approved-by: Erik Tiekstra
2025-04-29 07:42:45 +00:00
Christian Andolf ffafdd24d1 Merged in fix/reduce-amount-of-section-elements (pull request #1883)
fix: reduce the amount of section elements being used since most have no headers connected to them

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-29 07:03:37 +00:00
Christian Andolf 2bdc49b32d Merged in fix/invalid-svg-values-jsx (pull request #1885)
fix: update incorrect attributes on svg in jsx

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-29 07:02:59 +00:00
Christian Andolf 49feab6c89 Merged in fix/cleanup-ts-stays-components (pull request #1884)
fix: make proper use of type predicates and minor cleanup to avoid double ternary and reduce computation

Approved-by: Erik Tiekstra
2025-04-29 07:02:31 +00:00
Christian Andolf 8501a12f8f fix: prevent jumping layout when hovering card 2025-04-28 16:41:50 +02:00
Christian Andolf 95e09968ca fix: update incorrect attributes on svg in jsx 2025-04-28 15:07:55 +02:00
Christian Andolf 8ed74f08a4 fix: make proper use of type predicates and minor cleanup to avoid double ternary and reduce computation 2025-04-28 15:00:38 +02:00
Christian Andolf 32e95fcbbd fix: reduce the amount of section elements being used since most have no headers connected to them 2025-04-28 14:56:02 +02:00
Christian Andolf 265cecc22a Merged in fix/points-color-bug (pull request #1881)
fix: text color on points is now correct when revisiting the page

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-28 12:49:02 +00:00
Christian Andolf 05fab4d2f6 fix: text color on points is now correct when revisiting the page 2025-04-28 14:33:03 +02:00
Christian Andolf edc4f0c016 Merged in fix/email-type-input (pull request #1878)
fix: change input type to email

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-28 12:26:53 +00:00
Christian Andolf e5f1342e77 fix: change input type to email 2025-04-28 12:56:08 +02:00
Christian Andolf 055f9ab139 Merged in fix/remove-useless-check (pull request #1844)
fix: remove useless check since cmsreward is always defined

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-24 09:41:28 +00:00
Christian Andolf f17c8005d4 fix: remove useless check since cmsreward is always defined 2025-04-24 10:14:52 +02:00
Christian Andolf 652023fac3 Merged in fix/SW-2476-country-select-controlled (pull request #1839)
fix(SW-2476): turn country select into a controlled component again

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-22 12:40:02 +00:00
Christian Andolf 3df28f950e fix(SW-2476): turn country select into a controlled component again 2025-04-22 14:01:43 +02:00
Christian Andolf 2fadf71a58 Merged in fix/add-data-testid-to-date-selects (pull request #1838)
fix: add back data-testid attributes to date selects

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-22 11:53:15 +00:00
Christian Andolf 3181579d38 fix: add back data-testid attributes to date selects 2025-04-22 13:44:42 +02:00
Christian Andolf 281efd0df5 Merged in fix/dont-request-cms-with-no-reward-ids (pull request #1836)
fix: dont request cms rewards if we have no reward ids

Approved-by: Linus Flood
2025-04-22 09:18:48 +00:00
Christian Andolf 55b255d36b fix: dont request cms rewards if we have no reward ids
fixes a cache issue since we have no keys to cache on
2025-04-22 10:55:04 +02:00
Christian Andolf e62e87e306 Merged in feat/LOY-169-use-new-country-select (pull request #1832)
feat(LOY-169): use new filter select for country select

Approved-by: Erik Tiekstra
2025-04-22 07:14:06 +00:00
Christian Andolf c773dc3dfc feat(LOY-169): use new filter select for country select
standardised colors on error messages

fixed error validation on date field

removed duplicates in country list
2025-04-22 08:48:34 +02:00
Christian Andolf 3ce3063973 Merged in fix/restore-generated-id-inputs (pull request #1829)
fix: restore generated id for inputs

Approved-by: Arvid Norlin
2025-04-17 07:03:43 +00:00
Christian Andolf b52e1b0629 fix: restore generated id for inputs
really this shouldn't be needed but in multiple cases we're passing the field name as id which causes multiple labels to use the same for value. really we should just omit this prop unless necessary so we don't need to generate it like this.
2025-04-16 17:31:14 +02:00
Christian Andolf 4076f8d6d8 Merged in fix/deprecated-motion-instantiate (pull request #1825)
fix: now using the correct method to instantiate motion since its constructor is deprecated in favor of the create method

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-16 12:54:21 +00:00
Christian Andolf c23121fceb Merged in fix/booking-code-error-messages (pull request #1824)
fix: booking code and reward night messages are now displayed correctly

Approved-by: Michael Zetterberg
2025-04-16 12:16:46 +00:00
Christian Andolf 8a9107cdf2 fix: now using the correct method to instantiate motion since its constructor is deprecated in favor of the create method 2025-04-16 14:11:24 +02:00
Christian Andolf b252c8be2d fix: booking code and reward night messages are now displayed correctly
also fixed an incorrect css value
2025-04-16 14:07:28 +02:00
Christian AndolfandMichael Zetterberg 27f5ca9851 fix(SW-2385): use booking widget error constants in component 2025-04-16 10:17:17 +00:00
Christian AndolfandMichael Zetterberg e544feaa36 fix(SW-2385): add booking widget error messages 2025-04-16 10:17:17 +00:00
Christian AndolfandMichael Zetterberg 595eb575d7 fix(SW-2385): handle error messages provided from zod validation in forms client side 2025-04-16 10:17:17 +00:00
Christian Andolf 6028080e5b Merged in fix/SW-1970-focusable-input-ios-safari (pull request #1796)
fix(SW-1970): focusable inputs on safari ios

Approved-by: Michael Zetterberg
2025-04-16 07:39:37 +00:00
Christian Andolf 563567716b fix(SW-1970): focusable inputs on safari ios
some cleanup and non-interactive label texts in inputs
2025-04-16 09:16:37 +02:00
Christian Andolf 65a3e3fc58 Merged in feat/SW-1509-new-select-usage-in-forms (pull request #1787)
feat(SW-1509): simplified date of birth component to work with new select

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-15 14:18:04 +00:00
Christian Andolf af918ac442 fix(SW-1509): fix default selected key by using initial parsed user values and not the re-rendered ones 2025-04-15 13:14:33 +02:00
Christian Andolf e04342110a feat(SW-1509): simplified date of birth component to work with new select
added animated labels to new select
2025-04-15 13:14:33 +02:00
Christian Andolf 8a0b917824 Merged in fix/find-booking-fixes (pull request #1792)
fix: add title to find booking page

Approved-by: Erik Tiekstra
Approved-by: Chuma Mcphoy (We Ahead)
2025-04-14 14:21:48 +00:00
Christian Andolf d00e8f09a6 fix: add title to find booking page
add email type to email field
2025-04-14 16:14:52 +02:00
Christian Andolf cc7aa6e317 Merged in fix/nullable-redeem-description (pull request #1777)
fix: set redeem description nullable in order to handle the transition from string to RTE

Approved-by: Linus Flood
2025-04-14 07:06:26 +00:00
Christian Andolf 80a738af7b fix: set redeem description nullable in order to handle the transition from string to RTE 2025-04-14 08:57:56 +02:00
Christian Andolf d409b4e6fa Merged in feat/SW-1509-new-select-component (pull request #1766)
Feat/SW-1509 new select component

Approved-by: Chuma Mcphoy (We Ahead)
2025-04-11 10:44:27 +00:00
Christian Andolf 515885ecbf fix(SW-1509): remove default max width 2025-04-11 09:24:45 +02:00
Christian Andolf c39a18ab58 fix(SW-1509): fix typing for supporting on selection change prop to be aligned between the two versions 2025-04-11 08:58:01 +02:00
Christian Andolf a93ed00ee5 fix(SW-1509): removed support for plain array items in order to handle proper props extending
various fixes for supporting default selected
2025-04-10 14:37:52 +02:00
Christian Andolf 2b6fe17c32 fix(SW-1509): add support for default selected key
fixed padding per list item
2025-04-10 13:30:49 +02:00
Christian Andolf cb344c7bcf fix(SW-1509): additional stories 2025-04-10 10:32:57 +02:00
Christian Andolf 9ef292709b feat(SW-1509): enable support for more react aria props
fix invalid border

corrected default border
2025-04-10 10:32:57 +02:00
Christian Andolf 158c2501a5 feat(SW-1509): add select to exports 2025-04-10 10:32:57 +02:00
Christian Andolf bacd57a735 fix(SW-1509): new select filter props interface 2025-04-10 10:32:56 +02:00
Christian Andolf bc7cec215c feat(SW-1509): enable filtering select 2025-04-10 10:32:56 +02:00
Christian Andolf 77e4e9d203 feat(SW-1509): new select component in design-system 2025-04-10 10:32:56 +02:00
Christian Andolf 8f4834a6ef Merged in fix/consolidate-media-queries (pull request #1769)
fix: consolidate media queries to be consistent with ranges

Approved-by: Erik Tiekstra
Approved-by: Matilda Landström
2025-04-09 14:38:05 +00:00
Christian Andolf ee72f58c33 fix: consolidate media queries to be consistent with ranges 2025-04-09 16:30:12 +02:00
Christian Andolf c9e3680b6b Merged in fix/enable-surprises-flag (pull request #1749)
fix: add new feature flag for surprises

Approved-by: Linus Flood
Approved-by: Chuma Mcphoy (We Ahead)
2025-04-07 13:13:50 +00:00
Christian Andolf 5e55b60807 fix: add new feature flag for surprises 2025-04-07 14:26:13 +02:00
Christian Andolf 0a4550c761 Merged in chore/cleanup-booking-widget (pull request #1701)
Chore/cleanup booking widget

Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
Approved-by: Simon.Emanuelsson
2025-04-04 07:25:35 +00:00
Christian Andolf 7b66533dba chore: rename html element for context 2025-04-04 09:06:42 +02:00
Christian Andolf d4f5aea31c chore: add missing type to watch 2025-04-04 09:06:42 +02:00
Christian Andolf 2a07fcf7be chore: remove locations type to opt for location in array instead, this highlights array objects 2025-04-04 09:06:42 +02:00
Christian Andolf 14f9b68365 chore: Cleanup booking widget with types and other minor issues 2025-04-04 09:06:42 +02:00
Christian Andolf fa1f637136 Merged in fix/SW-1877-new-responsive-breadcrumbs (pull request #1671)
fix(SW-1877): new responsive breadcrumbs

Approved-by: Erik Tiekstra
2025-04-01 07:11:05 +00:00
Christian Andolf 4bd33e908f fix(SW-1877): rewrote css to be a bit more modern 2025-04-01 08:38:08 +02:00
Christian Andolf f5f12c2f18 fix(SW-1877): fixed size on home icon in skeleton
fixed width and padding for other pages
2025-04-01 08:38:08 +02:00
Christian Andolf 19723856c3 refactor(SW-1877): a bit of cleanup of code to maintain patterns and separate components and types 2025-04-01 08:38:08 +02:00
Christian Andolf 52b461fbb4 fix(SW-1877): new responsive breadcrumbs 2025-04-01 08:38:08 +02:00
Christian Andolf a2f943dfc5 Merged in chore/typing-debounce (pull request #1668)
chore: debounce function is now typed to accommodate typed parameters in a callback

Approved-by: Simon.Emanuelsson
2025-03-31 08:15:00 +00:00
Christian Andolf 32e769fd09 chore: debounce function is now typed to accommodate typed parameters in a callback 2025-03-28 14:40:36 +01:00
Christian Andolf 1c42639423 Merged in chore/LOY-175-remove-references-to-old-rewards (pull request #1519)
Chore/LOY-175 remove references to old rewards and refactor reward typing

Approved-by: Chuma Mcphoy (We Ahead)
2025-03-26 09:08:11 +00:00
Christian Andolf cf3a903710 Merged in fix/default-loyalty-level-two-lines (pull request #1637)
fix: default loyalty levels to be two rows to be compatible with existing behaviour

Approved-by: Pontus Dreij
2025-03-26 09:07:23 +00:00
Christian Andolf f272dde1ef chore: remove unused filter modal
remove old cms model

refactor reward types
2025-03-26 09:55:26 +01:00
Christian Andolf 45d57a9c89 fix(LOY-175): fix issues of getting correct expiration date on reward coupon 2025-03-26 09:55:26 +01:00
Christian Andolf b86347b4f4 refactor(LOY-175): rewrite reward types according to new api endpoints 2025-03-26 09:55:26 +01:00
Christian Andolf 0ae4c5db17 chore(LOY-175): remove references to old reward endpoints 2025-03-26 09:55:26 +01:00
Christian Andolf f2252ce0f7 fix: default loyalty levels to be two rows to be compatible with existing behaviour 2025-03-26 09:51:54 +01:00
Christian Andolf 7dcdaa1f4f Merged in fix/LOY-160-utc-date-on-reward-expiry-time (pull request #1619)
fix(LOY-160): now parses and formats expiration date on rewards in utc

Approved-by: Chuma Mcphoy (We Ahead)
2025-03-25 12:44:10 +00:00
Christian Andolf 7c62ea6971 fix(LOY-160): now parses and formats expiration date on rewards in utc 2025-03-25 13:32:02 +01:00
Christian Andolf 53a610913a Merged in fix/SW-1721-startpage-padding-adjustment (pull request #1626)
fix(SW-1721): change startpage padding between sections

Approved-by: Chuma Mcphoy (We Ahead)
2025-03-25 12:31:30 +00:00
Christian Andolf 4c038b3e4d Merged in fix/LOY-206-add-missing-lang-input-transactions-query (pull request #1623)
fix(LOY-206): add missing lang input to friends transactions query, handles both server and client side

Approved-by: Michael Zetterberg
Approved-by: Chuma Mcphoy (We Ahead)
2025-03-25 12:27:02 +00:00
Christian Andolf a02285a3d1 fix(SW-1721): change startpage padding between sections 2025-03-25 12:23:54 +01:00
Christian Andolf d67d04e416 fix(LOY-206): add missing lang input to friends transactions query, handles both server and client side 2025-03-25 09:42:37 +01:00
Christian Andolf d406725a65 Merged in fix/SW-1971-close-mobile-menu-footer-link-click (pull request #1583)
fix(SW-1971): now closes mobile menu on clicking the find booking link

Approved-by: Chuma Mcphoy (We Ahead)
2025-03-21 08:22:51 +00:00
Christian Andolf 9a37a2f4c0 fix(SW-1971): now closes mobile menu on clicking the find booking link
removed useless class usage

added customer service url to link
2025-03-21 09:18:59 +01:00
Christian Andolf 0666b62a4c Merged in fix/LOY-192-fix-surprises-toasts-webview (pull request #1591)
fix(LOY-192): fix toasts for surprises in webviews

Approved-by: Chuma Mcphoy (We Ahead)
2025-03-21 08:03:06 +00:00
Christian Andolf ac8df04c49 fix(LOY-192): fix toasts for surprises in webviews 2025-03-20 16:27:24 +01:00
Christian AndolfandLinus Flood 7ddca4acba Merged in fix/change-ref-id-to-query-param (pull request #1578)
fix: my stay now uses ref id in query param rather than path param to support legacy

* fix: my stay now uses ref id in query param rather than path param to support legacy


Approved-by: Michael Zetterberg
2025-03-19 11:39:16 +00:00
Christian Andolf 2fc33966ac Merged in fix/LOY-141-add-surprises-to-webview (pull request #1561)
fix(LOY-141): add suprises to webview

Approved-by: Chuma Mcphoy (We Ahead)
2025-03-18 12:33:37 +00:00
Christian Andolf afb367c478 fix(LOY-141): add suprises to webview 2025-03-18 10:56:21 +01:00
Christian Andolf 6d0f47fd4f Merged in fix/SW-1942-case-in-sensitive-find-my-booking (pull request #1552)
fix(SW-1942): fixed find my booking to be case-insensitive on form input

Approved-by: Chuma Mcphoy (We Ahead)
2025-03-17 15:34:00 +00:00
Christian Andolf 5e98ffe38d fix(SW-1942): fixed find my booking to be case-insensitive on form input 2025-03-17 16:07:23 +01:00
Christian Andolf 38f3b0e6a4 Merged in fix/access-booking-fixes (pull request #1550)
fix: add some more informative messages when booking cant be accessed

Approved-by: Chuma Mcphoy (We Ahead)
2025-03-17 14:54:37 +00:00
Christian Andolf b65bdce277 fix: add some more informative messages when booking cant be accessed
upped cookie length from 30 seconds to 10 minutes

added default values to prevent the default required error message to appear in form
2025-03-17 14:09:08 +01:00