Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

component: paragraph--contact_information (Contact information) #8613

Closed
3 tasks done
amponce opened this issue Apr 5, 2022 · 0 comments · Fixed by department-of-veterans-affairs/next-build#381
Closed
3 tasks done
Assignees
Labels
Accelerated Publishing Needs refining Issue status next-build FE Repository that will replace content-build. Uses NextJS, builds static pages.

Comments

@amponce
Copy link

amponce commented Apr 5, 2022

Description

A component is needed in the next-build system to render paragraph--contact_information. This component should be able to be used standalone or to render field data for other nodes and paragraphs.

Tasks

Preview Give feedback
  1. Accelerated Publishing Needs refining
    penny-lischer
  2. Accelerated Publishing Needs refining next-build
    tjheffner
  3. Accelerated Publishing Needs refining
    tjheffner

Supporting detail

Paragraph/Node: paragraph--contact_information

CMS structure: paragraphs_type/contact_information/fields

API query: jsonapi/paragraph/contact_information

Existing template(s):contact_information.drupal.liquid

Existing/example existing GraphQL:contactInformation.paragraph.graphql.js

Logic notes:

  • Check for Additional_Contact
  • Check for Contact_Info_Switch to equal either BHC | DC (benifits hub contact or default contact)

Example to render collection of objects:

    const paragraph--contact_information = await getResourceCollectionFromContext(
        'paragraph--contact_information',
        context,
        {} // params 
    );

Example data structure (subject to refinement):

{
    "type": "paragraph--contact_information",
    "id": "ebfce5d0-1bc5-45b9-93e9-669a1c1da645",
    "drupal_internal__id": 13094,
    "drupal_internal__revision_id": 145722,
    "langcode": "en",
    "status": true,
    "created": "2020-10-05T20:32:42+00:00",
    "parent_id": "6950",
    "parent_type": "node",
    "parent_field_name": "field_contact_information",
    "behavior_settings": [],
    "default_langcode": true,
    "revision_translation_affected": true,
    "field_contact_info_switch": "DC",
    "field_markup": null,
    "links": {
        "self": {
            "href": "http://va-gov-cms.ddev.site/jsonapi/paragraph/contact_information/ebfce5d0-1bc5-45b9-93e9-669a1c1da645"
        }
    },
    "paragraph_type": {
        "type": "paragraphs_type--paragraphs_type",
        "id": "4619702e-c2f3-4e29-90c0-a0e2a89c20c4",
        "resourceIdObjMeta": {
            "drupal_internal__target_id": "contact_information"
        }
    },
    "field_additional_contact": {
        "type": "paragraph--email_contact",
        "id": "e5184527-0e7f-4071-bb0b-a99c3eb04839",
        "resourceIdObjMeta": {
            "target_revision_id": 145721,
            "drupal_internal__target_id": 13333
        }
    },
    "field_benefit_hub_contacts": null,
    "field_contact_default": {
        "type": "node--support_service",
        "id": "79938f13-7be8-4ce6-92ea-35671532c645",
        "resourceIdObjMeta": {
            "drupal_internal__target_id": 61
        }
    },
    "relationshipNames": [
        "paragraph_type",
        "field_additional_contact",
        "field_benefit_hub_contacts",
        "field_contact_default"
    ]
}

Further info:paragraphs/contact_information.md

@amponce amponce changed the title Component: paragraph-contact_information Component: paragraph--contact_information Apr 6, 2022
@TheBoatyMcBoatFace TheBoatyMcBoatFace added the next-build FE Repository that will replace content-build. Uses NextJS, builds static pages. label Dec 23, 2022
@jilladams jilladams added the CMS Team CMS Product team that manages both editor exp and devops label Jan 25, 2023
@timcosgrove timcosgrove added Accelerated Publishing and removed CMS Team CMS Product team that manages both editor exp and devops Platform CMS Team labels Jul 3, 2023
@timcosgrove timcosgrove changed the title Component: paragraph--contact_information component: paragraph--contact_information (Contact information) Jul 17, 2023
This was referenced Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accelerated Publishing Needs refining Issue status next-build FE Repository that will replace content-build. Uses NextJS, builds static pages.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants