From 22fd014671fc1b0d02f386e48b00b002e65010f2 Mon Sep 17 00:00:00 2001 From: aheaphy Date: Mon, 25 Nov 2024 17:08:10 -0500 Subject: [PATCH] add social media fields on senator for threads and bluesky --- ..._display.taxonomy_term.senator.default.yml | 39 ++++++++++++++----- ...y_term.senator.agenda_senator_sponsors.yml | 4 ++ ...isplay.taxonomy_term.senator.dashboard.yml | 4 ++ ..._display.taxonomy_term.senator.default.yml | 18 +++++++++ ....taxonomy_term.senator.find_my_senator.yml | 4 ++ ...y.taxonomy_term.senator.microsite_link.yml | 4 ++ ...isplay.taxonomy_term.senator.petitions.yml | 4 ++ ...y.taxonomy_term.senator.questionnaires.yml | 4 ++ ....taxonomy_term.senator.related_content.yml | 4 ++ ...ay.taxonomy_term.senator.senator_bills.yml | 4 ++ ....taxonomy_term.senator.senator_profile.yml | 4 ++ ...onomy_term.senator.senator_search_list.yml | 4 ++ ...axonomy_term.senator.senators_involved.yml | 4 ++ ...lay.taxonomy_term.senator.sponsor_list.yml | 4 ++ ..._term.senator.sponsor_list_bill_detail.yml | 4 ++ ...ew_display.taxonomy_term.senator.token.yml | 4 ++ ...axonomy_term.senator.field_bluesky_url.yml | 19 +++++++++ ...axonomy_term.senator.field_threads_url.yml | 19 +++++++++ ...torage.taxonomy_term.field_bluesky_url.yml | 21 ++++++++++ ...torage.taxonomy_term.field_threads_url.yml | 21 ++++++++++ .../nysenate_theme/nysenate_theme.theme | 14 +++++++ .../src/patterns/components/hero/hero.twig | 2 +- .../components/icons/_icons-macro.twig | 2 +- .../components/icons/assets/bluesky.svg | 4 ++ .../components/icons/assets/threads.svg | 1 + .../src/patterns/components/icons/icons.json | 6 +++ 26 files changed, 211 insertions(+), 11 deletions(-) create mode 100644 config/sync/field.field.taxonomy_term.senator.field_bluesky_url.yml create mode 100644 config/sync/field.field.taxonomy_term.senator.field_threads_url.yml create mode 100644 config/sync/field.storage.taxonomy_term.field_bluesky_url.yml create mode 100644 config/sync/field.storage.taxonomy_term.field_threads_url.yml create mode 100644 web/themes/custom/nysenate_theme/src/patterns/components/icons/assets/bluesky.svg create mode 100644 web/themes/custom/nysenate_theme/src/patterns/components/icons/assets/threads.svg diff --git a/config/sync/core.entity_form_display.taxonomy_term.senator.default.yml b/config/sync/core.entity_form_display.taxonomy_term.senator.default.yml index a0ed18fa2e..5bce0c4184 100644 --- a/config/sync/core.entity_form_display.taxonomy_term.senator.default.yml +++ b/config/sync/core.entity_form_display.taxonomy_term.senator.default.yml @@ -6,6 +6,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -31,6 +32,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -95,6 +97,8 @@ third_party_settings: - field_twitter_url - field_youtube_url - field_instagram_url + - field_threads_url + - field_bluesky_url label: 'Social Media Links' region: content parent_name: group_microsite_settings @@ -114,7 +118,7 @@ third_party_settings: label: 'Key Staff' region: content parent_name: group_contact_page - weight: 31 + weight: 13 format_type: details format_settings: classes: '' @@ -263,7 +267,7 @@ content: third_party_settings: { } field_active_senator: type: boolean_checkbox - weight: 8 + weight: 102 region: content settings: display_label: true @@ -276,6 +280,14 @@ content: rows: 5 placeholder: '' third_party_settings: { } + field_bluesky_url: + type: string_textfield + weight: 11 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } field_conference: type: options_select weight: 8 @@ -292,7 +304,7 @@ content: third_party_settings: { } field_email: type: email_default - weight: 29 + weight: 11 region: content settings: placeholder: '' @@ -323,7 +335,7 @@ content: third_party_settings: { } field_inactive_senator_message: type: string_textfield - weight: 12 + weight: 106 region: content settings: size: 60 @@ -362,7 +374,7 @@ content: third_party_settings: { } field_media_phone: type: telephone_default - weight: 7 + weight: 8 region: content settings: placeholder: '' @@ -421,14 +433,14 @@ content: third_party_settings: { } field_ol_member_id: type: number - weight: 10 + weight: 104 region: content settings: placeholder: '' third_party_settings: { } field_ol_shortname: type: string_textfield - weight: 9 + weight: 103 region: content settings: size: 60 @@ -442,7 +454,7 @@ content: third_party_settings: { } field_press_inquiries: type: email_default - weight: 30 + weight: 12 region: content settings: placeholder: '' @@ -503,14 +515,23 @@ content: family: description generational: description credentials: description + field_title_display: before third_party_settings: { } field_store_settings: type: boolean_checkbox - weight: 11 + weight: 105 region: content settings: display_label: true third_party_settings: { } + field_threads_url: + type: string_textfield + weight: 10 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } field_top_issue: type: entity_reference_autocomplete weight: 7 diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.agenda_senator_sponsors.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.agenda_senator_sponsors.yml index 8d7c5775a0..82c93e2ff8 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.agenda_senator_sponsors.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.agenda_senator_sponsors.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -75,6 +77,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -98,6 +101,7 @@ hidden: field_press_kit: true field_promotional_banners: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.dashboard.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.dashboard.yml index db111eee8d..374c9c7174 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.dashboard.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.dashboard.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -105,6 +107,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -127,6 +130,7 @@ hidden: field_press_kit: true field_promotional_banners: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.default.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.default.yml index 23ff6f184e..3241cbf2ea 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.default.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.default.yml @@ -6,6 +6,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -31,6 +32,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -59,6 +61,14 @@ content: third_party_settings: { } weight: 3 region: content + field_bluesky_url: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 4 + region: content field_email_auto_reply_text: type: basic_string label: above @@ -73,6 +83,14 @@ content: third_party_settings: { } weight: 0 region: content + field_threads_url: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 5 + region: content hidden: admin_microsite_content_senator_admin_content_eva: true admin_microsite_content_senator_admin_content_eva_form: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.find_my_senator.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.find_my_senator.yml index 535841cd52..4070c010dd 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.find_my_senator.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.find_my_senator.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -75,6 +77,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -98,6 +101,7 @@ hidden: field_press_kit: true field_promotional_banners: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.microsite_link.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.microsite_link.yml index 880df7c7f5..e9ef6679a0 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.microsite_link.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.microsite_link.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -66,6 +68,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -90,6 +93,7 @@ hidden: field_press_kit: true field_promotional_banners: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.petitions.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.petitions.yml index 5ea0fb9b07..50c1c6eacf 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.petitions.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.petitions.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -67,6 +69,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -92,6 +95,7 @@ hidden: field_promotional_banners: true field_senator_name: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.questionnaires.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.questionnaires.yml index 5dce949de7..b87226a620 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.questionnaires.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.questionnaires.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -79,6 +81,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -104,6 +107,7 @@ hidden: field_promotional_banners: true field_senator_name: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.related_content.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.related_content.yml index 9af39f2614..85f4cfe328 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.related_content.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.related_content.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -71,6 +73,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -96,6 +99,7 @@ hidden: field_promotional_banners: true field_senator_name: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.senator_bills.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.senator_bills.yml index 907ea571bc..cd27436b6d 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.senator_bills.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.senator_bills.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -71,6 +73,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -96,6 +99,7 @@ hidden: field_promotional_banners: true field_senator_name: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.senator_profile.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.senator_profile.yml index 323e7e7a5d..9220f0072d 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.senator_profile.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.senator_profile.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -110,6 +112,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_email: true field_email_auto_reply_text: true @@ -131,6 +134,7 @@ hidden: field_press_kit: true field_promotional_banners: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.senator_search_list.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.senator_search_list.yml index 89175d8106..d4b5e13022 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.senator_search_list.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.senator_search_list.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -112,6 +114,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_current_duties: true field_email: true field_email_auto_reply_text: true @@ -133,6 +136,7 @@ hidden: field_press_kit: true field_promotional_banners: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.senators_involved.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.senators_involved.yml index 3c567afa2e..9e10d3e222 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.senators_involved.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.senators_involved.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -78,6 +80,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -101,6 +104,7 @@ hidden: field_press_kit: true field_promotional_banners: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.sponsor_list.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.sponsor_list.yml index 54e4af03b3..2011665caf 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.sponsor_list.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.sponsor_list.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -97,6 +99,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_conference: true field_current_duties: true field_email: true @@ -119,6 +122,7 @@ hidden: field_press_kit: true field_promotional_banners: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.sponsor_list_bill_detail.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.sponsor_list_bill_detail.yml index 1c5402ec5b..037b90213e 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.sponsor_list_bill_detail.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.sponsor_list_bill_detail.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -105,6 +107,7 @@ hidden: field_about: true field_active_senator: true field_auto_reply_text: true + field_bluesky_url: true field_current_duties: true field_email: true field_email_auto_reply_text: true @@ -126,6 +129,7 @@ hidden: field_press_kit: true field_promotional_banners: true field_store_settings: true + field_threads_url: true field_top_issue: true field_twitter_url: true field_user_account: true diff --git a/config/sync/core.entity_view_display.taxonomy_term.senator.token.yml b/config/sync/core.entity_view_display.taxonomy_term.senator.token.yml index 4b8ca49f08..7514d0acaf 100644 --- a/config/sync/core.entity_view_display.taxonomy_term.senator.token.yml +++ b/config/sync/core.entity_view_display.taxonomy_term.senator.token.yml @@ -7,6 +7,7 @@ dependencies: - field.field.taxonomy_term.senator.field_about - field.field.taxonomy_term.senator.field_active_senator - field.field.taxonomy_term.senator.field_auto_reply_text + - field.field.taxonomy_term.senator.field_bluesky_url - field.field.taxonomy_term.senator.field_conference - field.field.taxonomy_term.senator.field_current_duties - field.field.taxonomy_term.senator.field_email @@ -32,6 +33,7 @@ dependencies: - field.field.taxonomy_term.senator.field_promotional_banners - field.field.taxonomy_term.senator.field_senator_name - field.field.taxonomy_term.senator.field_store_settings + - field.field.taxonomy_term.senator.field_threads_url - field.field.taxonomy_term.senator.field_top_issue - field.field.taxonomy_term.senator.field_twitter_url - field.field.taxonomy_term.senator.field_user_account @@ -298,10 +300,12 @@ hidden: entity_print_view_word_docx: true field_about: true field_auto_reply_text: true + field_bluesky_url: true field_email_auto_reply_text: true field_inactive_senator_message: true field_press_kit: true field_promotional_banners: true + field_threads_url: true langcode: true rabbit_hole__settings: true search_api_excerpt: true diff --git a/config/sync/field.field.taxonomy_term.senator.field_bluesky_url.yml b/config/sync/field.field.taxonomy_term.senator.field_bluesky_url.yml new file mode 100644 index 0000000000..6197d50c3d --- /dev/null +++ b/config/sync/field.field.taxonomy_term.senator.field_bluesky_url.yml @@ -0,0 +1,19 @@ +uuid: bfa5a79c-1e9f-4d77-b2ec-5b9aa325a0bb +langcode: en +status: true +dependencies: + config: + - field.storage.taxonomy_term.field_bluesky_url + - taxonomy.vocabulary.senator +id: taxonomy_term.senator.field_bluesky_url +field_name: field_bluesky_url +entity_type: taxonomy_term +bundle: senator +label: 'Bluesky URL' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.taxonomy_term.senator.field_threads_url.yml b/config/sync/field.field.taxonomy_term.senator.field_threads_url.yml new file mode 100644 index 0000000000..a5471fb97b --- /dev/null +++ b/config/sync/field.field.taxonomy_term.senator.field_threads_url.yml @@ -0,0 +1,19 @@ +uuid: 606220ed-fe39-45a7-a829-9c8fae1a697f +langcode: en +status: true +dependencies: + config: + - field.storage.taxonomy_term.field_threads_url + - taxonomy.vocabulary.senator +id: taxonomy_term.senator.field_threads_url +field_name: field_threads_url +entity_type: taxonomy_term +bundle: senator +label: 'Threads URL' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.storage.taxonomy_term.field_bluesky_url.yml b/config/sync/field.storage.taxonomy_term.field_bluesky_url.yml new file mode 100644 index 0000000000..c2231b858a --- /dev/null +++ b/config/sync/field.storage.taxonomy_term.field_bluesky_url.yml @@ -0,0 +1,21 @@ +uuid: f30755f3-761e-4445-b841-626e6756ce7d +langcode: en +status: true +dependencies: + module: + - taxonomy +id: taxonomy_term.field_bluesky_url +field_name: field_bluesky_url +entity_type: taxonomy_term +type: string +settings: + max_length: 255 + case_sensitive: false + is_ascii: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.taxonomy_term.field_threads_url.yml b/config/sync/field.storage.taxonomy_term.field_threads_url.yml new file mode 100644 index 0000000000..a77a664477 --- /dev/null +++ b/config/sync/field.storage.taxonomy_term.field_threads_url.yml @@ -0,0 +1,21 @@ +uuid: e5559a94-cf09-4a1a-b63e-1d05ea30df5c +langcode: en +status: true +dependencies: + module: + - taxonomy +id: taxonomy_term.field_threads_url +field_name: field_threads_url +entity_type: taxonomy_term +type: string +settings: + max_length: 255 + case_sensitive: false + is_ascii: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/web/themes/custom/nysenate_theme/nysenate_theme.theme b/web/themes/custom/nysenate_theme/nysenate_theme.theme index c4bfa1d99b..55dd5fcac0 100644 --- a/web/themes/custom/nysenate_theme/nysenate_theme.theme +++ b/web/themes/custom/nysenate_theme/nysenate_theme.theme @@ -449,6 +449,20 @@ function nysenate_theme_preprocess_block_content__microsite_hero(&$variables) { ]; } + if (!empty($senator->field_threads_url->value)) { + $socials[] = [ + 'name' => 'threads', + 'url' => $senator->field_threads_url->value, + ]; + } + + if (!empty($senator->field_bluesky_url->value)) { + $socials[] = [ + 'name' => 'bluesky', + 'url' => $senator->field_bluesky_url->value, + ]; + } + $variables['user_id'] = \Drupal::currentUser()->id(); $variables['senator_name'] = $senator_name; $variables['senator_party'] = '( ' . $party . ' )'; diff --git a/web/themes/custom/nysenate_theme/src/patterns/components/hero/hero.twig b/web/themes/custom/nysenate_theme/src/patterns/components/hero/hero.twig index 7f2af4a5f5..a8f4ec2aae 100644 --- a/web/themes/custom/nysenate_theme/src/patterns/components/hero/hero.twig +++ b/web/themes/custom/nysenate_theme/src/patterns/components/hero/hero.twig @@ -54,7 +54,7 @@ diff --git a/web/themes/custom/nysenate_theme/src/patterns/components/icons/_icons-macro.twig b/web/themes/custom/nysenate_theme/src/patterns/components/icons/_icons-macro.twig index d075560108..7a12b5daa1 100644 --- a/web/themes/custom/nysenate_theme/src/patterns/components/icons/_icons-macro.twig +++ b/web/themes/custom/nysenate_theme/src/patterns/components/icons/_icons-macro.twig @@ -9,5 +9,5 @@ */ #} {% macro get(name) %} - {% include '@rain_theme/icons/assets/' ~ name|lower ~ '.svg' %} + {% include '@nysenate_theme/icons/assets/' ~ name|lower ~ '.svg' %} {% endmacro %} diff --git a/web/themes/custom/nysenate_theme/src/patterns/components/icons/assets/bluesky.svg b/web/themes/custom/nysenate_theme/src/patterns/components/icons/assets/bluesky.svg new file mode 100644 index 0000000000..7132687585 --- /dev/null +++ b/web/themes/custom/nysenate_theme/src/patterns/components/icons/assets/bluesky.svg @@ -0,0 +1,4 @@ + + diff --git a/web/themes/custom/nysenate_theme/src/patterns/components/icons/assets/threads.svg b/web/themes/custom/nysenate_theme/src/patterns/components/icons/assets/threads.svg new file mode 100644 index 0000000000..e2b6145273 --- /dev/null +++ b/web/themes/custom/nysenate_theme/src/patterns/components/icons/assets/threads.svg @@ -0,0 +1 @@ + diff --git a/web/themes/custom/nysenate_theme/src/patterns/components/icons/icons.json b/web/themes/custom/nysenate_theme/src/patterns/components/icons/icons.json index 090fbae475..40171d67a7 100644 --- a/web/themes/custom/nysenate_theme/src/patterns/components/icons/icons.json +++ b/web/themes/custom/nysenate_theme/src/patterns/components/icons/icons.json @@ -23,6 +23,12 @@ }, { "icon": "linkedin" + }, + { + "icon": "bluesky" + }, + { + "icon": "threads" } ] }