Merged in feat/sw-3218-move-hotelreservationsidepeek-to-booking-flow (pull request #2600)

feat(SW-2873): Move HotelReservationSidePeek to booking-flow

* Move sidepeek store to booking-flow

* Begin move of HotelReservationSidePeek to booking-flow

* Copy Link

* Update AccessibilityAccordionItem

* Split AccessibilityAccordionItem into two components

* Fix tracking for Accordion

* Duplicate ButtonLink to booking-flow TEMP

* AdditionalAmeneties

* wip

* Move sidepeek accordion items

* Remove temp ButtonLink

* Merge branch 'master' into feat/sw-3218-move-hotelreservationsidepeek-to-booking-flow

* Fix accordion tracking

* Merge branch 'master' into feat/sw-3218-move-hotelreservationsidepeek-to-booking-flow

* Update exports

* Fix self-referencing import

* Merge branch 'master' into feat/sw-3218-move-hotelreservationsidepeek-to-booking-flow

* Add 'use client' to tracking function

* Merge branch 'master' into feat/sw-3218-move-hotelreservationsidepeek-to-booking-flow

* Fix TEMP folder

* Refactor sidepeek tracking

* Merge branch 'master' into feat/sw-3218-move-hotelreservationsidepeek-to-booking-flow


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-08-14 12:25:40 +00:00
parent f04e476a6e
commit 322268595d
53 changed files with 826 additions and 425 deletions

View File

@@ -1,3 +1,4 @@
"use client"
import { trackEvent } from "./base"
export function trackAccordionClick(option: string) {
@@ -10,12 +11,17 @@ export function trackAccordionClick(option: string) {
})
}
export function trackOpenSidePeekEvent(
name: string | null,
hotelId: string,
pathName?: string,
export function trackOpenSidePeekEvent({
name,
hotelId,
includePathname,
roomTypeCode,
}: {
name: string | null
hotelId: string
includePathname?: boolean
roomTypeCode?: string | null
) {
}) {
trackEvent({
event: "openSidePeek",
hotelInfo: {
@@ -24,7 +30,7 @@ export function trackOpenSidePeekEvent(
cta: {
name,
...(roomTypeCode ? { roomTypeCode } : {}),
...(pathName ? { pathName } : {}),
...(includePathname ? { pathName: window.location.pathname } : {}),
},
})
}