Merged in feat/SW-1381-new-startpage-page (pull request #1197)

feat(SW-1381): add initial start page

* feat(SW-1381): add initial start page

* fix: remove unused startpage template

remove translation key for middleware error page

* fix(SW-1381): add tracking SDK and feature flag to hide start page


Approved-by: Erik Tiekstra
Approved-by: Matilda Landström
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Christian Andolf
2025-01-23 10:18:21 +00:00
parent cf8a8a2810
commit 127bb6a0a7
20 changed files with 356 additions and 11 deletions

View File

@@ -9,6 +9,7 @@ export enum TrackingChannelEnum {
"destination-overview-page" = "destination-overview-page",
"destination-page" = "destination-page",
"hotels" = "hotels",
"start-page" = "start-page",
}
export type TrackingChannel = keyof typeof TrackingChannelEnum

View File

@@ -26,6 +26,7 @@ export type ContentTypeParams = {
| PageContentTypeEnum.destinationOverviewPage
| PageContentTypeEnum.destinationCountryPage
| PageContentTypeEnum.destinationCityPage
| PageContentTypeEnum.startPage
}
export type ContentTypeWebviewParams = {

View File

@@ -8,4 +8,5 @@ export enum PageContentTypeEnum {
destinationCityPage = "destination_city_page",
hotelPage = "hotel_page",
loyaltyPage = "loyalty_page",
startPage = "start_page",
}

View File

@@ -22,4 +22,5 @@ export const validateEntryResolveSchema = z.object({
all_destination_overview_page: entryResolveSchema,
all_destination_country_page: entryResolveSchema,
all_destination_city_page: entryResolveSchema,
all_start_page: entryResolveSchema,
})

View File

@@ -0,0 +1,14 @@
import type { z } from "zod"
import type {
startPageRefsSchema,
startPageSchema,
} from "@/server/routers/contentstack/startPage/output"
export interface GetStartPageData extends z.input<typeof startPageSchema> {}
export interface StartPage extends z.output<typeof startPageSchema> {}
export interface GetStartPageRefsSchema
extends z.input<typeof startPageRefsSchema> {}
export interface StartPageRefs extends z.output<typeof startPageRefsSchema> {}