Commit Graph

3550 Commits

Author SHA1 Message Date
Christian Andolf
f55ac3999a fix: preamble, title and scripted text has been corrected in sizes and rotate 2025-02-19 15:31:50 +01:00
Christian Andolf
9b88b9d1da fix: fix scandic friends block for tablet view 2025-02-19 15:31:50 +01:00
Joakim Jäderberg
0d6bbf7b78 Merged in fix/get-from-contentstack (pull request #1378)
* fix: include lang when fetching from contentstack


Approved-by: Matilda Landström
2025-02-19 14:28:10 +00:00
Chuma Mcphoy (We Ahead)
b6bf1b3ded Merged in refactor/SW-1669-carousel-cards-shadow (pull request #1370)
Refactor(SW-1669): Carousel Cards Enhancements

* feat(SW-1669): Enhance Filters component with scroll shadows and heart icon

* feat(SW-1669): Carousel peek next card

* fix(SW-1669): carousel review comments

* feat(SW-1669): Add left scroll shadow to TabFilters component

* refactor(SW-1669): Simplify TabFilters shadow styling

* refactor(SW-1669): Adjust TabFilters shadow width

* refactor(SW-1699): Remove unused import from enter details store


Approved-by: Christian Andolf
2025-02-19 12:46:22 +00:00
Tobias Johansson
59eefb877e Merged in feat/SW-1077-enter-details-edit-room (pull request #1360)
Feat/SW-1077 enter details edit room

* feat(SW-1077): persist state when changing rooms

* fix: issue with step state when closing accordion and transition to correct room when modifying step


Approved-by: Pontus Dreij
2025-02-19 10:03:11 +00:00
Joakim Jäderberg
873183ec2f * move setLang() to a root layout
* fix: findLang only returns acceptable languages
* fix: fallback to use header x-lang if we haven't setLang yet
* fix: languageSchema, allow uppercase

Approved-by: Linus Flood
2025-02-19 09:06:37 +00:00
Linus Flood
d27163a915 Merged in feat/auth-refresh-token-time (pull request #1345)
feat: auth - changed the time left before we trying to refresh the token

* feat: auth - changed the time left before we trying to refresh the token


Approved-by: Joakim Jäderberg
2025-02-19 09:00:30 +00:00
Linus Flood
7c0f9084b6 Merged in feat/refactor-header-footer-sitewidealert (pull request #1374)
Refactor: removed parallel routes for header, footer and sidewidealert. Langswitcher and sidewidealert now client components

* feat - removed parallel routes and made sidepeek and sitewidealerts as client components

* Langswitcher as client component

* Fixed lang switcher for current header

* Passing lang when fetching siteconfig

* Merge branch 'master' into feat/refactor-header-footer-sitewidealert

* Refactor

* Removed dead code

* Show only languages that has translation

* Refetch sitewidealert every 60 seconds

* Merge branch 'master' into feat/refactor-header-footer-sitewidealert

* Removed sidepeek parallel route from my-stay

* Added missing env.var to env.test

* Removed console.log


Approved-by: Joakim Jäderberg
2025-02-19 08:59:24 +00:00
Linus Flood
c2b7d97ddd Merged in fix/card-width-fix (pull request #1369)
feat(images): calculate width correct using aspect ratio

* feat(images): calculate width correct using aspect ratio


Approved-by: Erik Tiekstra
2025-02-19 06:29:22 +00:00
Matilda Landström
ba3ecedaee Merged in feat/SW-1447-selected-hotel-map-component (pull request #1340)
Feat(SW-1447): hotel map card destination page

Approved-by: Erik Tiekstra
2025-02-18 19:05:31 +00:00
Christian Andolf
cd8b2e4b73 Merged in fix/SW-1671-align-usp-items-scandic-friends (pull request #1371)
fix(SW-1671): align heart markers to the top

Approved-by: Erik Tiekstra
2025-02-18 14:45:28 +00:00
Erik Tiekstra
2781a41110 Merged in feat/SW-1443-card-gallery-destination-overview (pull request #1362)
feat(SW-1443): added cardGallery block to destination overview page instead of carousel functionality

* feat(SW-1443): added cardGallery block to destination overview page instead of carousel functionality


Approved-by: Fredrik Thorsson
2025-02-18 14:42:36 +00:00
Christian Andolf
f14eb05262 Merged in fix/LOY-95-localize-country-names (pull request #1364)
fix(LOY-95): localize and sort country names in select

Approved-by: Chuma Mcphoy (We Ahead)
2025-02-18 14:31:00 +00:00
Christian Andolf
8462b17cdd fix(SW-1671): align heart markers to the top
make sure usp lists are evenly squared columns
2025-02-18 15:28:36 +01:00
Pontus Dreij
8616e4ab76 Merged in feat/SW-1276-implement-design (pull request #1348)
Feat/SW-1276 implement design

* feat(SW-1276) UI implementation Desktop part 1 for MyStay

* feat(SW-1276) UI implementation Desktop part 2 for MyStay

* feat(SW-1276) UI implementation Mobile part 1 for MyStay

* refactor: move files from MyStay/MyStay to MyStay

* feat(SW-1276) Sidepeek implementation

* feat(SW-1276): Refactoring

* feat(SW-1276) UI implementation Mobile part 2 for MyStay

* feat(SW-1276): translations

* feat(SW-1276) fixed skeleton

* feat(SW-1276): Added missing translations

* feat(SW-1276): Removed console log

* feat(SW-1276) fixed translations

* feat(SW-1276): Added translations

* feat(SW-1276) fix dynamic ID:s

* feat(SW-1276) removed createElement

* feat(SW-1276): Fixed build errors

* feat(SW-1276): Updated label

* feat(SW-1276): Rewrite SummaryCard


Approved-by: Niclas Edenvin
2025-02-18 14:20:54 +00:00
Pontus Dreij
90fee1b0c4 Merged in fix/get-booking-as-user (pull request #1366)
Fix: Use session.token.access_token if session exists in booking confirmation, else use serviceToken

* Fix: Added service token to safeProtectedProcedure

* fix: use of safeProtectedServiceProcedure


Approved-by: Michael Zetterberg
2025-02-18 11:42:18 +00:00
Chuma Mcphoy (We Ahead)
9ca7330d74 Merged in refactor/SW-1679-reset-scroll-state-on-new-filter-selections (pull request #1367)
feat(SW-1679): Add key prop to Carousel to reset on filter change

* feat(SW-1679): Enhance SectionHeader and Carousel component in CarouselCards

* Add headingLevel and headingAs props to SectionHeader
* Add key prop to Carousel to reset on filter change


Approved-by: Christian Andolf
2025-02-18 10:22:44 +00:00
Matilda Landström
102381fdeb Merged in fix/facilities-zod-validation (pull request #1365)
Fix: Facilities zod validation

* fix: zod validation


Approved-by: Pontus Dreij
Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
2025-02-18 09:36:27 +00:00
Pontus Dreij
26a0bda6db Merged in fix/breakfast-card (pull request #1352)
fix: showing "undefined" if ancillary.price.text was undefined

* fix: showing "undefined" if ancillary.price.text was undefined


Approved-by: Tobias Johansson
2025-02-18 08:55:37 +00:00
Bianca Widstam
29bf586cc7 Merged in feat/SW-1680-listing-ancillaries-mobile (pull request #1357)
feat(SW-1680): add carousel design for mobile

* feat(SW-1680): add carousel design for mobile

* feat(SW-1680): adjust design

* feat(SW-1680): adjust responsive design


Approved-by: Pontus Dreij
Approved-by: Simon.Emanuelsson
2025-02-18 07:28:57 +00:00
Christian Andolf
9a443a9cb0 fix(LOY-95): localize and sort country names in select 2025-02-17 17:46:35 +01:00
Pontus Dreij
e360f9b926 Merged in fix/SW-1329-fix-height-select-rate-card (pull request #1351)
Fix (SW-1329): Height on room card title

* Fix (SW-1329): Height on room card title


Approved-by: Bianca Widstam
2025-02-17 14:41:16 +00:00
Christian Andolf
0b9298027c Merged in feat/LOY-135-change-redeem-desc-to-rte (pull request #1350)
feat(LOY-135): change redeem description to be RTE

Approved-by: Erik Tiekstra
2025-02-17 14:12:16 +00:00
Christian Andolf
a192d32f7e feat(LOY-135): change redeem description to be RTE 2025-02-17 15:05:32 +01:00
Anton Gunnarsson
9b61417264 Merged in fix/sw-1664-sas-link-otp-error-handling (pull request #1354)
Update SAS OTP error handling

Approved-by: Joakim Jäderberg
2025-02-17 11:40:00 +00:00
Erik Tiekstra
c93381ca80 Merged in feat/SW-550-sitemap (pull request #981)
feat(SW-550): added sync functionality and sitemap generation

* feat(SW-550): added sync functionality and sitemap generation

* feat(SW-550): Added support for splitting and saving multiple sitemaps when there are 50000+ urls

* feat(SW-550): Updates after PR

* feat(SW-550): Added locale to sitemap data

* feat(SW-550): Added support for locale based sitemapData

* feat(SW-550): Saving alternates of sitemap entries

* feat(SW-550): Refactoring to use sitemap utils file

* feat(SW-550): Using Netlify.env to get environment variables

* feat(SW-550): clarify use of functions


Approved-by: Michael Zetterberg
2025-02-17 10:35:11 +00:00
Christian Andolf
577271c577 Merged in chore/no-unused-vars-lint-rule (pull request #1339)
chore: add no unused vars lint rule

Approved-by: Michael Zetterberg
2025-02-17 09:54:33 +00:00
Christian Andolf
06d861fb6f chore: add no unused vars lint rule 2025-02-17 10:43:54 +01:00
Linus Flood
1116bdafa8 Merged in fix/suspense-key (pull request #1356)
feat: suspense key - use json-stable-stringify for suspense key

* feat: suspense key - use json-stable-stringify for suspense key


Approved-by: Joakim Jäderberg
2025-02-17 09:42:54 +00:00
Matilda Landström
c4ae9201db Merged in fix/SW-1065-meetings-subpage (pull request #1353)
Fix(SW-1065): Meetings subpage

* fix(SW-1065): allow meeting cards to have different heights

* feat(SW-1065): add meetingroom description


Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
2025-02-17 09:14:45 +00:00
Fredrik Thorsson
22111eb7d2 Merged in feat/SW-1418-destination-page-map-data (pull request #1347)
feat/SW-1418 destination page map data

* feat(SW-1418): implement dynamic map on overview page

* feat(SW-1418): update folder structure

* feat(SW-1418): use getHotelsByHotelIds


Approved-by: Erik Tiekstra
Approved-by: Matilda Landström
2025-02-17 08:59:50 +00:00
Chuma Mcphoy (We Ahead)
f5c5172555 Merged in fix/carousel-card-gap (pull request #1343)
refactor: Adjust default carousel card gap

Approved-by: Christian Andolf
2025-02-17 08:49:36 +00:00
Chuma McPhoy
7c519979bb refactor: Adjust carousel card gap 2025-02-17 09:41:58 +01:00
Christian Andolf
2d5111fed3 Merged in feat/LOY-61-add-confirm-close-to-redeem (pull request #1322)
feat(LOY-61): add confirmation box to close when redeemed a reward

Approved-by: Chuma Mcphoy (We Ahead)
2025-02-17 08:41:01 +00:00
Christian Andolf
4f0c4a0acb fix(LOY-61): only invalidate current rewards if reward is redeemed or confirm close redeemed reward 2025-02-17 09:34:54 +01:00
Christian Andolf
b656023bac feat(LOY-61): add confirmation box to close when redeemed a reward 2025-02-17 09:34:54 +01:00
Christian Andolf
962836606e Merged in fix/LOY-88-hide-expiration-date-if-missing (pull request #1338)
fix(LOY-88): expiration date is now not defaulted to todays date if it's missing, instead nothing is shown

Approved-by: Chuma Mcphoy (We Ahead)
2025-02-17 08:34:18 +00:00
Christian Andolf
bc81b18e85 fix(LOY-88): expiration date is now not defaulted to todays date if it's missing, instead nothing is shown 2025-02-17 09:07:32 +01:00
Joakim Jäderberg
2791f07f67 Merged in fix/mypages-clientside-menu (pull request #1344)
Fix/mypages clientside menu

* feat: move mypages menu to client side

* Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/mypages-clientside-menu

* wip

* wip

* wip

* refactor: reorganize MyPages navigation logic and improve type definitions

* refactor: enhance MyPagesMobileDropdown with loading states and skeletons

* refactor: clean up header component and improve myPagesNavigation query structure

* Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/mypages-clientside-menu


Approved-by: Linus Flood
2025-02-17 07:47:33 +00:00
Matilda Landström
ef1d3ee065 Merged in fix/hotel-pages-fix (pull request #1346)
fix: HotelPage restaurant navigation + translation

* fix: hotelPage restaurant navigation + translation


Approved-by: Erik Tiekstra
2025-02-17 07:23:43 +00:00
Christian Andolf
81643883ff Merged in fix/SW-1615-usp-list-now-grows-vertically (pull request #1336)
fix(SW-1615): usp list for scandic friends block now grows vertically instead of horizontally

Approved-by: Chuma Mcphoy (We Ahead)
2025-02-14 15:43:34 +00:00
Pontus Dreij
ed9dbded5d Merged in feat/SW-1504-UI-update-breakfast-component (pull request #1284)
feat(SW-1504): Used AncillaryCard and added to breakfast choice

* feat(SW-1504): Craeted AncillaryCard and added to breakfast choice

* feat(SW-1504): Using of AncillaryCard

* feat(SW-1504) Removed unused imports

* feat(SW-1504): Added price text

* feat(SW-1504): added /night per adult

* feat(SW-1504) Removed type prop


Approved-by: Arvid Norlin
2025-02-14 15:43:14 +00:00
Erik Tiekstra
21d06e2d84 Merged in feat/SW-1458-sidebar-city-map (pull request #1342)
feat(SW-1458): Added hotel list inside sidebar for mapview on city pages

* feat(SW-1458): Added hotel list inside sidebar for mapview on city pages


Approved-by: Fredrik Thorsson
2025-02-14 14:29:25 +00:00
Simon.Emanuelsson
248473e8bf Merged in chore/refactor-booking-flow (pull request #1333)
chore: cleaning up select-rate

Approved-by: Arvid Norlin
Approved-by: Linus Flood
2025-02-14 13:51:37 +00:00
Simon Emanuelsson
051bc54e6c chore: cleaning up select-rate 2025-02-14 14:20:54 +01:00
Chuma Mcphoy (We Ahead)
b2add701e5 Merged in fix/LOY-143-hide-see-all-link (pull request #1341)
fix(LOY-143): properly hide see all link for carosel cards

* fix(LOY-143): Improve link handling in CarouselCards schema


Approved-by: Christian Andolf
2025-02-14 12:19:46 +00:00
Chuma Mcphoy (We Ahead)
38cce4b136 Merged in feat/SW-1542-carousel-functionality (pull request #1311)
feat(SW-1542): Carousel component

* feat(SW-1542): add Embla Carousel component and use in CarouselCards

* fix(SW-1542): remove max-width constraint for card on ipad

* fix(SW-1542): Add padding to start page content container

* refactor(SW-1542): Improve Embla Carousel type imports

* refactor(SW-1542): Remove unnecessary carousel wrapper div

* refactor(SW-1542): Modularize Carousel component structure

* refactor(SW-1542): Remove carousel dots display

* feat(SW-1542): Add carousel dots navigation

* refactor(SW-1542): Update Carousel component styling and types

* refactor(SW-1542): Remove uneeded useCallback from Carousel navigation methods

* refactor(SW-1542): Modify CarouselContextProps type to exclude className

* refactor(SW-1542): Optimize React imports in Carousel components

* refactor(SW-1542): Consolidate Carousel component and remove CarouselRoot

* refactor(SW-1542): Update Carousel navigation methods to use function-based scroll checks

* refactor(SW-1542): Add explicit children prop support to CarouselContent component

* refactor(SW-1542): Add children prop support to CarouselItem component


Approved-by: Christian Andolf
2025-02-14 10:53:14 +00:00
Bianca Widstam
224a41ec74 feat/SW-1546-list-ancillaries-my-stay (pull request #1259)
Feat/SW-1546 list ancillaries my stay

* feat(SW-1546): foundation for listing ancillaries

* feat(SW-1546): foundation for listing ancillaries

* feat(SW-1546): refactor type

* feat(SW-1546): fix date format

* feat(SW-1546): refactor usestate

* feat(SW-1546): refactor typing

* feat(SW-1546): refactor types

* feat(SW-1546): responsive width on modal

* feat(SW-1546): update design

* feat(SW-1546): rebase master

* feat(SW-1546): show points only if logged in

* feat(SW-1546): always show points

* feat(SW-1546): small fix

* feat(SW-1546): remove spread object

* feat(SW-1546): fix import order


Approved-by: Simon.Emanuelsson
2025-02-14 10:37:17 +00:00
Arvid Norlin
f5e0214313 Merged in feat/confirmation-page-initial-multiroom-display (pull request #1334)
feat: initial display of linkedReservations on confirmation page

* feat: initial display of linkedReservations on confirmation page

* refactor: move notFound


Approved-by: Tobias Johansson
2025-02-14 10:05:58 +00:00
Christian Andolf
3044bc87d1 Merged in fix/LOY-138-remove-membership-id-surprises (pull request #1337)
fix(LOY-138): remove membership id from showing in surprises

Approved-by: Chuma Mcphoy (We Ahead)
2025-02-14 07:51:08 +00:00