Commit Graph

4102 Commits

Author SHA1 Message Date
Joakim Jäderberg
213bd2c561 Merged in fix/SW-2427-floating-booking-widget-fullwidth (pull request #1826)
fix: when floating booking widget is sticky let it have white background all the way out. SW-2427

* fix: when floating booking widget is sticky let it have white background all the way out.
Resolves SW-2427

* pr: move styling variants to it's own file


Approved-by: Christian Andolf
2025-04-17 08:56:24 +00:00
Joakim Jäderberg
4e17bf1391 Merged in fix/SW-2314-search-modal-shifting (pull request #1831)
fix: search modal shifted to the right on mobile

Approved-by: Linus Flood
2025-04-17 08:56:02 +00:00
Linus Flood
cfa8c166a3 Merged in feat/sw-2403-mystay-webview (pull request #1828)
Feat/sw-2403 - Adding webview for MyStay

* feat/webview - added for my stay

* wip

* Passing headers so we can get the lang

* Cleanup

* Refactored and some performance improvements


Approved-by: Christian Andolf
2025-04-17 08:48:52 +00: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
Arvid Norlin
007b20bfb6 Merged in chore/svg-prop-warnings (pull request #1830)
fix attribute casing for svgs in jsx to get rid of warnings

* fix attribute casing for svgs in jsx to get rid of warnings


Approved-by: Erik Tiekstra
2025-04-17 06:45:43 +00:00
Joakim Jäderberg
b98d6c10c0 Merged in fix/SW-2253-consolidate-autocomplete-search (pull request #1795)
Consolidate autocomplete search SW-2253 SW-2338

* use fuse.js for fuzzy search
* Handle weird behaviour when search field loses focus on destinationPage
* Add error logging for JumpTo when no URL was provided
* Switch to use <Typography /> over <Caption />
* fix: bookingWidget search label should always be red
* fix: searchHistory can no longer add invalid items
* fix: list more hits when searching
* fix: issue when searchField value was undefined
* fix: don't show searchHistory label if no searchHistory items
* simplify skeleton for listitems in search

Approved-by: Linus Flood
2025-04-17 06:39:42 +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
Hrishikesh Vaipurkar
8c0597727b Merged in feat/SW-1879-aa-tracking-bed-breakfastpayment (pull request #1789)
feat: SW-1879 Tracking enter-details sections

* feat: SW-1879 Tracking enter-details sections

* feat: SW-1879 removed onSelect to trigger in onSubmit

* feat: SW-1879 Removed onSelect and triggered inside onSubmit

* feat: SW-1879 Optimized to remove unnecessary useEffect triggers in every re-render

* feat: SW-1879 Updated breakfast package typings

* feat: SW-1879 Reverted RadioCardProps

* feat: SW-1879 Optimised code


Approved-by: Tobias Johansson
Approved-by: Christian Andolf
2025-04-16 14:06:15 +00: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
Hrishikesh Vaipurkar
df7e101be6 Merged in fix/SW-2375-aa-tracking-critical-pageview- (pull request #1805)
fix: SW-2375 Tracking on booking-flow soft navigations based on query params

* fix: SW-2375 Tracking on booking-flow soft navigations based on query params

* fix: SW-2375 Restricted query params check to booking widget params

* fix: SW-2375 Moved empty check before other regex check


Approved-by: Tobias Johansson
2025-04-16 12:47:58 +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
Anton Gunnarsson
009d46ebac Merged in fix/too-many-codes-error (pull request #1814)
Fix SAS OTP rate limited error

* Fix error for too many codes not showing up


Approved-by: Joakim Jäderberg
2025-04-16 11:20:20 +00:00
Anton Gunnarsson
0ab5dc1c9d Merged in fix/sw-2132-unlink-error (pull request #1816)
Add UnlinkError for when SAS account unlinking fails

* Add UnlinkError for when unlinking fails


Approved-by: Joakim Jäderberg
2025-04-16 11:19:07 +00:00
Erik Tiekstra
8b65f63d60 fix(SW-2171): Added focus state on rate cards and image-gallery
Approved-by: Arvid Norlin
2025-04-16 10:24:51 +00:00
Christian Andolf
27f5ca9851 fix(SW-2385): use booking widget error constants in component 2025-04-16 10:17:17 +00:00
Christian Andolf
e544feaa36 fix(SW-2385): add booking widget error messages 2025-04-16 10:17:17 +00:00
Christian Andolf
595eb575d7 fix(SW-2385): handle error messages provided from zod validation in forms client side 2025-04-16 10:17:17 +00:00
Linus Flood
2648b17744 Merged in fix/redirect-service-revert (pull request #1818)
hotfix: uncomment new stuff that broke destination page

* hotfix: uncomment new stuff that broke destination page


Approved-by: Michael Zetterberg
Approved-by: Joakim Jäderberg
2025-04-16 10:09:54 +00:00
Erik Tiekstra
7108537cb8 fix/SW-2247 enter details fixes
* fix(SW-2247): Removed accordion like special requests block and changed button variant

* fix(SW-2247): Added additional info for bedtype selection

Approved-by: Tobias Johansson
Approved-by: Niclas Edenvin
2025-04-16 09:49:53 +00:00
Anton Gunnarsson
700141f45e Merged in fix/sw-2413-tier-expiration-validation (pull request #1806)
SW-2413 Update tier expiration validation

* Update tier expiration validation

* Set tierExpires default to null


Approved-by: Christian Andolf
Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
2025-04-16 08:32:20 +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
Tobias Johansson
12cebd9c1c Merged in fix/add-route-for-app-callback (pull request #1810)
fix: add route for app payment callback

* fix: add route for app payment callback


Approved-by: Michael Zetterberg
2025-04-16 07:34:27 +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
Erik Tiekstra
af182b49d8 feat(SW-2227): Implemented new design for room package filters
Approved-by: Arvid Norlin
2025-04-16 07:07:49 +00:00
Linus Flood
e956e148bc Merged in fix/sitemap-api-route (pull request #1813)
Fix/sitemap - moved sitemap api route to api/web

* fix:sitemap - moved api route to api/web

* Moved files


Approved-by: Joakim Jäderberg
2025-04-16 06:52:55 +00:00
Simon Emanuelsson
d9db9f9d34 fix: public promotion with code did not make it through the check sometimes 2025-04-16 08:31:53 +02:00
Arvid Norlin
33065be565 Merged in feat/SW-2111 (pull request #1761)
feat(SW-2111): add initial scandic-redirect

* feat(SW-2111): add initial scandic-redirect

* feat(SW-2112): add scandic-redirect call to middleware

* chore: add redirect jsons per lang

* fix: handle incorrect contentTypes

* fix: handle lang

* refactor: add json streaming

* refactor: wrap redirect call in cacheOrGet

* refactor: review


Approved-by: Michael Zetterberg
2025-04-16 06:29:32 +00:00
Erik Tiekstra
42593dfe5e fix(SW-2119): Fixed issue where we were redirecting to the parent instead of not found
Approved-by: Matilda Landström
2025-04-16 04:52:26 +00: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
Tobias Johansson
9a9789e736 Merged in feat/SW-1549-map-improvements (pull request #1783)
Feat/SW-1549 map improvements

* fix: imported new icon

* refactor: rename component and set map handling to 'greedy'

* fix: show cards for 3s after hover

* refactor: update styles and added HotelPin component

* fix: change from close to back icon

* refactor: update to only use 1 state value for active pin and card

* fix: add click handler when dialog is opened

* fix: performance fixes for the dialog carousel

* fix: added border

* fix: clear timeout on mouseenter

* fix: changed to absolute import

* fix: moved hover state into the store

* fix: renamed store actions


Approved-by: Michael Zetterberg
2025-04-15 13:23:23 +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
Chuma Mcphoy (We Ahead)
57cd2f6a7f Merged in fix/SW-2197-properly-hide-benefits-badge-element (pull request #1798)
fix(SW-2197): Properly hide benefits message element when isMemberRate is false

* fix(SW-2197): correct hiding of benefit text


Approved-by: Christian Andolf
2025-04-15 07:56:33 +00:00
Linus Flood
1689039c39 Merged in fix/sitemap-route (pull request #1801)
Fix: sitemap - now the route works

* Fix: sitemap - now the route works


Approved-by: Joakim Jäderberg
2025-04-15 07:53:11 +00:00
Michael Zetterberg
b48cd5524e fix: intl lint 2025-04-15 07:37:47 +00:00
Linus Flood
a27d702008 Merged in fix/sitemap-issue (pull request #1788)
fix/sitemap: default to prod url and added logging. Also added new sitemap function to be able to invoke it on request.

* test

* wip

* wip

* Added error message to log


Approved-by: Joakim Jäderberg
2025-04-15 05:59:13 +00:00
Michael Zetterberg
af65fbf7f4 fix: rename trpc route for get booking 2025-04-15 05:20:24 +00: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
Anton Gunnarsson
3449ccec52 Merged in feat/sw-2232-sas-api-updates (pull request #1786)
SW-2232 Adapt SAS router to API changes

* Adapt sas procedures to api changes

* Remove debug logs

* Capture performLevelUpgrade error

* More sentry logging

* Merge branch 'master' into feat/sw-2232-sas-api-updates


Approved-by: Joakim Jäderberg
2025-04-14 13:42:58 +00:00
Anton Gunnarsson
f87ea51b11 Merged in feature/sw-1881-boosted-by-scandic (pull request #1780)
Show boosted by scandic in SAS Linked Accounts

* Add boostedByScandic property to SAS membership

* Use get profile with extended partner data

* Display correct tier when EB is boosted by SF


Approved-by: Joakim Jäderberg
2025-04-14 13:14:01 +00:00
Michael Zetterberg
c2f98b85dc fix: add jiti for design system 2025-04-14 12:43:44 +00:00
Simon Emanuelsson
67e094f316 fix: redemptions did not show properly 2025-04-14 13:46:33 +02:00
Michael Zetterberg
37ac9f607c feat(SW-706): load .env.local for download and upload 2025-04-14 11:30:07 +00:00
Michael Zetterberg
7de46cafa8 feat(SW-706): add diff tooling 2025-04-14 11:30:07 +00:00
Michael Zetterberg
35862d03f0 feat(SW-706): fix the build
The pinned version of @formatjs/swc-plugin-experimental has a bug in it that
doesn't allow it to parse ’. But we can't upgrade to the new version due to
incompatibilities between SWC and Next. We can upgrade once we move to Next 15.
2025-04-14 11:30:07 +00:00
Michael Zetterberg
5860377774 feat(SW-706): enable lint rules for intl 2025-04-14 11:30:07 +00:00
Michael Zetterberg
65932ddfd3 feat(SW-706): use Lokalise 2025-04-14 11:30:06 +00:00