Skip to content

Commit

Permalink
VACMS-15911: Updates config and code for spotlight content (#16145)
Browse files Browse the repository at this point in the history
* VACMS-15911: Updates config and code for spotlight content

* VACMS-15911: Updates the labeling of spotlight in VBA form

* VACMS-15911: Updates VBA node:view

* VACMS-15911: Update config after PR

* VACMS-15911 Move local spotlight out of external content.

---------

Co-authored-by: Steve Wirt <[email protected]>
Co-authored-by: Steve Wirt <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2023
1 parent 73d10d8 commit fe33e58
Show file tree
Hide file tree
Showing 18 changed files with 287 additions and 171 deletions.
83 changes: 60 additions & 23 deletions config/sync/core.entity_form_display.node.vba_facility.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ dependencies:
- field.field.node.vba_facility.field_cc_cant_find_benefits
- field.field.node.vba_facility.field_cc_get_updates_from_vba
- field.field.node.vba_facility.field_cc_national_spotlight_1
- field.field.node.vba_facility.field_cc_national_spotlight_2
- field.field.node.vba_facility.field_cc_national_spotlight_3
- field.field.node.vba_facility.field_cc_vba_facility_overview
- field.field.node.vba_facility.field_dismissible_option
- field.field.node.vba_facility.field_facility_locator_api_id
- field.field.node.vba_facility.field_facility_vba_classificatio
- 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_local_spotlight
- 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
Expand Down Expand Up @@ -243,11 +242,9 @@ third_party_settings:
group_national_spotlight:
children:
- field_cc_national_spotlight_1
- field_cc_national_spotlight_2
- field_cc_national_spotlight_3
label: 'National spotlight'
region: content
parent_name: ''
parent_name: group_spotlight_content
weight: 9
format_type: tooltip
format_settings:
Expand Down Expand Up @@ -324,6 +321,22 @@ third_party_settings:
id: ''
classes: ''
show_empty_fields: 0
group_spotlight_content:
children:
- group_national_spotlight
- field_local_spotlight
label: 'Spotlight content'
region: content
parent_name: ''
weight: 8
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: false
id: ''
description: ''
required_fields: true
description_display: after
id: node.vba_facility.default
targetEntityType: node
bundle: vba_facility
Expand Down Expand Up @@ -423,24 +436,6 @@ content:
show_link_to_source: '1'
show_source_updated_date: '1'
third_party_settings: { }
field_cc_national_spotlight_2:
type: entity_field_fetch_widget
weight: 11
region: content
settings:
show_field_label: '1'
show_link_to_source: '1'
show_source_updated_date: '1'
third_party_settings: { }
field_cc_national_spotlight_3:
type: entity_field_fetch_widget
weight: 12
region: content
settings:
show_field_label: '1'
show_link_to_source: '1'
show_source_updated_date: '1'
third_party_settings: { }
field_cc_vba_facility_overview:
type: entity_field_fetch_widget
weight: 2
Expand Down Expand Up @@ -491,6 +486,48 @@ content:
region: content
settings: { }
third_party_settings: { }
field_local_spotlight:
type: paragraphs
weight: 10
region: content
settings:
title: spotlight
title_plural: spotlights
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: featured_content
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
change_labels:
add_another: ''
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
Expand Down
16 changes: 9 additions & 7 deletions config/sync/core.entity_form_display.node.vet_center.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies:
- workflows.workflow.editorial
module:
- address
- change_labels
- content_moderation
- entity_browser_entity_form
- entity_field_fetch
Expand All @@ -40,6 +41,7 @@ dependencies:
- media_library
- office_hours
- paragraphs
- paragraphs_features
- telephone
- textfield_counter
- tzfield
Expand Down Expand Up @@ -171,15 +173,15 @@ third_party_settings:
children:
- group_national_featured_content
- field_vet_center_feature_content
label: 'Featured content'
label: 'Spotlight content'
region: content
parent_name: ''
weight: 6
format_type: fieldset
format_settings:
classes: ''
id: featured-content
description: 'Highlight up to two Vet Center activities, such as events or programs.'
description: ''
required_fields: true
group_faqs:
children:
Expand Down Expand Up @@ -227,14 +229,14 @@ third_party_settings:
group_national_featured_content:
children:
- field_cc_vet_center_featured_con
label: 'National featured content'
label: 'National spotlight content'
region: content
parent_name: group_featured_content
weight: 1
format_type: tooltip
format_settings:
show_label: '0'
tooltip_description: "Why can’t I edit this?\r\nThis national feature managed by VHA will display alongside locally-relevant content.\r\n"
tooltip_description: "Why can’t I edit this?\r\nThis national spotlight managed by VHA will display alongside locally-relevant content.\r\n"
description: ''
required_fields: '1'
id: ''
Expand Down Expand Up @@ -293,9 +295,9 @@ content:
weight: 4
region: content
settings:
show_field_label: '1'
show_link_to_source: '1'
show_source_updated_date: '1'
show_field_label: 0
third_party_settings: { }
field_facility_locator_api_id:
type: string_textfield
Expand Down Expand Up @@ -436,8 +438,8 @@ content:
weight: 2
region: content
settings:
title: 'featured content block'
title_plural: 'featured content blocks'
title: 'spotlight contents'
title_plural: spotlights
edit_mode: closed
closed_mode: summary
autocollapse: none
Expand Down
34 changes: 13 additions & 21 deletions config/sync/core.entity_view_display.node.vba_facility.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ dependencies:
- field.field.node.vba_facility.field_cc_cant_find_benefits
- field.field.node.vba_facility.field_cc_get_updates_from_vba
- field.field.node.vba_facility.field_cc_national_spotlight_1
- field.field.node.vba_facility.field_cc_national_spotlight_2
- field.field.node.vba_facility.field_cc_national_spotlight_3
- field.field.node.vba_facility.field_cc_vba_facility_overview
- field.field.node.vba_facility.field_dismissible_option
- field.field.node.vba_facility.field_facility_locator_api_id
- field.field.node.vba_facility.field_facility_vba_classificatio
- 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_local_spotlight
- 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
Expand Down Expand Up @@ -195,8 +194,6 @@ third_party_settings:
group_national_spotlight:
children:
- field_cc_national_spotlight_1
- field_cc_national_spotlight_2
- field_cc_national_spotlight_3
label: 'National spotlight'
parent_name: ''
region: content
Expand All @@ -220,7 +217,7 @@ third_party_settings:
label: 'Can''t find benefits'
parent_name: ''
region: content
weight: 9
weight: 10
format_type: tooltip
format_settings:
show_empty_fields: 0
Expand All @@ -240,7 +237,7 @@ third_party_settings:
label: 'Get updates from VBA'
parent_name: ''
region: content
weight: 10
weight: 11
format_type: tooltip
format_settings:
show_empty_fields: 0
Expand All @@ -260,7 +257,7 @@ third_party_settings:
label: 'Prepare for your visit'
parent_name: ''
region: content
weight: 6
weight: 7
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -355,20 +352,6 @@ content:
third_party_settings: { }
weight: 6
region: content
field_cc_national_spotlight_2:
type: entity_field_fetch
label: above
settings: { }
third_party_settings: { }
weight: 7
region: content
field_cc_national_spotlight_3:
type: entity_field_fetch
label: above
settings: { }
third_party_settings: { }
weight: 8
region: content
field_cc_vba_facility_overview:
type: entity_field_fetch
label: above
Expand Down Expand Up @@ -398,6 +381,15 @@ content:
third_party_settings: { }
weight: 14
region: content
field_local_spotlight:
type: entity_reference_revisions_entity_view
label: above
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 9
region: content
field_location_services:
type: entity_reference_revisions_entity_view
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ dependencies:
- field.field.node.vba_facility.field_cc_cant_find_benefits
- field.field.node.vba_facility.field_cc_get_updates_from_vba
- field.field.node.vba_facility.field_cc_national_spotlight_1
- field.field.node.vba_facility.field_cc_national_spotlight_2
- field.field.node.vba_facility.field_cc_national_spotlight_3
- field.field.node.vba_facility.field_cc_vba_facility_overview
- field.field.node.vba_facility.field_dismissible_option
- field.field.node.vba_facility.field_facility_locator_api_id
- field.field.node.vba_facility.field_facility_vba_classificatio
- 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_local_spotlight
- 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
Expand Down Expand Up @@ -258,12 +257,12 @@ hidden:
field_cc_cant_find_benefits: true
field_cc_get_updates_from_vba: true
field_cc_national_spotlight_1: true
field_cc_national_spotlight_2: true
field_cc_national_spotlight_3: true
field_cc_vba_facility_overview: true
field_dismissible_option: true
field_intro_text: true
field_last_saved_by_an_editor: true
field_local_spotlight: true
field_location_services: true
field_media: true
field_operating_status_facility: true
field_operating_status_more_info: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ dependencies:
- field.field.node.vba_facility.field_cc_cant_find_benefits
- field.field.node.vba_facility.field_cc_get_updates_from_vba
- field.field.node.vba_facility.field_cc_national_spotlight_1
- field.field.node.vba_facility.field_cc_national_spotlight_2
- field.field.node.vba_facility.field_cc_national_spotlight_3
- field.field.node.vba_facility.field_cc_vba_facility_overview
- field.field.node.vba_facility.field_dismissible_option
- field.field.node.vba_facility.field_facility_locator_api_id
- field.field.node.vba_facility.field_facility_vba_classificatio
- 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_local_spotlight
- 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
Expand Down Expand Up @@ -191,14 +190,14 @@ hidden:
field_cc_cant_find_benefits: true
field_cc_get_updates_from_vba: true
field_cc_national_spotlight_1: true
field_cc_national_spotlight_2: true
field_cc_national_spotlight_3: true
field_cc_vba_facility_overview: true
field_dismissible_option: true
field_facility_vba_classificatio: true
field_geolocation: true
field_intro_text: true
field_last_saved_by_an_editor: true
field_local_spotlight: true
field_location_services: true
field_media: true
field_non_va_location_url: true
field_non_va_official_name: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ dependencies:
- field.field.node.vba_facility.field_cc_cant_find_benefits
- field.field.node.vba_facility.field_cc_get_updates_from_vba
- field.field.node.vba_facility.field_cc_national_spotlight_1
- field.field.node.vba_facility.field_cc_national_spotlight_2
- field.field.node.vba_facility.field_cc_national_spotlight_3
- field.field.node.vba_facility.field_cc_vba_facility_overview
- field.field.node.vba_facility.field_dismissible_option
- field.field.node.vba_facility.field_facility_locator_api_id
- field.field.node.vba_facility.field_facility_vba_classificatio
- 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_local_spotlight
- 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
Expand Down Expand Up @@ -68,15 +67,15 @@ hidden:
field_cc_cant_find_benefits: true
field_cc_get_updates_from_vba: true
field_cc_national_spotlight_1: true
field_cc_national_spotlight_2: true
field_cc_national_spotlight_3: true
field_cc_vba_facility_overview: true
field_dismissible_option: true
field_facility_locator_api_id: true
field_facility_vba_classificatio: true
field_geolocation: true
field_intro_text: true
field_last_saved_by_an_editor: true
field_local_spotlight: true
field_location_services: true
field_media: true
field_non_va_location_url: true
field_non_va_official_name: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ id: node.vba_facility.field_cc_national_spotlight_1
field_name: field_cc_national_spotlight_1
entity_type: node
bundle: vba_facility
label: 'National spotlight 1'
label: 'National spotlight'
description: ''
required: false
translatable: false
Expand Down
Loading

0 comments on commit fe33e58

Please sign in to comment.