ApollosProject / apollos-embeds

Apollos React Embeds that can be used in Webflow and other third-party websites.
https://www.npmjs.com/package/@apollosproject/apollos-embeds
0 stars 0 forks source link

tagged items aren't showing up in feeds #182

Closed redreceipt closed 8 months ago

redreceipt commented 9 months ago

What's the Problem?

Basecamp item

Some tagged items aren't showing up in Feeds

Steps to reproduce

It should contain "You Married The Wrong Person" but it doesn't

Screenshots/Recordings

out

Sherange commented 8 months ago

@redreceipt I check the query results but it doesn't have a data for item "You Married The Wrong Person"

redreceipt commented 8 months ago

OK, could you do me a favor and get a screenshot and paste the failing query here? I know it should be working because the item is tagged with "Marriage" in the DB.

Screenshot 2024-02-29 at 9 40 42 AM
Sherange commented 8 months ago

@redreceipt You Married The Wrong Person is it a item on search result ?

Screenshot 2024-02-29 at 8 20 19 PM
redreceipt commented 8 months ago

Click that marriage link in the search results there, it should show up on the corresponding feed

Sherange commented 8 months ago
Screenshot 2024-02-29 at 8 32 06 PM
query featureFeed($itemId: ID!) {
  node(id: $itemId) {
    ... on FeatureFeed {
      features {
        id
        order
        __typename

        ... on ChipListFeature {
          title
          subtitle
          chips {
            title
            action
            iconName
            id
            relatedNode {
              ... on Url {
                __typename
                url
              }
            }
          }
        }

        ... on ActionBarFeature {
          title
          actions {
            id
            icon
            title
            action
            relatedNode {
              ... on Url {
                __typename
                url
              }
            }
          }
        }

        ... on ActionListFeature {
          title
          subtitle
          actions {
            id
            title
            subtitle
            action
            image {
              sources {
                uri
                blurHash
              }
            }
            relatedNode {
              __typename
              id
            }
          }
        }
        ... on HorizontalMediaListFeature {
          id
          title
          items {
            id
            __typename
            title
            coverImage {
              sources {
                uri
              }
            }
            relatedNode {
              id
              __typename
              ... on ContentItem {
                title
                videos {
                  ...VideoMediaFields
                }
              }
              ... on Url {
                url
              }
              ... on Livestream {
                title
                start
                durationInSeconds
                stream {
                  id
                  originId
                  originType
                  duration
                  sources {
                    uri
                  }
                }
              }
            }
          }
        }
        ... on HorizontalCardListFeature {
          title
          subtitle
          cards {
            ...ContentCard
            relatedNode {
              id
              __typename
              ... on ContentItem {
                title
                videos {
                  ...VideoMediaFields
                }
              }
              ... on Url {
                url
              }
            }
          }
          primaryAction {
            title
            action
            relatedNode {
              id
              __typename
              ... on ContentItem {
                title
                videos {
                  ...VideoMediaFields
                }
              }
            }
          }
        }
        ... on VerticalCardListFeature {
          title
          subtitle
          cards {
            ...ContentCard
          }
        }
        ... on PrayerListFeature {
          id
          title
          subtitle
          order
          isCard
          prayers {
            __typename
            id
            text
            isPrayed
            isAnonymous
            requestor {
              firstName
              lastName
              gender
              birthDate
              photo {
                uri
              }
            }
          }
        }
        ... on HeroListFeature {
          id
          title
          subtitle
          heroCard {
            ...ContentCard
            relatedNode {
              ... on ContentItem {
                originId
                originType
              }
            }
          }
          # These can be card-like items, not just buttons
          actions {
            id
            title
            subtitle
            action
            relatedNode {
              id
              __typename
              ... on ContentItem {
                title
              }
            }
            image {
              sources {
                uri
              }
            }
          }
          primaryAction {
            title
            action
            relatedNode {
              id
              __typename
              ... on ContentItem {
                title
              }
            }
          }
        }
        ... on ButtonFeature {
          action {
            title
            action
            relatedNode {
              id
              __typename
              ... on Url {
                url
              }
            }
          }
        }
        ... on HtmlFeature {
          content
        }
        ... on ScriptureFeature {
          scriptures {
            id
            html
            reference
            copyright
            version
            text
          }
        }
      }
    }
  }
}

    fragment VideoMediaFields on VideoMedia {
    __typename
    id
    key
    name
    sources {
      uri
    }
    duration
    userProgress {
      playhead
      complete
    }
    embedHtml
  }

    fragment ContentCard on CardListItem {
    id
    title
    labelText
    summary
    coverImage {
      name
      sources {
        uri
      }
    }
    hasAction
    action
    actionIcon
    relatedNode {
      id
      __typename
      ... on ContentItem {
        parentItem {
          title
        }
        title
        videos {
          ...VideoMediaFields
        }
      }
      ... on Url {
        url
      }
    }
  }

Variables

{"itemId":"FeatureFeed:69cc8825bbc7612068c77496e3e2d9f48ad2b8906c455d95fdbba65e3b0fe30043d83c63592e2b9827777c0c311f2481f58df788bc99820246ef1fd81be5c36325826cb79e2cd18dd0b9419b0de911ca070a9bdb9f2c77af88823527604ce1f648aaee06063b24533fc8cec5d34c224dbb05080918f6b4ed7b881b551effdd313c9d0ef1bdc15071bb33c8e5d2101fe16ed51e99e93911fdc7aa6d57844b0ec67d870d31426426a10d11749c3d9e9bd9e602e2f27179f258bcccc57b1f837e94"}

Headers

x-church liquid_church

redreceipt commented 8 months ago

Thank you. Can you also show the query used to get the FeatureFeed ID?

Sherange commented 8 months ago

@redreceipt using the same query and feature feed id we set in configuration (index.html ) we load below three sections in search result "I need help with my..", "Quick Links", "Suggested Content"

FeatureFeed:07e1050d-a6c4-4b46-a2a0-12d8fbf1df3c in this case

Screenshot 2024-03-01 at 6 34 20 PM
Sherange commented 8 months ago

and clicking one item from action list will navigate user to above content

Screenshot 2024-03-01 at 6 32 17 PM
redreceipt commented 8 months ago

closing in favor of https://github.com/ApollosProject/apollos-cluster/issues/924