feat/BOOK-755 alert content pages

* feat(BOOK-755): Added alert block on Collection pages
* feat(BOOK-755): Added alert block on Content pages
* feat(BOOK-755): Added alert functionality for RTE

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2026-01-28 07:47:49 +00:00
parent 0d357a116b
commit e87bb03c6f
22 changed files with 250 additions and 101 deletions

View File

@@ -12,9 +12,11 @@ import { HotelPageLink } from "./PageLink/HotelPageLink.graphql"
import { LoyaltyPageLink } from "./PageLink/LoyaltyPageLink.graphql"
import { PromoCampaignPageLink } from "./PageLink/PromoCampaignPageLink.graphql"
import { StartPageLink } from "./PageLink/StartPageLink.graphql"
import { System } from "./System.graphql"
export const Alert = gql`
fragment Alert on Alert {
__typename
type
heading
text
@@ -76,6 +78,9 @@ export const Alert = gql`
}
}
visible_on
system {
...System
}
}
${AccountPageLink}
@@ -90,4 +95,5 @@ export const Alert = gql`
${LoyaltyPageLink}
${StartPageLink}
${PromoCampaignPageLink}
${System}
`

View File

@@ -0,0 +1,35 @@
import { gql } from "graphql-tag"
import { Alert } from "../Alert.graphql"
export const Alert_ContentPage = gql`
fragment Alert_ContentPage on ContentPageBlocksAlert {
__typename
alert {
alertConnection {
edges {
node {
...Alert
}
}
}
}
}
${Alert}
`
export const Alert_CollectionPage = gql`
fragment Alert_CollectionPage on CollectionPageBlocksAlert {
__typename
alert {
alertConnection {
edges {
node {
...Alert
}
}
}
}
}
${Alert}
`

View File

@@ -1,5 +1,6 @@
import { gql } from "graphql-tag"
import { Alert } from "../Alert.graphql"
import { ImageContainer } from "../ImageContainer.graphql"
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
@@ -24,6 +25,7 @@ export const Content_ContentPage = gql`
node {
__typename
...SysAsset
...Alert
...ImageContainer
...AccountPageLink
...CampaignOverviewPageLink
@@ -45,6 +47,7 @@ export const Content_ContentPage = gql`
}
}
${SysAsset}
${Alert}
${ImageContainer}
${AccountPageLink}
${CampaignOverviewPageLink}

View File

@@ -1,5 +1,6 @@
import { gql } from "graphql-tag"
import { Alert_CollectionPage } from "../../Fragments/Blocks/Alert.graphql"
import { CardsGrid_CollectionPage } from "../../Fragments/Blocks/CardsGrid.graphql"
import { DynamicContent_CollectionPage } from "../../Fragments/Blocks/DynamicContent.graphql"
import { Shortcuts_CollectionPage } from "../../Fragments/Blocks/Shortcuts.graphql"
@@ -35,6 +36,7 @@ export const GetCollectionPage = gql`
...UspGrid_CollectionPage
...DynamicContent_CollectionPage
...VideoCard_CollectionPage
...Alert_CollectionPage
}
system {
...System
@@ -55,6 +57,7 @@ export const GetCollectionPage = gql`
${DynamicContent_CollectionPage}
${VideoCard_CollectionPage}
${Video}
${Alert_CollectionPage}
`
export const GetDaDeEnUrlsCollectionPage = gql`

View File

@@ -1,6 +1,7 @@
import { gql } from "graphql-tag"
import { Accordion_ContentPage } from "../../Fragments/Blocks/Accordion.graphql"
import { Alert_ContentPage } from "../../Fragments/Blocks/Alert.graphql"
import { CardsGrid_ContentPage } from "../../Fragments/Blocks/CardsGrid.graphql"
import { Content_ContentPage } from "../../Fragments/Blocks/Content.graphql"
import { DynamicContent_ContentPage } from "../../Fragments/Blocks/DynamicContent.graphql"
@@ -112,6 +113,7 @@ export const GetContentPageBlocksBatch2 = gql`
...Table_ContentPage
...TextCols_ContentPage
...UspGrid_ContentPage
...Alert_ContentPage
}
}
}
@@ -120,6 +122,7 @@ export const GetContentPageBlocksBatch2 = gql`
${Table_ContentPage}
${TextCols_ContentPage}
${UspGrid_ContentPage}
${Alert_ContentPage}
`
export const GetDaDeEnUrlsContentPage = gql`