From 17abf11400f1545e87c5e618f52fe17fbc03946a Mon Sep 17 00:00:00 2001 From: Rebecca Hong <34019925+rebeccahongsf@users.noreply.github.com> Date: Mon, 14 Oct 2024 20:01:49 -0700 Subject: [PATCH 1/6] D8CORE-7517 | update event subtitle heading (#816) --- config/sync/views.view.stanford_events.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/sync/views.view.stanford_events.yml b/config/sync/views.view.stanford_events.yml index e33096c98..3a6d81ef6 100644 --- a/config/sync/views.view.stanford_events.yml +++ b/config/sync/views.view.stanford_events.yml @@ -2374,9 +2374,9 @@ display: empty_zero: false hide_alter_empty: true click_sort_column: value - type: entity_title_heading + type: string settings: - tag: h3 + link_to_entity: false group_column: value group_columns: { } group_rows: true From 6e85c3f9b2d2154f5fc4150f83d39509de58a32e Mon Sep 17 00:00:00 2001 From: Dena DeBry Date: Wed, 16 Oct 2024 07:59:57 -0700 Subject: [PATCH 2/6] D8CORE-7564: removed decanter link and replaced with identity guide (#822) * D8CORE-7564: removed decanter link and replaced with identity guide info. * D8CORE-7564: added in a handy link --- .../field.field.config_pages.lockup_settings.su_intro.yml | 2 +- themes/stanford_basic/theme-settings.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/sync/field.field.config_pages.lockup_settings.su_intro.yml b/config/sync/field.field.config_pages.lockup_settings.su_intro.yml index b0b6212db..c3b192df6 100644 --- a/config/sync/field.field.config_pages.lockup_settings.su_intro.yml +++ b/config/sync/field.field.config_pages.lockup_settings.su_intro.yml @@ -20,6 +20,6 @@ default_value: default_value_callback: '' settings: markup: - value: "

\"\"

\r\n\r\n

Decanter Lockup Component

\r\n\r\n

This lockup will appear in the top left corner of the website's main header.

\r\n
" + value: "

\"\"

\r\n\r\n

These lockup options are only available on Stanford Basic. Users of the Minimally Branded or Faculty themes should use the default lockup. To determine which lockup is right for your official unity, consult the Stanford Identity Guide.

\r\n\r\n

This lockup will appear in the top left corner of the website's main header. Separate settings for the lockup at the bottom of your site can be found in the Local Footer settings and will not be affected by changes you make here.

\r\n
" format: stanford_html field_type: markup diff --git a/themes/stanford_basic/theme-settings.php b/themes/stanford_basic/theme-settings.php index 67b20bb43..bc1819244 100755 --- a/themes/stanford_basic/theme-settings.php +++ b/themes/stanford_basic/theme-settings.php @@ -55,13 +55,13 @@ function stanford_basic_form_system_theme_settings_alter(array &$form, FormState $img = ''; - $decanter = Link::fromTextAndUrl('Decanter Lockup Component', Url::fromUri('https://decanter.stanford.edu/component/identity-lockup/')) + $identityguide = Link::fromTextAndUrl('Stanford Identity Guide', Url::fromUri('https://identity.stanford.edu/')) ->toString(); $form['options_settings']['stanford_basic_lockup'] = [ '#type' => 'fieldset', '#title' => t('Lockup Settings'), - '#field_prefix' => "

$img

More examples can be found at: $decanter

", + '#field_prefix' => "

$img

Guidance can be found at: $identityguide

", ]; $form['options_settings']['stanford_basic_lockup']['lockup']['#tree'] = TRUE; From 9cd43c502c0c9a388e65a79515c50c79cf51fc8f Mon Sep 17 00:00:00 2001 From: pookmish Date: Wed, 16 Oct 2024 08:01:44 -0700 Subject: [PATCH 3/6] Remove edit links in views (#821) --- .../sync/views.view.stanford_basic_pages.yml | 53 ----- config/sync/views.view.stanford_courses.yml | 106 --------- .../sync/views.view.stanford_event_series.yml | 53 ----- config/sync/views.view.stanford_events.yml | 159 ------------- config/sync/views.view.stanford_news.yml | 53 ----- config/sync/views.view.stanford_person.yml | 106 --------- .../sync/views.view.stanford_publications.yml | 212 ------------------ 7 files changed, 742 deletions(-) diff --git a/config/sync/views.view.stanford_basic_pages.yml b/config/sync/views.view.stanford_basic_pages.yml index 2eb9d1778..67f9bc03d 100644 --- a/config/sync/views.view.stanford_basic_pages.yml +++ b/config/sync/views.view.stanford_basic_pages.yml @@ -360,59 +360,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-news-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'edit this page' - output_url_as_text: false - absolute: false pager: type: some options: diff --git a/config/sync/views.view.stanford_courses.yml b/config/sync/views.view.stanford_courses.yml index 3f9abcf05..6eb0bd3d3 100644 --- a/config/sync/views.view.stanford_courses.yml +++ b/config/sync/views.view.stanford_courses.yml @@ -1262,59 +1262,6 @@ display: separator: ', ' field_api_classes: 0 plugin_id: field - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: 0 - alter: - alter_text: 0 - text: '' - make_link: 0 - path: '' - absolute: 0 - external: false - replace_spaces: 0 - path_case: none - trim_whitespace: 0 - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: 0 - max_length: '0' - word_boundary: 1 - ellipsis: 1 - more_link: 0 - more_link_text: '' - more_link_path: '' - strip_tags: 0 - trim: 0 - preserve_tags: '' - html: 0 - element_type: div - element_class: su-courses-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: 1 - empty: '' - hide_empty: 0 - empty_zero: 0 - hide_alter_empty: 1 - text: 'Edit this course item' - output_url_as_text: 0 - absolute: 0 - entity_type: node - plugin_id: entity_link_edit defaults: fields: false pager: false @@ -2635,59 +2582,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-courses-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit this course item' - output_url_as_text: false - absolute: false pager: type: infinite_scroll options: diff --git a/config/sync/views.view.stanford_event_series.yml b/config/sync/views.view.stanford_event_series.yml index 2856176e2..d36320839 100644 --- a/config/sync/views.view.stanford_event_series.yml +++ b/config/sync/views.view.stanford_event_series.yml @@ -283,59 +283,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'edit series' - output_url_as_text: false - absolute: false view_node: id: view_node table: node diff --git a/config/sync/views.view.stanford_events.yml b/config/sync/views.view.stanford_events.yml index 3a6d81ef6..0964beadd 100644 --- a/config/sync/views.view.stanford_events.yml +++ b/config/sync/views.view.stanford_events.yml @@ -1742,59 +1742,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-events-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: true - empty_zero: false - hide_alter_empty: true - text: 'Edit this event item' - output_url_as_text: false - absolute: false - entity_type: node - plugin_id: entity_link_edit defaults: fields: false style: false @@ -2848,59 +2795,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-events-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: true - empty_zero: false - hide_alter_empty: true - text: 'Edit this event item' - output_url_as_text: false - absolute: false arguments: term_node_tid_depth: id: term_node_tid_depth @@ -5805,59 +5699,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-events-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: true - empty_zero: false - hide_alter_empty: true - text: 'Edit this event item' - output_url_as_text: false - absolute: false - entity_type: node - plugin_id: entity_link_edit defaults: fields: false style: false diff --git a/config/sync/views.view.stanford_news.yml b/config/sync/views.view.stanford_news.yml index c29c09474..d36532387 100644 --- a/config/sync/views.view.stanford_news.yml +++ b/config/sync/views.view.stanford_news.yml @@ -430,59 +430,6 @@ display: text: view output_url_as_text: true absolute: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-news-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: true - empty_zero: false - hide_alter_empty: true - text: 'edit this news item' - output_url_as_text: false - absolute: false pager: type: infinite_scroll options: diff --git a/config/sync/views.view.stanford_person.yml b/config/sync/views.view.stanford_person.yml index 9139f4c27..f7c773e6d 100644 --- a/config/sync/views.view.stanford_person.yml +++ b/config/sync/views.view.stanford_person.yml @@ -884,59 +884,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-people-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'edit this item' - output_url_as_text: false - absolute: false - entity_type: node - plugin_id: entity_link_edit cache_metadata: max-age: -1 contexts: @@ -1674,59 +1621,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-people-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'edit this item' - output_url_as_text: false - absolute: false arguments: term_node_tid_depth: id: term_node_tid_depth diff --git a/config/sync/views.view.stanford_publications.yml b/config/sync/views.view.stanford_publications.yml index 1691a43b6..69045119c 100644 --- a/config/sync/views.view.stanford_publications.yml +++ b/config/sync/views.view.stanford_publications.yml @@ -444,59 +444,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node_field_revision - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: true - text: 'Edit Publication' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit Publication' - output_url_as_text: true - absolute: true - entity_type: node - plugin_id: entity_link_edit defaults: fields: false block_category: 'Publication (Views)' @@ -707,59 +654,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node_field_revision - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: true - text: 'Edit Publication' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit Publication' - output_url_as_text: true - absolute: true - entity_type: node - plugin_id: entity_link_edit defaults: fields: false block_category: 'Publication (Views)' @@ -1586,59 +1480,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node_field_revision - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: true - text: '

Edit Publication

' - make_link: false - path: '' - absolute: true - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: 'Edit Publication' - rel: '' - link_class: su-button--secondary - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: su-button--secondary - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit Publication' - output_url_as_text: true - absolute: true pager: type: some options: @@ -1908,59 +1749,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node_field_revision - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: true - text: 'Edit Publication' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit Publication' - output_url_as_text: true - absolute: true pager: type: infinite_scroll options: From 5fec035735b9c6636417cfcb1dea2d76d82a0606 Mon Sep 17 00:00:00 2001 From: pookmish Date: Wed, 16 Oct 2024 09:31:58 -0700 Subject: [PATCH 4/6] 11.4.5 --- CHANGELOG.md | 7 ++++ ...s.stanford_basic_site_settings.default.yml | 39 +++++++++++++++++++ ...s.stanford_basic_site_settings.default.yml | 20 ++++++++++ ...rd_basic_site_settings.su_site_created.yml | 19 +++++++++ ...d.storage.config_pages.su_site_created.yml | 18 +++++++++ src/Plugin/InstallTask/SiteSettings.php | 4 +- stanford_profile.info.yml | 2 +- .../Plugin/InstallTask/SiteSettingsTest.php | 26 +++++++++++++ 8 files changed, 133 insertions(+), 2 deletions(-) create mode 100644 config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_created.yml create mode 100644 config/sync/field.storage.config_pages.su_site_created.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 639614b86..6751de32f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Stanford Profile +11.4.5 +------------------------------------------------------------------------------- +- Remove edit links in views (#821) +- D8CORE-7564: removed decanter link and replaced with identity guide (#822) +- D8CORE-7517 | update event subtitle heading (#816) +- D8Core-7515: adding a few additional "Site Type" options + 11.4.4 ------------------------------------------------------------------------------- - Updated image_effects module for compatibility with imagemagic 4.0.0. diff --git a/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml b/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml index 6e5ede026..b23560b04 100644 --- a/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml +++ b/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml @@ -18,6 +18,7 @@ dependencies: - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_key - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_search - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_ui + - field.field.config_pages.stanford_basic_site_settings.su_site_created - field.field.config_pages.stanford_basic_site_settings.su_site_dropdowns - field.field.config_pages.stanford_basic_site_settings.su_site_email - field.field.config_pages.stanford_basic_site_settings.su_site_home @@ -35,9 +36,11 @@ dependencies: - change_labels - conditional_fields - cshs + - field_formatter_class - field_group - file - link + - readonly_field_widget - text third_party_settings: field_group: @@ -248,6 +251,42 @@ content: settings: display_label: true third_party_settings: { } + su_site_created: + type: readonly_field_widget + weight: 1 + region: content + settings: + label: above + formatter_type: timestamp + formatter_settings: + timestamp: + date_format: html_date + custom_date_format: '' + timezone: '' + tooltip: + date_format: long + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + description: '' + formatter_third_party_settings: + empty_fields: + handler: '' + field_formatter_class: + class: '' + field_label: + label_value: '' + label_tag: '' + show_description: false + third_party_settings: + field_formatter_class: + class: '' + change_labels: + field_label_overwrite: '' su_site_dropdowns: type: boolean_checkbox weight: 5 diff --git a/config/sync/core.entity_view_display.config_pages.stanford_basic_site_settings.default.yml b/config/sync/core.entity_view_display.config_pages.stanford_basic_site_settings.default.yml index 358923ecc..ad587372a 100644 --- a/config/sync/core.entity_view_display.config_pages.stanford_basic_site_settings.default.yml +++ b/config/sync/core.entity_view_display.config_pages.stanford_basic_site_settings.default.yml @@ -18,6 +18,7 @@ dependencies: - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_key - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_search - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_ui + - field.field.config_pages.stanford_basic_site_settings.su_site_created - field.field.config_pages.stanford_basic_site_settings.su_site_dropdowns - field.field.config_pages.stanford_basic_site_settings.su_site_email - field.field.config_pages.stanford_basic_site_settings.su_site_home @@ -150,6 +151,25 @@ content: third_party_settings: { } weight: 23 region: content + su_site_created: + type: timestamp + label: above + settings: + date_format: medium + custom_date_format: '' + timezone: '' + tooltip: + date_format: long + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + third_party_settings: { } + weight: 26 + region: content su_site_dropdowns: type: boolean label: above diff --git a/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_created.yml b/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_created.yml new file mode 100644 index 000000000..d93a1b3a6 --- /dev/null +++ b/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_created.yml @@ -0,0 +1,19 @@ +uuid: 1e49df54-32d6-4f5b-a5ec-e16691ef2bd4 +langcode: en +status: true +dependencies: + config: + - config_pages.type.stanford_basic_site_settings + - field.storage.config_pages.su_site_created +id: config_pages.stanford_basic_site_settings.su_site_created +field_name: su_site_created +entity_type: config_pages +bundle: stanford_basic_site_settings +label: 'Site Created' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: timestamp diff --git a/config/sync/field.storage.config_pages.su_site_created.yml b/config/sync/field.storage.config_pages.su_site_created.yml new file mode 100644 index 000000000..f13c19d1d --- /dev/null +++ b/config/sync/field.storage.config_pages.su_site_created.yml @@ -0,0 +1,18 @@ +uuid: fe6fd938-d6ff-4a78-afc2-07bb6d493e5b +langcode: en +status: true +dependencies: + module: + - config_pages +id: config_pages.su_site_created +field_name: su_site_created +entity_type: config_pages +type: timestamp +settings: { } +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/src/Plugin/InstallTask/SiteSettings.php b/src/Plugin/InstallTask/SiteSettings.php index 09dcd825c..5bada364c 100644 --- a/src/Plugin/InstallTask/SiteSettings.php +++ b/src/Plugin/InstallTask/SiteSettings.php @@ -104,6 +104,7 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition */ public function runTask(array &$install_state) { $this->state->set('nobots', FALSE); + $this->state->set('stanford-created', time()); $node_pages = [ '403_page' => '4b8018dc-49a6-4018-9c54-e8c3e462beee', @@ -138,9 +139,10 @@ public function runTask(array &$install_state) { ->create([ 'type' => 'stanford_basic_site_settings', 'context' => 'a:0:{}', - 'su_hide_ext_link_icons' => TRUE, ]); } + $config_page->set('su_hide_ext_link_icons', TRUE); + $config_page->set('su_site_created', time()); $config_page->set('su_site_email', $site_data['email']); $config_page->set('su_site_name', $site_data['webSiteTitle']); $config_page->save(); diff --git a/stanford_profile.info.yml b/stanford_profile.info.yml index b8781ad57..6fed7184e 100644 --- a/stanford_profile.info.yml +++ b/stanford_profile.info.yml @@ -1,6 +1,6 @@ name: 'Stanford Profile' description: 'Jumpstart Website Profile' -version: 11.4.4 +version: 11.4.5 type: profile project: Stanford core_version_requirement: ^10 || ^11 diff --git a/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php b/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php index c984bc801..9f307e9c8 100644 --- a/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php +++ b/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php @@ -114,6 +114,32 @@ public function setup(): void { 'label' => 'Name', ])->save(); + $field_storage = FieldStorageConfig::create([ + 'field_name' => 'su_hide_ext_link_icons', + 'entity_type' => 'config_pages', + 'type' => 'boolean', + ]); + $field_storage->save(); + FieldConfig::create([ + 'entity_type' => 'config_pages', + 'field_storage' => $field_storage, + 'bundle' => 'stanford_basic_site_settings', + 'label' => 'Hide Ext Links', + ])->save(); + + $field_storage = FieldStorageConfig::create([ + 'field_name' => 'su_site_created', + 'entity_type' => 'config_pages', + 'type' => 'timestamp', + ]); + $field_storage->save(); + FieldConfig::create([ + 'entity_type' => 'config_pages', + 'field_storage' => $field_storage, + 'bundle' => 'stanford_basic_site_settings', + 'label' => 'Created', + ])->save(); + drupal_flush_all_caches(); $data = json_encode([ From 647aad47180472ea43054b8e9be8ec3521a29d1c Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Wed, 23 Oct 2024 10:24:35 -0700 Subject: [PATCH 5/6] Added graphql view for search results --- config/sync/graphql_compose.settings.yml | 46 ++++++++++++++++++++++++ config/sync/views.view.search.yml | 42 ++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/config/sync/graphql_compose.settings.yml b/config/sync/graphql_compose.settings.yml index 98006fbfb..0d764ceb3 100644 --- a/config/sync/graphql_compose.settings.yml +++ b/config/sync/graphql_compose.settings.yml @@ -21,10 +21,16 @@ entity_config: enabled: true query_load_enabled: true edges_enabled: true + policy_settings: + enabled: false stanford_basic_site_settings: enabled: true query_load_enabled: true edges_enabled: true + stanford_courses_importer: + enabled: false + stanford_events_importer: + enabled: false stanford_global_message: enabled: true query_load_enabled: true @@ -33,6 +39,10 @@ entity_config: enabled: true query_load_enabled: true edges_enabled: true + stanford_person_importer: + enabled: false + stanford_saml: + enabled: false stanford_super_footer: enabled: true query_load_enabled: true @@ -139,8 +149,28 @@ entity_config: enabled: true query_load_enabled: true menu: + account: + enabled: false + admin: + enabled: false + courses-menu: + enabled: false + devel: + enabled: false + footer: + enabled: false main: enabled: true + news-topics: + enabled: false + stanford-event-types: + enabled: false + stanford-person-type: + enabled: false + stanford-publication-topics: + enabled: false + tools: + enabled: false node: stanford_course: enabled: true @@ -162,6 +192,8 @@ entity_config: query_load_enabled: true edges_enabled: true routes_enabled: true + stanford_opportunity: + enabled: false stanford_page: enabled: true query_load_enabled: true @@ -234,9 +266,21 @@ entity_config: enabled: true query_load_enabled: true routes_enabled: true + cap_org_codes: + enabled: false event_audience: enabled: true query_load_enabled: true + media_tags: + enabled: false + opportunity_sponsor: + enabled: false + opportunity_tag_filters: + enabled: false + opportunity_type: + enabled: false + site_owner_orgs: + enabled: false stanford_event_groups: enabled: true query_load_enabled: true @@ -400,6 +444,8 @@ field_config: enabled: true su_site_algolia_search: enabled: true + su_site_algolia_ui: + enabled: true su_site_dropdowns: enabled: true su_site_menu_levels: diff --git a/config/sync/views.view.search.yml b/config/sync/views.view.search.yml index 8fe4b9d77..99a88f6b2 100644 --- a/config/sync/views.view.search.yml +++ b/config/sync/views.view.search.yml @@ -5,6 +5,7 @@ dependencies: config: - search_api.index.full_site_content module: + - graphql_compose_views - search_api id: search label: Search @@ -404,6 +405,47 @@ display: tags: - 'config:search_api.index.full_site_content' - 'search_api_list:full_site_content' + graphql_search: + id: graphql_search + display_title: GraphQL + display_plugin: graphql + position: 2 + display_options: + pager: + type: full + options: + offset: 0 + pagination_heading_level: h4 + items_per_page: 15 + total_pages: null + id: 0 + tags: + next: 'Next ›' + previous: '‹ Previous' + first: '« First' + last: 'Last »' + expose: + items_per_page: true + items_per_page_label: 'Items per page' + items_per_page_options: '3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99' + items_per_page_options_all: true + items_per_page_options_all_label: '- All -' + offset: true + offset_label: Offset + quantity: 9 + display_extenders: { } + graphql_query_name: search + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + tags: + - 'config:search_api.index.full_site_content' + - 'search_api_list:full_site_content' results: id: results display_title: Page From af190d04d4a3ab2d943d17d8d8803b168503d93c Mon Sep 17 00:00:00 2001 From: pookmish Date: Wed, 23 Oct 2024 15:24:28 -0700 Subject: [PATCH 6/6] Fix acceptance tests after contrib updates (#824) --- config/sync/views.view.content.yml | 21 +++++++++++-------- config/sync/views.view.files.yml | 4 +++- .../acceptance/Contrib/ViewsBulkEditCest.php | 2 +- .../acceptance/Media/MediaCest.php | 2 +- .../functional/Users/RolesCest.php | 2 +- 5 files changed, 18 insertions(+), 13 deletions(-) diff --git a/config/sync/views.view.content.yml b/config/sync/views.view.content.yml index 4e0acef7d..f8e600186 100644 --- a/config/sync/views.view.content.yml +++ b/config/sync/views.view.content.yml @@ -80,31 +80,34 @@ display: clear_on_exposed: true force_selection_info: false selected_actions: - 5: - action_id: node_assign_owner_action - preconfiguration: - add_confirmation: false - 7: + - action_id: node_clone_action preconfiguration: add_confirmation: false - 8: + message_override: '' + - action_id: views_bulk_edit preconfiguration: add_confirmation: false + message_override: '' get_bundles_from_results: true - 9: + - action_id: views_bulk_operations_delete_entity - 11: + preconfiguration: + add_confirmation: true + message_override: '' + - action_id: 'entity:unpublish_action:node' preconfiguration: add_confirmation: false label_override: Unpublish - 12: + message_override: '' + - action_id: 'entity:publish_action:node' preconfiguration: add_confirmation: false label_override: Publish + message_override: '' title: id: title table: node_field_data diff --git a/config/sync/views.view.files.yml b/config/sync/views.view.files.yml index 5f9a4bebb..e52b47960 100644 --- a/config/sync/views.view.files.yml +++ b/config/sync/views.view.files.yml @@ -80,10 +80,12 @@ display: clear_on_exposed: true force_selection_info: false selected_actions: - 2: + - action_id: views_bulk_operations_delete_entity preconfiguration: + add_confirmation: true label_override: 'Delete File' + message_override: '' fid: id: fid table: file_managed diff --git a/tests/codeception/acceptance/Contrib/ViewsBulkEditCest.php b/tests/codeception/acceptance/Contrib/ViewsBulkEditCest.php index 8b4bb079a..c4a17a7ab 100644 --- a/tests/codeception/acceptance/Contrib/ViewsBulkEditCest.php +++ b/tests/codeception/acceptance/Contrib/ViewsBulkEditCest.php @@ -72,7 +72,7 @@ public function testBulkEdits(AcceptanceTester $I) { $I->checkOption('Publication Types (value 1)'); $I->selectOption('node[stanford_publication][su_publication_topics][0][target_id]', $pubs_foo_bar_baz->id()); $I->click('Apply'); - $I->canSee('Action processing results'); + $I->canSee('Modify field values', '.messages-list'); foreach ($this->nodes as $node) { $I->amOnPage($node->toUrl('edit-form')->toString()); diff --git a/tests/codeception/acceptance/Media/MediaCest.php b/tests/codeception/acceptance/Media/MediaCest.php index 93cdc5c0d..05e6bc021 100644 --- a/tests/codeception/acceptance/Media/MediaCest.php +++ b/tests/codeception/acceptance/Media/MediaCest.php @@ -241,7 +241,7 @@ public function testDeleteFiles(AcceptanceTester $I) { $I->canSee('Are you sure you wish to perform'); $I->canSee($this->filePath); $I->click('Execute action'); - $I->canSee('Action processing results: Delete entities'); + $I->canSee('Delete entities'); $I->amOnPage('/admin/content/files'); $I->cantSee($this->filePath); diff --git a/tests/codeception/functional/Users/RolesCest.php b/tests/codeception/functional/Users/RolesCest.php index 419e16d0d..634ab7e75 100644 --- a/tests/codeception/functional/Users/RolesCest.php +++ b/tests/codeception/functional/Users/RolesCest.php @@ -77,7 +77,7 @@ public function testBulkDeleteHomePage(FunctionalTester $I) { $I->selectOption('Action', 'Delete selected entities'); $I->click('Apply to selected items'); $I->click('Execute action'); - $I->waitForText('Action processing results'); + $I->waitForText('Delete entities'); $I->canSee('Access denied (1)'); $I->runDrush('cache-rebuild'); $I->amOnPage('/');