Merged in feat/rework-contentstack (pull request #3493)

Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation

* Remove all REFS

* Revalidate correct language

* PR fixes

* PR fixes

* Throw when errors from contentstack api


Approved-by: Joakim Jäderberg
This commit is contained in:
Linus Flood
2026-01-27 12:38:36 +00:00
parent a5e214f783
commit 5fc93472f4
193 changed files with 489 additions and 9018 deletions

View File

@@ -1,17 +1,8 @@
import { gql } from "graphql-tag"
import {
Accordion_AccountPage,
Accordion_AccountPageRefs,
} from "../../Fragments/Blocks/Accordion.graphql"
import {
DynamicContent_AccountPage,
DynamicContent_AccountPageRefs,
} from "../../Fragments/Blocks/DynamicContent.graphql"
import {
Shortcuts_AccountPage,
Shortcuts_AccountPageRefs,
} from "../../Fragments/Blocks/Shortcuts.graphql"
import { Accordion_AccountPage } from "../../Fragments/Blocks/Accordion.graphql"
import { DynamicContent_AccountPage } from "../../Fragments/Blocks/DynamicContent.graphql"
import { Shortcuts_AccountPage } from "../../Fragments/Blocks/Shortcuts.graphql"
import { TextContent_AccountPage } from "../../Fragments/Blocks/TextContent.graphql"
import { System } from "../../Fragments/System.graphql"
@@ -48,26 +39,6 @@ export const GetAccountPage = gql`
${TextContent_AccountPage}
`
export const GetAccountPageRefs = gql`
query GetAccountPageRefs($locale: String!, $uid: String!) {
account_page(locale: $locale, uid: $uid) {
content {
__typename
...Accordion_AccountPageRefs
...DynamicContent_AccountPageRefs
...Shortcuts_AccountPageRefs
}
system {
...System
}
}
}
${System}
${Accordion_AccountPageRefs}
${DynamicContent_AccountPageRefs}
${Shortcuts_AccountPageRefs}
`
export const GetDaDeEnUrlsAccountPage = gql`
query GetDaDeEnUrlsAccountPage($uid: String!) {
de: account_page(locale: "de", uid: $uid) {