From c9d4c09ec21413cbb4f3dc79e2532be037852e12 Mon Sep 17 00:00:00 2001 From: Christian Burk Date: Sat, 18 Nov 2023 20:42:19 -0600 Subject: [PATCH] VACMS-15977: Adds accordion to VBA Facility Prepare for your visit (#16161) * VACMS-15977: Makes prepare for visit config changes * VACMS-15977: Makes node:view better match node:edit --------- Co-authored-by: Steve Wirt --- ...form_display.node.vba_facility.default.yml | 54 ++++++++++++------- ...view_display.node.vba_facility.default.yml | 34 ++++++++---- ...lay.node.vba_facility.external_content.yml | 4 +- ...ew_display.node.vba_facility.ief_table.yml | 4 +- ..._view_display.node.vba_facility.teaser.yml | 4 +- ....vba_facility.field_prepare_for_visit.yml} | 18 +++---- 6 files changed, 73 insertions(+), 45 deletions(-) rename config/sync/{field.field.node.vba_facility.field_location_services.yml => field.field.node.vba_facility.field_prepare_for_visit.yml} (90%) diff --git a/config/sync/core.entity_form_display.node.vba_facility.default.yml b/config/sync/core.entity_form_display.node.vba_facility.default.yml index c82062ac1a..a489fb8d56 100644 --- a/config/sync/core.entity_form_display.node.vba_facility.default.yml +++ b/config/sync/core.entity_form_display.node.vba_facility.default.yml @@ -18,7 +18,6 @@ dependencies: - field.field.node.vba_facility.field_geolocation - field.field.node.vba_facility.field_intro_text - field.field.node.vba_facility.field_last_saved_by_an_editor - - field.field.node.vba_facility.field_location_services - field.field.node.vba_facility.field_media - field.field.node.vba_facility.field_non_va_location_url - field.field.node.vba_facility.field_non_va_official_name @@ -27,6 +26,7 @@ dependencies: - field.field.node.vba_facility.field_operating_status_facility - field.field.node.vba_facility.field_operating_status_more_info - field.field.node.vba_facility.field_phone_number + - field.field.node.vba_facility.field_prepare_for_visit - field.field.node.vba_facility.field_shared_vha_location - field.field.node.vba_facility.field_table_of_contents - field.field.node.vba_facility.field_timezone @@ -45,6 +45,7 @@ dependencies: - media_library - office_hours - paragraphs + - paragraphs_features - telephone - textfield_counter - tzfield @@ -159,19 +160,20 @@ third_party_settings: description_display: after group_prepare_for_your_visit: children: - - field_location_services + - field_prepare_for_visit label: 'Prepare for your visit' region: content parent_name: '' weight: 7 - format_type: details + format_type: fieldset format_settings: classes: '' show_empty_fields: true id: prepare-for-your-visit - open: true description: 'Add location services available at this facility such as transportation, parking, visiting hours, lodging options, food options, etc. Do not use this for benefit services.' required_fields: true + open: true + description_display: after group_benefit_office_overview: children: - field_cc_vba_facility_overview @@ -417,22 +419,6 @@ content: region: content settings: { } third_party_settings: { } - field_location_services: - type: entity_reference_paragraphs - weight: 5 - region: content - settings: - title: Paragraph - title_plural: Paragraphs - edit_mode: closed - add_mode: button - form_display_mode: default - default_paragraph_type: _none - third_party_settings: - limited_field_widgets: - limit_values: '0' - change_labels: - add_another: '' field_media: type: media_library_widget weight: 4 @@ -496,6 +482,34 @@ content: settings: placeholder: '' third_party_settings: { } + field_prepare_for_visit: + type: paragraphs + weight: 27 + region: content + settings: + title: accordion + title_plural: accordions + edit_mode: closed + 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: '0' + 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_shared_vha_location: type: entity_reference_autocomplete weight: 17 diff --git a/config/sync/core.entity_view_display.node.vba_facility.default.yml b/config/sync/core.entity_view_display.node.vba_facility.default.yml index f32bd0ad05..e8636a83fd 100644 --- a/config/sync/core.entity_view_display.node.vba_facility.default.yml +++ b/config/sync/core.entity_view_display.node.vba_facility.default.yml @@ -18,7 +18,6 @@ dependencies: - field.field.node.vba_facility.field_geolocation - field.field.node.vba_facility.field_intro_text - field.field.node.vba_facility.field_last_saved_by_an_editor - - field.field.node.vba_facility.field_location_services - field.field.node.vba_facility.field_media - field.field.node.vba_facility.field_non_va_location_url - field.field.node.vba_facility.field_non_va_official_name @@ -27,6 +26,7 @@ dependencies: - field.field.node.vba_facility.field_operating_status_facility - field.field.node.vba_facility.field_operating_status_more_info - field.field.node.vba_facility.field_phone_number + - field.field.node.vba_facility.field_prepare_for_visit - field.field.node.vba_facility.field_shared_vha_location - field.field.node.vba_facility.field_table_of_contents - field.field.node.vba_facility.field_timezone @@ -247,6 +247,20 @@ third_party_settings: tooltip_description: "Why can’t I edit this? \r\nNational editors keep this content standardized to provide consistent messaging for facilities nationwide." open: false required_fields: false + group_prepare_for_your_visit: + children: + - field_prepare_for_visit + label: 'Prepare for your visit' + parent_name: '' + region: content + weight: 6 + format_type: fieldset + format_settings: + classes: '' + show_empty_fields: false + id: '' + description: '' + description_display: after id: node.vba_facility.default targetEntityType: node bundle: vba_facility @@ -330,15 +344,6 @@ content: third_party_settings: { } weight: 14 region: content - field_location_services: - type: entity_reference_revisions_entity_view - label: above - settings: - view_mode: default - link: '' - third_party_settings: { } - weight: 6 - region: content field_media: type: entity_reference_entity_view label: above @@ -431,6 +436,15 @@ content: third_party_settings: { } weight: 5 region: content + field_prepare_for_visit: + type: entity_reference_revisions_entity_view + label: above + settings: + view_mode: default + link: '' + third_party_settings: { } + weight: 17 + region: content field_shared_vha_location: type: entity_reference_label label: above diff --git a/config/sync/core.entity_view_display.node.vba_facility.external_content.yml b/config/sync/core.entity_view_display.node.vba_facility.external_content.yml index e4b362aee6..5d0693987c 100644 --- a/config/sync/core.entity_view_display.node.vba_facility.external_content.yml +++ b/config/sync/core.entity_view_display.node.vba_facility.external_content.yml @@ -19,7 +19,6 @@ dependencies: - field.field.node.vba_facility.field_geolocation - field.field.node.vba_facility.field_intro_text - field.field.node.vba_facility.field_last_saved_by_an_editor - - field.field.node.vba_facility.field_location_services - field.field.node.vba_facility.field_media - field.field.node.vba_facility.field_non_va_location_url - field.field.node.vba_facility.field_non_va_official_name @@ -28,6 +27,7 @@ dependencies: - field.field.node.vba_facility.field_operating_status_facility - field.field.node.vba_facility.field_operating_status_more_info - field.field.node.vba_facility.field_phone_number + - field.field.node.vba_facility.field_prepare_for_visit - field.field.node.vba_facility.field_shared_vha_location - field.field.node.vba_facility.field_table_of_contents - field.field.node.vba_facility.field_timezone @@ -253,10 +253,10 @@ hidden: field_cc_vba_facility_overview: true field_intro_text: true field_last_saved_by_an_editor: true - field_location_services: true field_media: true field_operating_status_facility: true field_operating_status_more_info: true + field_prepare_for_visit: true field_table_of_contents: true flag_awaiting_csv: true flag_awaiting_editor: true diff --git a/config/sync/core.entity_view_display.node.vba_facility.ief_table.yml b/config/sync/core.entity_view_display.node.vba_facility.ief_table.yml index 097da27929..3bcb081bd2 100644 --- a/config/sync/core.entity_view_display.node.vba_facility.ief_table.yml +++ b/config/sync/core.entity_view_display.node.vba_facility.ief_table.yml @@ -19,7 +19,6 @@ dependencies: - field.field.node.vba_facility.field_geolocation - field.field.node.vba_facility.field_intro_text - field.field.node.vba_facility.field_last_saved_by_an_editor - - field.field.node.vba_facility.field_location_services - field.field.node.vba_facility.field_media - field.field.node.vba_facility.field_non_va_location_url - field.field.node.vba_facility.field_non_va_official_name @@ -28,6 +27,7 @@ dependencies: - field.field.node.vba_facility.field_operating_status_facility - field.field.node.vba_facility.field_operating_status_more_info - field.field.node.vba_facility.field_phone_number + - field.field.node.vba_facility.field_prepare_for_visit - field.field.node.vba_facility.field_shared_vha_location - field.field.node.vba_facility.field_table_of_contents - field.field.node.vba_facility.field_timezone @@ -188,11 +188,11 @@ hidden: field_geolocation: true field_intro_text: true field_last_saved_by_an_editor: true - field_location_services: true field_media: true field_non_va_location_url: true field_non_va_official_name: true field_office: true + field_prepare_for_visit: true field_shared_vha_location: true field_table_of_contents: true field_timezone: true diff --git a/config/sync/core.entity_view_display.node.vba_facility.teaser.yml b/config/sync/core.entity_view_display.node.vba_facility.teaser.yml index bab18a82b5..ff8e2ad03e 100644 --- a/config/sync/core.entity_view_display.node.vba_facility.teaser.yml +++ b/config/sync/core.entity_view_display.node.vba_facility.teaser.yml @@ -19,7 +19,6 @@ dependencies: - field.field.node.vba_facility.field_geolocation - field.field.node.vba_facility.field_intro_text - field.field.node.vba_facility.field_last_saved_by_an_editor - - field.field.node.vba_facility.field_location_services - field.field.node.vba_facility.field_media - field.field.node.vba_facility.field_non_va_location_url - field.field.node.vba_facility.field_non_va_official_name @@ -28,6 +27,7 @@ dependencies: - field.field.node.vba_facility.field_operating_status_facility - field.field.node.vba_facility.field_operating_status_more_info - field.field.node.vba_facility.field_phone_number + - field.field.node.vba_facility.field_prepare_for_visit - field.field.node.vba_facility.field_shared_vha_location - field.field.node.vba_facility.field_table_of_contents - field.field.node.vba_facility.field_timezone @@ -66,7 +66,6 @@ hidden: field_geolocation: true field_intro_text: true field_last_saved_by_an_editor: true - field_location_services: true field_media: true field_non_va_location_url: true field_non_va_official_name: true @@ -75,6 +74,7 @@ hidden: field_operating_status_facility: true field_operating_status_more_info: true field_phone_number: true + field_prepare_for_visit: true field_shared_vha_location: true field_table_of_contents: true field_timezone: true diff --git a/config/sync/field.field.node.vba_facility.field_location_services.yml b/config/sync/field.field.node.vba_facility.field_prepare_for_visit.yml similarity index 90% rename from config/sync/field.field.node.vba_facility.field_location_services.yml rename to config/sync/field.field.node.vba_facility.field_prepare_for_visit.yml index ad4bf16910..1dcd633699 100644 --- a/config/sync/field.field.node.vba_facility.field_location_services.yml +++ b/config/sync/field.field.node.vba_facility.field_prepare_for_visit.yml @@ -1,22 +1,22 @@ -uuid: 03737c7e-c4fb-4fd1-b2c8-c6d825f17780 +uuid: 2a9fff3f-dea4-411f-8daa-cc8ad1d5cd4c langcode: en status: true dependencies: config: - - field.storage.node.field_location_services + - field.storage.node.field_prepare_for_visit - node.type.vba_facility - - paragraphs.paragraphs_type.health_care_local_facility_servi + - paragraphs.paragraphs_type.basic_accordion module: - entity_reference_revisions - tmgmt_content third_party_settings: tmgmt_content: excluded: false -id: node.vba_facility.field_location_services -field_name: field_location_services +id: node.vba_facility.field_prepare_for_visit +field_name: field_prepare_for_visit entity_type: node bundle: vba_facility -label: 'Location services' +label: 'Prepare for your visit accordions' description: '' required: false translatable: true @@ -26,7 +26,7 @@ settings: handler: 'default:paragraph' handler_settings: target_bundles: - health_care_local_facility_servi: health_care_local_facility_servi + basic_accordion: basic_accordion negate: 0 target_bundles_drag_drop: address: @@ -43,7 +43,7 @@ settings: enabled: false basic_accordion: weight: 50 - enabled: false + enabled: true button: weight: 51 enabled: false @@ -82,7 +82,7 @@ settings: enabled: false health_care_local_facility_servi: weight: 63 - enabled: true + enabled: false link_teaser: weight: 64 enabled: false