Merged in feature/select-room-ux-one-page (pull request #523)

This updates the select room page according to the new UX. It has different sections on the same page, but with specific URLs per section. Since neither UX, UI nor API is completely done both design and data structures are a bit temporary.

Approved-by: Simon.Emanuelsson
This commit is contained in:
Niclas Edenvin
2024-08-29 13:38:14 +00:00
parent 00fc2af3dd
commit f178f7fde0
35 changed files with 794 additions and 372 deletions

View File

@@ -0,0 +1,8 @@
export type FlexibilityOptionProps = {
name: string
value: string
paymentTerm: string
standardPrice: number
memberPrice: number
currency: string
}

View File

@@ -1,3 +1,8 @@
import { Rate } from "@/server/routers/hotels/output"
export type RoomCardProps = { room: Rate }
export type RoomCardProps = {
room: Rate
nrOfNights: number
nrOfAdults: number
breakfastIncluded: boolean
}

View File

@@ -1,5 +0,0 @@
import { Rate } from "@/server/routers/hotels/output"
export type RoomSelectionProps = {
rooms: Rate[]
}

View File

@@ -0,0 +1,40 @@
import { Rate } from "@/server/routers/hotels/output"
export interface SectionProps {
nextPath: string
}
export interface BedSelectionProps extends SectionProps {
alternatives: {
value: string
name: string
payment: string
pricePerNight: number
membersPricePerNight: number
currency: string
}[]
}
export interface BreakfastSelectionProps extends SectionProps {
alternatives: {
value: string
name: string
payment: string
pricePerNight: number
currency: string
}[]
}
export interface RoomSelectionProps extends SectionProps {
alternatives: Rate[]
nrOfAdults: number
nrOfNights: number
}
export interface SectionPageProps {
breakfast?: string
bed?: string
fromDate: string
toDate: string
room: { adults: number; child: { age: number; bed: number }[] }[]
}

View File

@@ -0,0 +1,5 @@
export interface SectionAccordionProps {
header: string
selection?: string | string[]
path: string
}