Skip to content

Commit

Permalink
VACMS-19544: Adding Connect with Us Content Block (#19770)
Browse files Browse the repository at this point in the history
* new branch to fix synd error

* added character counter

* making the block description field more user friendly

* update node view

* jzuhzing the block view

* Adding PW as CODEOWNER of Connect with US config

* Update field label

* Update test with new permissions
  • Loading branch information
davidmpickett authored Nov 12, 2024
1 parent bfce989 commit 46b98f8
Show file tree
Hide file tree
Showing 27 changed files with 671 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/config/sync/*full_width_banner_alert* @department-of-veterans-affairs/facilities-cms
# To catch VAMC stuff with older naming convention
/config/sync/*health_care* @department-of-veterans-affairs/facilities-cms
/config/sync/*connect_with_us* @department-of-veterans-affairs/public-websites-cms
/config/sync/*jsonapi* @department-of-veterans-affairs/accelerated-publishing
# aka VAMC System Locations List
/config/sync/*locations_listing* @department-of-veterans-affairs/facilities-cms
Expand Down
8 changes: 8 additions & 0 deletions config/sync/block_content.type.connect_with_us.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: 1f2e0ca0-90ff-4283-81a0-0996f13d4ee0
langcode: en
status: true
dependencies: { }
id: connect_with_us
label: 'Connect with us'
revision: false
description: 'Used on Benefit Hub Landing Pages & Campaign Landing Pages'
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: 938de1c2-0a4e-4af4-94d8-a035aeee4755
langcode: en
status: true
dependencies:
config:
- block_content.type.connect_with_us
id: block_content.connect_with_us.info
field_name: info
entity_type: block_content
bundle: connect_with_us
label: 'Block name'
description: 'This is used for identifying the block within the CMS. The name will not be shown on VA.gov'
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
uuid: f9ed44e9-73d6-4b4d-a2ab-21b29664b182
langcode: en
status: true
dependencies:
config:
- block_content.type.connect_with_us
- field.field.block_content.connect_with_us.field_administration
- field.field.block_content.connect_with_us.field_email_updates_link
- field.field.block_content.connect_with_us.field_external_link
- field.field.block_content.connect_with_us.field_social_media_links
- workflows.workflow.editorial
module:
- content_moderation
- field_group
- link
- social_media_links_field
- textfield_counter
third_party_settings:
field_group:
group_section_settings:
children:
- field_administration
- moderation_state
- revision_log
label: 'Section settings'
region: content
parent_name: ''
weight: 5
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
description: ''
required_fields: false
description_display: after
id: block_content.connect_with_us.default
targetEntityType: block_content
bundle: connect_with_us
mode: default
content:
field_administration:
type: options_select
weight: 6
region: content
settings: { }
third_party_settings: { }
field_email_updates_link:
type: link_default
weight: 2
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_external_link:
type: link_default
weight: 1
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_social_media_links:
type: social_media_links_field_default
weight: 3
region: content
settings: { }
third_party_settings: { }
info:
type: string_textfield_with_counter
weight: 0
region: content
settings:
size: 60
placeholder: ''
use_field_maxlength: true
maxlength: 0
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: true
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 7
region: content
settings: { }
third_party_settings: { }
hidden:
langcode: true
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ dependencies:
- field.field.node.campaign_landing_page.field_clp_what_you_can_do_intro
- field.field.node.campaign_landing_page.field_clp_what_you_can_do_promos
- field.field.node.campaign_landing_page.field_clp_why_this_matters
- field.field.node.campaign_landing_page.field_connect_with_us
- field.field.node.campaign_landing_page.field_hero_blurb
- field.field.node.campaign_landing_page.field_hero_image
- field.field.node.campaign_landing_page.field_last_saved_by_an_editor
Expand Down Expand Up @@ -280,6 +281,7 @@ third_party_settings:
group_connect_with_us:
children:
- field_related_office
- field_connect_with_us
label: 'Connect with us'
region: content
parent_name: ''
Expand All @@ -306,7 +308,7 @@ content:
third_party_settings: { }
field_benefit_categories:
type: entity_reference_browser_table_widget
weight: 42
weight: 48
region: content
settings:
entity_browser: lc_benefit_hubs
Expand Down Expand Up @@ -762,6 +764,12 @@ content:
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
field_connect_with_us:
type: options_select
weight: 46
region: content
settings: { }
third_party_settings: { }
field_hero_blurb:
type: string_textfield_with_counter
weight: 4
Expand Down
14 changes: 11 additions & 3 deletions config/sync/core.entity_form_display.node.landing_page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- entity_browser.browser.alert_blocks
- field.field.node.landing_page.field_administration
- field.field.node.landing_page.field_alert
- field.field.node.landing_page.field_connect_with_us
- field.field.node.landing_page.field_description
- field.field.node.landing_page.field_home_page_hub_label
- field.field.node.landing_page.field_intro_text
Expand Down Expand Up @@ -54,6 +55,7 @@ third_party_settings:
- field_links
- field_support_services
- field_related_office
- field_connect_with_us
label: 'Right Rail'
region: content
parent_name: ''
Expand All @@ -73,7 +75,7 @@ third_party_settings:
label: 'Editorial Workflow'
region: content
parent_name: ''
weight: 10
weight: 12
format_type: details
format_settings:
classes: ''
Expand All @@ -86,7 +88,7 @@ third_party_settings:
label: 'Page last built'
region: content
parent_name: ''
weight: 9
weight: 10
format_type: details_sidebar
format_settings:
classes: ''
Expand Down Expand Up @@ -189,6 +191,12 @@ content:
view_mode: default
selection_mode: selection_append
third_party_settings: { }
field_connect_with_us:
type: options_select
weight: 22
region: content
settings: { }
third_party_settings: { }
field_description:
type: string_textfield_with_counter
weight: 6
Expand Down Expand Up @@ -221,7 +229,7 @@ content:
third_party_settings: { }
field_last_saved_by_an_editor:
type: datetime_timestamp
weight: 26
weight: 13
region: content
settings: { }
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
uuid: e017d287-9cdf-4228-a513-6c652d1812a7
langcode: en
status: true
dependencies:
config:
- block_content.type.connect_with_us
- field.field.block_content.connect_with_us.field_administration
- field.field.block_content.connect_with_us.field_email_updates_link
- field.field.block_content.connect_with_us.field_external_link
- field.field.block_content.connect_with_us.field_social_media_links
module:
- link
- social_media_links_field
id: block_content.connect_with_us.default
targetEntityType: block_content
bundle: connect_with_us
mode: default
content:
field_email_updates_link:
type: link
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: 1
region: content
field_external_link:
type: link
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: 0
region: content
field_social_media_links:
type: social_media_links_field_default
label: above
settings:
appearance:
orientation: v
show_name: '1'
link_attributes:
target: '<none>'
rel: '<none>'
third_party_settings: { }
weight: 2
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
langcode: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dependencies:
- field.field.node.campaign_landing_page.field_clp_what_you_can_do_intro
- field.field.node.campaign_landing_page.field_clp_what_you_can_do_promos
- field.field.node.campaign_landing_page.field_clp_why_this_matters
- field.field.node.campaign_landing_page.field_connect_with_us
- field.field.node.campaign_landing_page.field_hero_blurb
- field.field.node.campaign_landing_page.field_hero_image
- field.field.node.campaign_landing_page.field_last_saved_by_an_editor
Expand Down Expand Up @@ -206,6 +207,7 @@ third_party_settings:
group_connect_with_us:
children:
- field_related_office
- field_connect_with_us
label: 'Connect with us'
parent_name: ''
region: content
Expand All @@ -227,7 +229,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 7
weight: 16
region: content
field_clp_audience:
type: entity_reference_label
Expand Down Expand Up @@ -442,6 +444,15 @@ content:
third_party_settings: { }
weight: 4
region: content
field_connect_with_us:
type: entity_reference_entity_view
label: above
settings:
view_mode: default
link: false
third_party_settings: { }
weight: 28
region: content
field_hero_blurb:
type: basic_string
label: hidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies:
- field.field.node.campaign_landing_page.field_clp_what_you_can_do_intro
- field.field.node.campaign_landing_page.field_clp_what_you_can_do_promos
- field.field.node.campaign_landing_page.field_clp_why_this_matters
- field.field.node.campaign_landing_page.field_connect_with_us
- field.field.node.campaign_landing_page.field_hero_blurb
- field.field.node.campaign_landing_page.field_hero_image
- field.field.node.campaign_landing_page.field_last_saved_by_an_editor
Expand Down Expand Up @@ -95,6 +96,7 @@ hidden:
field_clp_what_you_can_do_intro: true
field_clp_what_you_can_do_promos: true
field_clp_why_this_matters: true
field_connect_with_us: true
field_hero_blurb: true
field_hero_image: true
field_last_saved_by_an_editor: true
Expand Down
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_display.node.landing_page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- field.field.node.landing_page.field_administration
- field.field.node.landing_page.field_alert
- field.field.node.landing_page.field_connect_with_us
- field.field.node.landing_page.field_description
- field.field.node.landing_page.field_home_page_hub_label
- field.field.node.landing_page.field_intro_text
Expand Down Expand Up @@ -114,6 +115,15 @@ content:
third_party_settings: { }
weight: 5
region: content
field_connect_with_us:
type: entity_reference_entity_view
label: above
settings:
view_mode: default
link: true
third_party_settings: { }
weight: 5
region: content
field_description:
type: string
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- core.entity_view_mode.node.support_services_listing
- field.field.node.landing_page.field_administration
- field.field.node.landing_page.field_alert
- field.field.node.landing_page.field_connect_with_us
- field.field.node.landing_page.field_description
- field.field.node.landing_page.field_home_page_hub_label
- field.field.node.landing_page.field_intro_text
Expand Down Expand Up @@ -101,6 +102,7 @@ hidden:
content_moderation_control: true
field_administration: true
field_alert: true
field_connect_with_us: true
field_description: true
field_home_page_hub_label: true
field_intro_text: true
Expand Down
Loading

0 comments on commit 46b98f8

Please sign in to comment.