Skip to content

Commit

Permalink
Modify dynamic OAS article page to use template (#945)
Browse files Browse the repository at this point in the history
* update OAS article queries to support new fragments

* update OAS article page to use template
  • Loading branch information
will0684 authored Dec 13, 2023
1 parent 3a1c9c6 commit 19705ac
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 234 deletions.
102 changes: 100 additions & 2 deletions graphql/queries/oasBenefitsEstimatorArticlesQuery.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
query getOASBenefitsEstimatorArticles {
sclabsPageV1List (
sclabsPageV1List(
filter: {
scContentType: {
_expressions: [
Expand Down Expand Up @@ -69,7 +69,83 @@ query getOASBenefitsEstimatorArticles {
scNoIndex
scNoFollow
scFragments {
... on SclabsCompContentImageV1Model {
_model {
... on ModelInfo {
title
}
}
scId
scLabContent {
scId
scContentEn {
json
}
scContentFr {
json
}
}
scLabImage {
... on SclabsImageV1Model {
scId
scImageEn {
... on ImageRef {
_publishUrl
width
height
}
... on DocumentRef {
_publishUrl
}
}
scImageFr {
... on ImageRef {
_publishUrl
width
height
}
... on DocumentRef {
_publishUrl
}
}
scImageMobileEn {
... on ImageRef {
_publishUrl
width
height
}
... on DocumentRef {
_publishUrl
}
}
scImageMobileFr {
... on ImageRef {
_publishUrl
width
height
}
... on DocumentRef {
_publishUrl
}
}
scImageAltTextEn
scImageAltTextFr
scImageCaptionEn {
json
}
scImageCaptionFr {
json
}
}
}
scLabLayout
}
... on SclabsContentV1Model {
_model {
... on ModelInfo {
title
}
}
_path
scId
scContentEn {
Expand All @@ -80,6 +156,11 @@ query getOASBenefitsEstimatorArticles {
}
}
... on SclabsImageV1Model {
_model {
... on ModelInfo {
title
}
}
scId
scImageEn {
... on ImageRef {
Expand Down Expand Up @@ -131,6 +212,11 @@ query getOASBenefitsEstimatorArticles {
}
}
... on SclabsButtonV1Model {
_model {
... on ModelInfo {
title
}
}
scId
scTitleEn
scTitleFr
Expand All @@ -139,6 +225,11 @@ query getOASBenefitsEstimatorArticles {
scButtonType
}
... on SclabsFeatureV1Model {
_model {
... on ModelInfo {
title
}
}
scId
scTitleEn
scTitleFr
Expand All @@ -158,6 +249,7 @@ query getOASBenefitsEstimatorArticles {
_publishUrl
}
}
scImageAltTextEn
scImageFr {
... on ImageRef {
_publishUrl
Expand All @@ -168,6 +260,7 @@ query getOASBenefitsEstimatorArticles {
_publishUrl
}
}
scImageAltTextFr
scFragments {
... on SclabsAlertV1Model {
_path
Expand Down Expand Up @@ -195,6 +288,11 @@ query getOASBenefitsEstimatorArticles {
}
}
... on TooltipV1Model {
_model {
... on ModelInfo {
title
}
}
_path
scId
scTitleEn
Expand All @@ -209,4 +307,4 @@ query getOASBenefitsEstimatorArticles {
}
}
}
}
}
Loading

0 comments on commit 19705ac

Please sign in to comment.