fix(SW-438): add ContentCard, ScriptedCard and Shortcuts to ContentPage sidebar

This commit is contained in:
Matilda Landström
2024-10-14 17:11:21 +02:00
parent 66abe066ab
commit 01db5aa192
14 changed files with 290 additions and 13 deletions

View File

@@ -0,0 +1,37 @@
#import "../AccountPage/Ref.graphql"
#import "../ContentPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../Blocks/TeaserCard.graphql"
#import "../Blocks/Refs/TeaserCard.graphql"
fragment ContentCardSidebar_ContentPage on ContentPageSidebarContentCard {
__typename
content_card {
theme
content_cardConnection {
edges {
node {
__typename
...TeaserCardBlock
}
}
}
}
}
fragment ContentCardSidebar_ContentPageRefs on ContentPageSidebarContentCard {
content_card {
content_cardConnection {
edges {
node {
...TeaserCardBlockRef
}
}
}
}
}

View File

@@ -0,0 +1,22 @@
#import "../AccountPage/Ref.graphql"
#import "../ContentPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../Blocks/Shortcuts.graphql"
fragment QuickLinksSidebar_ContentPage on ContentPageSidebarShortcuts {
__typename
shortcuts {
...Shortcuts
}
}
fragment QuickLinksSidebar_ContentPageRefs on ContentPageSidebarShortcuts {
shortcuts {
...ShortcutsRefs
}
}

View File

@@ -0,0 +1,37 @@
#import "../AccountPage/Ref.graphql"
#import "../ContentPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../Blocks/Card.graphql"
#import "../Blocks/Refs/Card.graphql"
fragment ScriptedCardSidebar_ContentPage on ContentPageSidebarScriptedCard {
__typename
scripted_card {
theme
scripted_cardConnection {
edges {
node {
__typename
...CardBlock
}
}
}
}
}
fragment ScriptedCardSidebar_ContentPageRefs on ContentPageSidebarContentCard {
scripted_card {
scripted_cardConnection {
edges {
node {
...CardBlockRef
}
}
}
}
}