Skip to content

Commit

Permalink
VACMS-10089: Checkbox to add event to National Outreach Calendar (#15552
Browse files Browse the repository at this point in the history
)

* VACMS-10086: Storing temp hacks for checkbox.

* VACMS-10089: Get rid of temp hacks.

* VACMS-10089: Add to outreach calendar checkbox now sets the correct value in listing_field
- Disable the checkbox if it needs to be.

* VACMS-10089: Adds new 'add to outrech calendar' field.

* VACMS-10089: Moves properties to constants.
- Adds the calendar to the event if the user is a hub only user.

* VACMS-10089: Restore revision log to the proper location.

* VACMS-10089: Updates style of checkbox and label.

* VACMS-10089: Sets default value and modifies the title of the 'add to national outreach calendar' field.

* VACMS-10089: Adds missing function return types.

* VACMS-10089: Adds defualt value for field_listing if user is Outreach hub only user.
- Restore the _none option.

* Bump phpstan/phpstan from 1.10.36 to 1.10.37 (#15521)

Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 1.10.36 to 1.10.37.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md)
- [Commits](phpstan/phpstan@1.10.36...1.10.37)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* VACMS-10089: Cypress testing of outreach cal checkbox

* VACMS-10089: Add feature toggle for outreach calendar checkbox

* VACMS-10089: Remove unnessary cypress tests.

* Revert "Bump phpstan/phpstan from 1.10.36 to 1.10.37 (#15521)"

This reverts commit 2f81169.

* VACMS-10089: Don't change to snekCase cuz it was wrong

* VACMS-10089: Rename class property for outreach feature toggle

* VACMS-10089: Adjust how the feature toggle is used.

* VACMS-10089: Disable some tests that rely on a feature toggle being set.

* VACMS-10089: Towards the feature cypress test

* VACMS-10089: More cypress.

* VACMS-10089: Finish cypress tests woot

* VACMS-10089: Remove redundant media upload test

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Daniel Sasser <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 9, 2023
1 parent c59ac4c commit a36ad8c
Show file tree
Hide file tree
Showing 14 changed files with 310 additions and 99 deletions.
35 changes: 25 additions & 10 deletions config/sync/core.entity_form_display.node.event.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies:
- field.field.node.event.field_media
- field.field.node.event.field_meta_tags
- field.field.node.event.field_order
- field.field.node.event.field_publish_to_outreach_cal
- field.field.node.event.field_url_of_an_online_event
- node.type.event
- workflows.workflow.editorial
Expand All @@ -46,7 +47,7 @@ third_party_settings:
label: 'Section settings'
region: content
parent_name: ''
weight: 8
weight: 9
format_type: details_sidebar
format_settings:
classes: ''
Expand All @@ -64,7 +65,7 @@ third_party_settings:
label: Location
region: content
parent_name: ''
weight: 7
weight: 8
format_type: details
format_settings:
classes: ''
Expand All @@ -81,7 +82,7 @@ third_party_settings:
label: Registration
region: content
parent_name: ''
weight: 6
weight: 7
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -142,7 +143,7 @@ third_party_settings:
label: 'Meta Tags'
region: content
parent_name: ''
weight: 5
weight: 6
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -173,7 +174,7 @@ third_party_settings:
label: Free
region: content
parent_name: group_all_events_are_free
weight: 15
weight: 32
format_type: html_element
format_settings:
classes: ''
Expand All @@ -200,7 +201,7 @@ content:
third_party_settings: { }
field_additional_information_abo:
type: text_textarea
weight: 31
weight: 32
region: content
settings:
rows: 5
Expand All @@ -220,7 +221,7 @@ content:
third_party_settings: { }
field_body:
type: text_textarea
weight: 4
weight: 5
region: content
settings:
rows: 5
Expand Down Expand Up @@ -258,7 +259,10 @@ content:
custom
show_extra: true
hide_date: false
separator: to
add_abbreviations: ''
allday: true
remove_seconds: false
third_party_settings:
smart_date_recur:
modal: true
Expand Down Expand Up @@ -318,7 +322,7 @@ content:
third_party_settings: { }
field_last_saved_by_an_editor:
type: datetime_timestamp
weight: 44
weight: 16
region: content
settings: { }
third_party_settings: { }
Expand All @@ -337,7 +341,11 @@ content:
weight: 2
region: content
settings: { }
third_party_settings: { }
third_party_settings:
limited_field_widgets:
limit_values: '1'
change_labels:
add_another: ''
field_location_humanreadable:
type: string_textfield
weight: 16
Expand All @@ -354,7 +362,7 @@ content:
third_party_settings: { }
field_media:
type: media_library_widget
weight: 3
weight: 4
region: content
settings:
media_types: { }
Expand All @@ -365,6 +373,13 @@ content:
region: content
settings: { }
third_party_settings: { }
field_publish_to_outreach_cal:
type: boolean_checkbox
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
field_url_of_an_online_event:
type: linkit
weight: 15
Expand Down
35 changes: 27 additions & 8 deletions config/sync/core.entity_view_display.node.event.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies:
- field.field.node.event.field_media
- field.field.node.event.field_meta_tags
- field.field.node.event.field_order
- field.field.node.event.field_publish_to_outreach_cal
- field.field.node.event.field_url_of_an_online_event
- node.type.event
module:
Expand Down Expand Up @@ -50,6 +51,7 @@ third_party_settings:
group_c:
children:
- field_datetime_range_timezone
- field_listing
- field_media
- field_body
- field_url_of_an_online_event
Expand All @@ -74,7 +76,7 @@ third_party_settings:
label: Location-related
parent_name: group_c
region: content
weight: 28
weight: 7
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -89,7 +91,7 @@ third_party_settings:
label: 'Registration related'
parent_name: group_c
region: content
weight: 29
weight: 8
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -134,7 +136,7 @@ content:
label: above
settings: { }
third_party_settings: { }
weight: 25
weight: 4
region: content
field_datetime_range_timezone:
type: smartdate_default
Expand All @@ -146,8 +148,17 @@ content:
force_chronological: false
add_classes: false
time_wrapper: true
localize: false
parts:
- start
- end
duration:
separator: ' | '
unit: ''
decimals: 2
suffix: h
third_party_settings: { }
weight: 23
weight: 1
region: content
field_description:
type: string
Expand All @@ -170,7 +181,7 @@ content:
label: above
settings: { }
third_party_settings: { }
weight: 27
weight: 6
region: content
field_event_registrationrequired:
type: boolean
Expand Down Expand Up @@ -222,6 +233,14 @@ content:
third_party_settings: { }
weight: 17
region: content
field_listing:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 2
region: content
field_location_humanreadable:
type: string
label: above
Expand All @@ -244,7 +263,7 @@ content:
view_mode: default
link: false
third_party_settings: { }
weight: 24
weight: 3
region: content
field_order:
type: list_default
Expand All @@ -263,15 +282,15 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 26
weight: 5
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_last_saved_by_an_editor: true
field_listing: true
field_meta_tags: true
field_publish_to_outreach_cal: true
langcode: true
links: true
search_api_excerpt: true
15 changes: 15 additions & 0 deletions config/sync/core.entity_view_display.node.event.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ dependencies:
- field.field.node.event.field_media
- field.field.node.event.field_meta_tags
- field.field.node.event.field_order
- field.field.node.event.field_publish_to_outreach_cal
- field.field.node.event.field_url_of_an_online_event
- node.type.event
module:
- link
- smart_date
- text
- user
Expand All @@ -35,6 +37,18 @@ targetEntityType: node
bundle: event
mode: teaser
content:
breadcrumbs:
type: link
label: hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: -5
region: content
field_body:
type: text_default
label: hidden
Expand Down Expand Up @@ -73,6 +87,7 @@ hidden:
field_media: true
field_meta_tags: true
field_order: true
field_publish_to_outreach_cal: true
field_url_of_an_online_event: true
langcode: true
links: true
Expand Down
1 change: 1 addition & 0 deletions config/sync/feature_toggle.features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ features:
feature_single_value_field_link: FEATURE_SINGLE_VALUE_FIELD_LINK
feature_health_connect_number: FEATURE_HEALTH_CONNECT_NUMBER
feature_mobile_app_promo: FEATURE_MOBILE_APP_PROMO
feature_event_outreach_checkbox: FEATURE_EVENT_OUTREACH_CHECKBOX
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
uuid: ba2d9d43-c4b9-4bfd-831a-9ef7544d43f8
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_publish_to_outreach_cal
- node.type.event
module:
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: node.event.field_publish_to_outreach_cal
field_name: field_publish_to_outreach_cal
entity_type: node
bundle: event
label: 'Publish to the National Outreach Calendar'
description: ''
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'Yes'
off_label: 'No'
field_type: boolean
2 changes: 1 addition & 1 deletion config/sync/field.storage.node.field_listing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ settings:
target_type: node
module: core
locked: false
cardinality: 1
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
Expand Down
18 changes: 18 additions & 0 deletions config/sync/field.storage.node.field_publish_to_outreach_cal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: ad80a854-7f29-45c1-871a-2d087663f64a
langcode: en
status: true
dependencies:
module:
- node
id: node.field_publish_to_outreach_cal
field_name: field_publish_to_outreach_cal
entity_type: node
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading

0 comments on commit a36ad8c

Please sign in to comment.