department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 69 forks source link

VATEAM-90652: Create List & Loop pattern #19816

Closed derekhouck closed 2 days ago

derekhouck commented 1 week ago

Description

Creates a Paragraph type in Drupal for the "List & Loop" pattern. (See the Multiple responses documentation for more details on the pattern.) The Paragraph type includes an "Optional?" boolean field. Adds the new Paragraph type to the list of available Paragraph types in the "Steps" field of the Digital Form content type.

Testing done

Screenshots

The "List & Loop" pattern as part of the "Add Step" modal:

Screenshot 2024-11-06 at 2 46 22 PM

An expanded "List & Loop" Paragraph inside the "Steps" field of a Digital Form:

Screenshot 2024-11-06 at 2 47 56 PM

QA steps

As an administrator

  1. Go to Manage > Content > Add content > Digital Form
  2. In the "Steps" field, click "Add Step"
    • [ ] Verify "Digital Form: List & Loop" appears as one of the patterns in the "Add Step" modal.
  3. Click "Add" underneath "Digital Form: List & Loop"
    • [ ] Verify the "Digital Form: List & Loop" Paragraph appears expanded in the "Steps" field.
    • [ ] Verify the "Title" field is required and has a default value of "Multiple responses"
    • [ ] Verify a checkbox field is present labeled "Optional?"
  4. Select the "Optional?" checkbox
  5. Fill out the other required fields on the Digital Form and click "Save" at the bottom of the page.
    • [ ] Verify the Digital Form saves successfully.
    • [ ] Verify the "Multiple responses" Paragraph is included in the "Steps" field of the view page.
    • [ ] Verify the "Optional?" field is set to "Yes"

Definition of Done

Select Team for PR review

Is this PR blocked by another PR?

Does this PR need review from a Product Owner

CMS user-facing announcement

Is an announcement needed to let editors know of this change?

github-actions[bot] commented 1 week ago

Checking composer.lock changes...

github-actions[bot] commented 1 week ago

GitHub Workflows (.github/workflows/*.yml)

Have you...