Skip to content

Commit

Permalink
VACMS-10938: Add reusable Q&A to CLP (#15577)
Browse files Browse the repository at this point in the history
* VACMS-10938: Add reusable Q&A to CLP

* VACMS-10938: Fix enable segment panel for new field

* VACMS-10938: Cypress test for new CLP Q&A Form button

* VACMS-10938: Update CLP FAQ help text

* VACMS-10938: Text updates for CLP Q&A
  • Loading branch information
chri5tia authored Oct 17, 2023
1 parent 8deed1b commit 1fc9aef
Show file tree
Hide file tree
Showing 19 changed files with 280 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies:
- field.field.node.campaign_landing_page.field_clp_resources_header
- field.field.node.campaign_landing_page.field_clp_resources_intro_text
- field.field.node.campaign_landing_page.field_clp_resources_panel
- field.field.node.campaign_landing_page.field_clp_reusable_q_a
- field.field.node.campaign_landing_page.field_clp_spotlight_cta
- field.field.node.campaign_landing_page.field_clp_spotlight_header
- field.field.node.campaign_landing_page.field_clp_spotlight_intro_text
Expand Down Expand Up @@ -261,14 +262,15 @@ third_party_settings:
children:
- field_clp_faq_panel
- field_clp_faq_paragraphs
- field_clp_reusable_q_a
- field_clp_faq_cta
label: FAQs
region: content
parent_name: ''
weight: 8
format_type: detailswithimage
format_settings:
description: 'This optional segment allows you to add reusable question and answer content related to the campaign''s message.'
description: 'This optional segment allows you to add question and answer content related to the campaign''s message. Choose between creating a page-specific Q&A or adding a reusable Q&A. '
visual_guide_file_name: faqs-guide.svg
visual_guide_alt_text: 'Basic visual layout of the faqs page segment.'
required_fields: '1'
Expand Down Expand Up @@ -315,6 +317,8 @@ content:
field_widget_replace: 0
open: 0
field_widget_display_settings: { }
additional_fields:
options: null
third_party_settings:
limited_field_widgets:
limit_values: '2'
Expand Down Expand Up @@ -343,6 +347,7 @@ content:
maxlength: 70
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand All @@ -367,10 +372,12 @@ content:
selection_mode: selection_append
field_widget_edit: 0
field_widget_replace: 0
additional_fields:
options: null
third_party_settings: { }
field_clp_faq_cta:
type: paragraphs
weight: 40
weight: 42
region: content
settings:
title: Paragraph
Expand All @@ -389,14 +396,14 @@ content:
third_party_settings: { }
field_clp_faq_panel:
type: boolean_checkbox
weight: 36
weight: 39
region: content
settings:
display_label: true
third_party_settings: { }
field_clp_faq_paragraphs:
type: paragraphs
weight: 37
weight: 40
region: content
settings:
title: Paragraph
Expand Down Expand Up @@ -431,6 +438,7 @@ content:
collapsible: false
collapsed: false
revision: true
removed_reference: optional
allow_system_delete: false
third_party_settings:
entity_browser_entity_form:
Expand Down Expand Up @@ -465,6 +473,7 @@ content:
maxlength: 70
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand All @@ -478,6 +487,7 @@ content:
maxlength: 350
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: "Maximum <span class=\"maxlength_count\">@maxlength</span> characters, but 120 characters is recommended. <span class=\"current_count\">@current_length</span> characters, <span class=\"remaining_count\">@remaining_count</span> characters remaining\r\n"
third_party_settings: { }
Expand All @@ -488,6 +498,34 @@ content:
settings:
display_label: true
third_party_settings: { }
field_clp_reusable_q_a:
type: paragraphs
weight: 41
region: content
settings:
title: Paragraph
title_plural: Paragraphs
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: button
form_display_mode: default
default_paragraph_type: _none
features:
add_above: '0'
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings:
paragraphs_features:
add_in_between: false
add_in_between_link_count: 3
delete_confirmation: false
show_drag_and_drop: true
limited_field_widgets:
limit_values: '0'
change_labels:
add_another: ''
field_clp_spotlight_cta:
type: paragraphs
weight: 16
Expand Down Expand Up @@ -517,6 +555,7 @@ content:
maxlength: 0
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: true
textcount_status_message: 'Maxlength: <span class="maxlength_count">@maxlength</span><br />Used: <span class="current_count">@current_length</span><br />Remaining: <span class="remaining_count">@remaining_count</span>'
third_party_settings: { }
Expand All @@ -530,6 +569,7 @@ content:
maxlength: 350
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand Down Expand Up @@ -582,6 +622,7 @@ content:
maxlength: 70
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining.'
third_party_settings: { }
Expand All @@ -595,6 +636,7 @@ content:
maxlength: 350
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: 'Maximum <span class="maxlength_count">@maxlength</span> characters, but 120 characters is recommended. <br /> <span class="current_count">@current_length</span> characters,<br /><span class="remaining_count">@remaining_count</span> characters remaining.'
third_party_settings: { }
Expand Down Expand Up @@ -635,6 +677,7 @@ content:
maxlength: 0
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand Down Expand Up @@ -666,6 +709,7 @@ content:
maxlength: 0
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: 'Characters remaining: <span class="remaining_count">@remaining_count</span>'
third_party_settings: { }
Expand All @@ -679,6 +723,7 @@ content:
maxlength: 300
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand All @@ -698,6 +743,7 @@ content:
collapsible: false
collapsed: false
revision: true
removed_reference: optional
allow_system_delete: false
third_party_settings:
entity_browser_entity_form:
Expand All @@ -712,6 +758,7 @@ content:
maxlength: 350
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand All @@ -726,6 +773,7 @@ content:
maxlength: 0
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand Down Expand Up @@ -833,6 +881,7 @@ content:
maxlength: 70
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- field.field.node.campaign_landing_page.field_clp_resources_header
- field.field.node.campaign_landing_page.field_clp_resources_intro_text
- field.field.node.campaign_landing_page.field_clp_resources_panel
- field.field.node.campaign_landing_page.field_clp_reusable_q_a
- field.field.node.campaign_landing_page.field_clp_spotlight_cta
- field.field.node.campaign_landing_page.field_clp_spotlight_header
- field.field.node.campaign_landing_page.field_clp_spotlight_intro_text
Expand Down Expand Up @@ -307,6 +308,15 @@ content:
third_party_settings: { }
weight: 16
region: content
field_clp_reusable_q_a:
type: entity_reference_revisions_entity_view
label: above
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 28
region: content
field_clp_spotlight_cta:
type: entity_reference_revisions_entity_view
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- field.field.node.campaign_landing_page.field_clp_resources_header
- field.field.node.campaign_landing_page.field_clp_resources_intro_text
- field.field.node.campaign_landing_page.field_clp_resources_panel
- field.field.node.campaign_landing_page.field_clp_reusable_q_a
- field.field.node.campaign_landing_page.field_clp_spotlight_cta
- field.field.node.campaign_landing_page.field_clp_spotlight_header
- field.field.node.campaign_landing_page.field_clp_spotlight_intro_text
Expand Down Expand Up @@ -75,6 +76,7 @@ hidden:
field_clp_resources_header: true
field_clp_resources_intro_text: true
field_clp_resources_panel: true
field_clp_reusable_q_a: true
field_clp_spotlight_cta: true
field_clp_spotlight_header: true
field_clp_spotlight_intro_text: true
Expand Down
2 changes: 1 addition & 1 deletion config/sync/entity_browser.browser.q_a_browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ display: modal
display_configuration:
width: ''
height: ''
link_text: 'Place Q&As'
link_text: 'Add Reusable Q&As'
auto_open: false
selection_display: no_display
selection_display_configuration: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ dependencies:
- paragraphs.paragraphs_type.q_a
module:
- entity_reference_revisions
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: node.campaign_landing_page.field_clp_faq_paragraphs
field_name: field_clp_faq_paragraphs
entity_type: node
bundle: campaign_landing_page
label: 'Add between 3 and 10 Q&As'
description: ''
label: 'Page-Specific Q&A'
description: 'Add questions and answers that provide information specific to the page content.'
required: false
translatable: false
default_value: { }
Expand All @@ -37,9 +41,15 @@ settings:
audience_topics:
weight: 45
enabled: false
basic_accordion:
weight: 50
enabled: false
button:
weight: 46
enabled: false
centralized_content_descriptor:
weight: 52
enabled: false
checklist:
weight: 47
enabled: false
Expand All @@ -61,9 +71,15 @@ settings:
email_contact:
weight: 53
enabled: false
embedded_video:
weight: 60
enabled: false
expandable_text:
weight: 54
enabled: false
featured_content:
weight: 62
enabled: false
health_care_local_facility_servi:
weight: 55
enabled: false
Expand All @@ -82,6 +98,9 @@ settings:
lists_of_links:
weight: 58
enabled: false
magichead_group:
weight: 69
enabled: false
media:
weight: 61
enabled: false
Expand Down Expand Up @@ -133,9 +152,6 @@ settings:
staff_profile:
weight: 77
enabled: false
starred_horizontal_rule:
weight: 78
enabled: false
step:
weight: 79
enabled: false
Expand Down
Loading

0 comments on commit 1fc9aef

Please sign in to comment.