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,4 +1,4 @@
import type { SidePeekEnum } from "@/types/components/hotelReservation/sidePeek"
import type { SidePeekEnum } from "@scandic-hotels/booking-flow/stores/sidepeek"
import type {
AdditionalData,
Hotel,

View File

@@ -1,15 +0,0 @@
import type { SidePeekEnum } from "@/types/components/hotelReservation/sidePeek"
import type {
AdditionalData,
Hotel,
Restaurant,
} from "@scandic-hotels/trpc/types/hotel"
export type HotelSidePeekProps = {
hotel: Hotel & { url: string | null }
restaurants: Restaurant[]
additionalHotelData: AdditionalData | undefined
activeSidePeek: SidePeekEnum
close: () => void
showCTA: boolean
}

View File

@@ -1,8 +1,6 @@
import type { BookingSearchType } from "@scandic-hotels/booking-flow/searchType"
import type { SidePeekEnum } from "@scandic-hotels/booking-flow/stores/sidepeek"
import type { Child } from "@scandic-hotels/trpc/types/child"
import type { Hotel } from "@scandic-hotels/trpc/types/hotel"
import type { SidePeekEnum } from "../sidePeek"
export interface ReadMoreProps {
label: string
@@ -11,10 +9,6 @@ export interface ReadMoreProps {
sidePeekKey: SidePeekEnum
}
export interface ContactProps {
hotel: Hotel
}
export type SelectHotelBooking = {
hotelId?: string
city?: string

View File

@@ -1,5 +0,0 @@
export enum SidePeekEnum {
hotelDetails = "hotel-detail-side-peek",
roomDetails = "room-detail-side-peek",
bookedRoomDetails = "booked-room-detail-side-peek",
}

View File

@@ -1,30 +1,4 @@
import type {
CheckInData,
DetailedFacility,
Parking,
Restaurant,
} from "@scandic-hotels/trpc/types/hotel"
export interface ParkingAccordionItemProps {
parkingPageHref?: string | null
parking: Parking[]
elevatorPitch?: string
}
export interface BreakfastAccordionItemProps {
restaurants?: Restaurant[]
hotelType: string
}
export interface CheckInCheckOutAccordionItemProps {
checkInData: CheckInData
}
export interface AccessibilityAccordionItemProps {
elevatorPitch?: string
accessibilityPageHref?: string | null
}
export interface AdditionalAmenitiesProps {
amenities: DetailedFacility[]
}

View File

@@ -1,8 +0,0 @@
import type { Room } from "@scandic-hotels/trpc/types/hotel"
import type { SidePeekEnum } from "../hotelReservation/sidePeek"
export type RoomSidePeekProps = {
room: Room
activeSidePeek: SidePeekEnum | null
close: () => void
}