Skip to content

Commit

Permalink
Merge pull request #451 from City-of-Helsinki/dev
Browse files Browse the repository at this point in the history
Dev to main
  • Loading branch information
rpnykanen authored Oct 9, 2024
2 parents a9e8d5f + 09b7290 commit cc424b7
Show file tree
Hide file tree
Showing 37 changed files with 359 additions and 109 deletions.
188 changes: 96 additions & 92 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions conf/cmi/config_ignore.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ _core:
mode: simple
ignored_config_entities:
- 'easy_breadcrumb.settings:home_segment_title'
- 'field.storage.paragraph.field_calculator:settings.allowed_values'
- 'hdbt_admin_tools.site_settings:site_settings'
- helfi_calculator.calculator_settings
- 'system.site:page.front'
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- paragraphs.paragraphs_type.service_list
- paragraphs.paragraphs_type.sidebar_text
- paragraphs.paragraphs_type.text
- paragraphs.paragraphs_type.unit_contact_card
- paragraphs.paragraphs_type.unit_search
module:
- entity_reference_revisions
Expand Down Expand Up @@ -53,6 +54,7 @@ settings:
text: text
unit_search: unit_search
service_list: service_list
unit_contact_card: unit_contact_card
negate: 0
target_bundles_drag_drop:
accordion:
Expand Down Expand Up @@ -94,6 +96,9 @@ settings:
text:
weight: 0
enabled: true
unit_contact_card:
weight: 0
enabled: true
unit_search:
weight: 0
enabled: true
Expand Down
32 changes: 32 additions & 0 deletions conf/cmi/core.entity_form_display.paragraph.calculator.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
uuid: 415efa63-8fdb-4c9b-ad08-484fcf3c9ac4
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.calculator.field_calculator
- field.field.paragraph.calculator.field_calculator_title
- paragraphs.paragraphs_type.calculator
_core:
default_config_hash: oidsK5Gbjpqc50yrLakSNTleVrr8jtrpQJfktf_R2rs
id: paragraph.calculator.default
targetEntityType: paragraph
bundle: calculator
mode: default
content:
field_calculator:
type: options_select
weight: 2
region: content
settings: { }
third_party_settings: { }
field_calculator_title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
status: true
34 changes: 34 additions & 0 deletions conf/cmi/core.entity_view_display.paragraph.calculator.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
uuid: 88f36111-2d96-4d0d-812d-af3c88a2ef9c
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.calculator.field_calculator
- field.field.paragraph.calculator.field_calculator_title
- paragraphs.paragraphs_type.calculator
module:
- options
_core:
default_config_hash: lstlYqyDuxffhG6_KlqYEX65K6EDoV9jzNiYAuswSu4
id: paragraph.calculator.default
targetEntityType: paragraph
bundle: calculator
mode: default
content:
field_calculator:
type: list_key
label: hidden
settings: { }
third_party_settings: { }
weight: 2
region: content
field_calculator_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
1 change: 1 addition & 0 deletions conf/cmi/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module:
helfi_api_base: 0
helfi_azure_fs: 0
helfi_base_content: 0
helfi_calculator: 0
helfi_ckeditor: 0
helfi_etusivu_entities: 0
helfi_eu_cookie_compliance: 0
Expand Down
4 changes: 2 additions & 2 deletions conf/cmi/eu_cookie_compliance.cookie_category.essential.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ langcode: en
status: true
dependencies: { }
_core:
default_config_hash: tsGLdAqnFNOsUkYbiBTtLnQLwrg4ySe6BnJzSBpAkFk
default_config_hash: 6_XedB0R6X-mo9oj-a1V_0wlGQWBzGMlKvDNs-f7KB0
id: essential
label: 'Essential cookies'
description:
value: '<p>Essential cookies help to make the website usable by allowing basic functions, navigating the page and using the protected areas of the site. The website will not work properly without these cookies and their consent is not required.</p><figure class="table" tabindex="0"><table><thead><tr><th>Name</th><th>Provider</th><th>Purpose of the cookie</th><th>Validity</th><th>Type</th></tr></thead><tbody><tr><td>cookiehub</td><td>cookiehub.com</td><td>Used by CookieHub to store information about whether visitors have given or declined the use of cookie categories used on the www.hel.fi site.</td><td>365 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed</td><td>www.hel.fi</td><td>Used by www.hel.fi Drupal to store information&nbsp;about whether visitors have given or declined the use of cookie categories used on the www.hel.fi site.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed-version</td><td>www.hel.fi</td><td>Used by www.hel.fi Drupal to store information&nbsp;about what version of the cookie consent the user has agreed to.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed-categories</td><td>www.hel.fi</td><td>Used by www.hel.fi Drupal to store information&nbsp;about what cookie categories the user has agreed to.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed</td><td>avustukset.hel.fi</td><td>Used by avustukset.hel.fi Drupal to store information&nbsp;about whether visitors have given or declined the use of cookie categories used on the avustukset.hel.fi site.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed-version</td><td>avustukset.hel.fi</td><td>Used by avustukset.hel.fi Drupal to store information&nbsp;about what version of the cookie consent the user has agreed to.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed-categories</td><td>avustukset.hel.fi</td><td>Used by avustukset.hel.fi Drupal to store information&nbsp;about what cookie categories the user has agreed to.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>SSESS*</td><td>www.hel.fi</td><td>A cookie related to the operation of the content management system.</td><td>23 days</td><td>&nbsp;</td></tr><tr><td>SSESS*</td><td>avustukset.hel.fi</td><td>A cookie related to the operation of the content management system.</td><td>23 days</td><td>&nbsp;</td></tr><tr><td>AWSELBCORS</td><td>siteimproveanalytics.io</td><td>The cookie is related to a load distribution function used to direct requests to servers with the least traffic.</td><td>Session</td><td>Third party</td></tr><tr><td>mtm_cookie_consent</td><td>kartta.hel.fi</td><td>A technical cookie that stores information about how you responded to the notice in the cookie banner about the use of cookies.</td><td>10950 days</td><td>&nbsp;</td></tr><tr><td>JSESSIONID</td><td><p>helsinkikanava.fi</p><p>coh-chat-app-prod.eu-de.mybluemix.net</p></td><td>The cookie is an obligatory cookie that facilitates visiting the website.</td><td>Session</td><td>Third party</td></tr><tr><td>JSESSIONID</td><td>coh-chat-app-prod.ow6i4n9pdzm.eu-de.codeengine.appdomain.cloud</td><td>Used for chat app functionality. Its value is used to access session data on server of the application.</td><td>Session</td><td>Third party</td></tr><tr><td>COOKIE_SUPPORT</td><td>helsinkikanava.fi</td><td>The cookie facilitates managing cookies on the website.</td><td>365 days</td><td>Third party</td></tr><tr><td>GUEST_LANGUAGE_ID</td><td>helsinkikanava.fi</td><td>This cookie is generated by the Liferay, its&nbsp;function is to store the language preferences.</td><td>365 days</td><td>Third party</td></tr><tr><td>helfi-settings</td><td>www.hel.fi</td><td>Used by www.hel.fi Drupal to store information&nbsp;about closed announcements and accordions'' state.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.visitor.autologout_login</td><td>avustukset.hel.fi</td><td>Used by avustukset.hel.fi Drupal to automatically logout user after a period of inactivity.</td><td>365 days</td><td>&nbsp;</td></tr><tr><td>editoria11yResultCount</td><td>www.hel.fi</td><td>Tracks accessibility issues for the current page when logged in as an editor on hel.fi.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.gin.sidebarExpanded.desktop</td><td>www.hel.fi</td><td>Stores whether the admin sidebar is expanded or collapsed on desktop when logged in as an editor on hel.fi.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.gin.sidebarExpanded.mobile</td><td>www.hel.fi</td><td>Stores whether the admin sidebar is expanded or collapsed on mobile when logged in as an editor on hel.fi.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.gin.darkmode</td><td>www.hel.fi</td><td>Stores the user''s dark mode preference in the admin theme when logged in as an editor on hel.fi.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.toolbar.subtrees.*</td><td>www.hel.fi</td><td>Stores the expanded or collapsed state of submenus in the Drupal admin toolbar for a logged-in editor, ensuring consistency across page loads.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.off-canvas.css.*</td><td>www.hel.fi</td><td>Stores cached CKEditor CSS in localStorage for a logged-in editor, using a key with a cache-busting query to ensure the latest CSS is loaded.</td><td>-</td><td>Local storage</td></tr><tr><td>ed11ySeen</td><td>www.hel.fi</td><td>Tracks which accessibility issues a logged-in editor has already seen to avoid duplicate notifications.</td><td>-</td><td>Local storage</td></tr><tr><td>editoria11yResultCount</td><td>www.hel.fi</td><td>Tracks the number of accessibility issues found on specific pages for a logged-in editor, helping monitor and address them.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.toolbar.toolbarState</td><td>www.hel.fi</td><td>Stores the state of the admin toolbar for a logged-in editor, including its orientation, active tab and state of expansion.</td><td>Session</td><td>Session storage</td></tr><tr><td>escapeAdminPath</td><td>www.hel.fi</td><td>Stores the URL to redirect a logged-in editor from the admin interface back to the main site.</td><td>Session</td><td>Session storage</td></tr></tbody></table></figure>'
value: '<p>Essential cookies help to make the website usable by allowing basic functions, navigating the page and using the protected areas of the site. The website will not work properly without these cookies and their consent is not required.</p><figure class="table" tabindex="0"><table><thead><tr><th>Name</th><th>Provider</th><th>Purpose of the cookie</th><th>Validity</th><th>Type</th></tr></thead><tbody><tr><td>cookiehub</td><td>cookiehub.com</td><td>Used by CookieHub to store information about whether visitors have given or declined the use of cookie categories used on the www.hel.fi site.</td><td>365 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed</td><td>www.hel.fi</td><td>Used by www.hel.fi Drupal to store information&nbsp;about whether visitors have given or declined the use of cookie categories used on the www.hel.fi site.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed-version</td><td>www.hel.fi</td><td>Used by www.hel.fi Drupal to store information&nbsp;about what version of the cookie consent the user has agreed to.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed-categories</td><td>www.hel.fi</td><td>Used by www.hel.fi Drupal to store information&nbsp;about what cookie categories the user has agreed to.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed</td><td>avustukset.hel.fi</td><td>Used by avustukset.hel.fi Drupal to store information&nbsp;about whether visitors have given or declined the use of cookie categories used on the avustukset.hel.fi site.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed-version</td><td>avustukset.hel.fi</td><td>Used by avustukset.hel.fi Drupal to store information&nbsp;about what version of the cookie consent the user has agreed to.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>cookie-agreed-categories</td><td>avustukset.hel.fi</td><td>Used by avustukset.hel.fi Drupal to store information&nbsp;about what cookie categories the user has agreed to.</td><td>100 days</td><td>&nbsp;</td></tr><tr><td>SSESS*</td><td>www.hel.fi</td><td>A cookie related to the operation of the content management system.</td><td>23 days</td><td>&nbsp;</td></tr><tr><td>SSESS*</td><td>avustukset.hel.fi</td><td>A cookie related to the operation of the content management system.</td><td>23 days</td><td>&nbsp;</td></tr><tr><td>AWSELBCORS</td><td>siteimproveanalytics.io</td><td>The cookie is related to a load distribution function used to direct requests to servers with the least traffic.</td><td>Session</td><td>Third party</td></tr><tr><td>mtm_cookie_consent</td><td>kartta.hel.fi</td><td>A technical cookie that stores information about how you responded to the notice in the cookie banner about the use of cookies.</td><td>10950 days</td><td>&nbsp;</td></tr><tr><td>JSESSIONID</td><td><p>helsinkikanava.fi</p><p>coh-chat-app-prod.eu-de.mybluemix.net</p></td><td>The cookie is an obligatory cookie that facilitates visiting the website.</td><td>Session</td><td>Third party</td></tr><tr><td>JSESSIONID</td><td>coh-chat-app-prod.ow6i4n9pdzm.eu-de.codeengine.appdomain.cloud</td><td>Used for chat app functionality. Its value is used to access session data on server of the application.</td><td>Session</td><td>Third party</td></tr><tr><td>COOKIE_SUPPORT</td><td>helsinkikanava.fi</td><td>The cookie facilitates managing cookies on the website.</td><td>365 days</td><td>Third party</td></tr><tr><td>GUEST_LANGUAGE_ID</td><td>helsinkikanava.fi</td><td>This cookie is generated by the Liferay, its&nbsp;function is to store the language preferences.</td><td>365 days</td><td>Third party</td></tr><tr><td>helfi-settings</td><td>www.hel.fi</td><td>Used by www.hel.fi Drupal to store information&nbsp;about closed announcements and accordions'' state.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.visitor.autologout_login</td><td>avustukset.hel.fi</td><td>Used by avustukset.hel.fi Drupal to automatically logout user after a period of inactivity.</td><td>365 days</td><td>&nbsp;</td></tr><tr><td>Drupal.gin.sidebarExpanded.desktop</td><td>www.hel.fi</td><td>Stores whether the admin sidebar is expanded or collapsed on desktop when logged in as an editor on hel.fi.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.gin.sidebarExpanded.mobile</td><td>www.hel.fi</td><td>Stores whether the admin sidebar is expanded or collapsed on mobile when logged in as an editor on hel.fi.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.gin.darkmode</td><td>www.hel.fi</td><td>Stores the user''s dark mode preference in the admin theme when logged in as an editor on hel.fi.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.toolbar.subtrees.*</td><td>www.hel.fi</td><td>Stores the expanded or collapsed state of submenus in the Drupal admin toolbar for a logged-in editor, ensuring consistency across page loads.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.off-canvas.css.*</td><td>www.hel.fi</td><td>Stores cached CKEditor CSS in localStorage for a logged-in editor, using a key with a cache-busting query to ensure the latest CSS is loaded.</td><td>-</td><td>Local storage</td></tr><tr><td>ed11ySeen</td><td>www.hel.fi</td><td>Tracks which accessibility issues a logged-in editor has already seen to avoid duplicate notifications.</td><td>-</td><td>Local storage</td></tr><tr><td>editoria11yResultCount</td><td>www.hel.fi</td><td>Tracks the number of accessibility issues found on specific pages for a logged-in editor, helping monitor and address them.</td><td>-</td><td>Local storage</td></tr><tr><td>Drupal.toolbar.toolbarState</td><td>www.hel.fi</td><td>Stores the state of the admin toolbar for a logged-in editor, including its orientation, active tab and state of expansion.</td><td>Session</td><td>Session storage</td></tr><tr><td>escapeAdminPath</td><td>www.hel.fi</td><td>Stores the URL to redirect a logged-in editor from the admin interface back to the main site.</td><td>Session</td><td>Session storage</td></tr></tbody></table></figure>'
format: full_html
checkbox_default_state: required
weight: -9
5 changes: 5 additions & 0 deletions conf/cmi/field.field.node.page.field_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- node.type.page
- paragraphs.paragraphs_type.accordion
- paragraphs.paragraphs_type.banner
- paragraphs.paragraphs_type.calculator
- paragraphs.paragraphs_type.chart
- paragraphs.paragraphs_type.columns
- paragraphs.paragraphs_type.contact_card_listing
Expand Down Expand Up @@ -61,6 +62,7 @@ settings:
service_list_search: service_list_search
unit_search: unit_search
unit_contact_card: unit_contact_card
calculator: calculator
negate: 0
target_bundles_drag_drop:
accordion:
Expand All @@ -69,6 +71,9 @@ settings:
banner:
weight: 2
enabled: true
calculator:
weight: 19
enabled: true
chart:
weight: 11
enabled: true
Expand Down
5 changes: 5 additions & 0 deletions conf/cmi/field.field.node.page.field_lower_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- node.type.page
- paragraphs.paragraphs_type.accordion
- paragraphs.paragraphs_type.banner
- paragraphs.paragraphs_type.calculator
- paragraphs.paragraphs_type.chart
- paragraphs.paragraphs_type.columns
- paragraphs.paragraphs_type.contact_card_listing
Expand Down Expand Up @@ -61,6 +62,7 @@ settings:
service_list_search: service_list_search
unit_search: unit_search
unit_contact_card: unit_contact_card
calculator: calculator
negate: 0
target_bundles_drag_drop:
accordion:
Expand All @@ -69,6 +71,9 @@ settings:
banner:
weight: 4
enabled: true
calculator:
weight: 20
enabled: true
chart:
weight: 11
enabled: true
Expand Down
25 changes: 25 additions & 0 deletions conf/cmi/field.field.paragraph.calculator.field_calculator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: f97ffdb6-9779-4a4d-9cf2-8ed9401ab9ab
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_calculator
- paragraphs.paragraphs_type.calculator
module:
- options
_core:
default_config_hash: cjDkOC6b6J_rVgoqX4O2jaE-C7nObpMRwc8TYfzlC8M
id: paragraph.calculator.field_calculator
field_name: field_calculator
entity_type: paragraph
bundle: calculator
label: Calculator
description: ''
required: true
translatable: false
default_value:
-
value: disabled
default_value_callback: ''
settings: { }
field_type: list_string
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 42151b6f-f57a-450f-93de-aba536ac377a
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_calculator_title
- paragraphs.paragraphs_type.calculator
_core:
default_config_hash: hssV1dRPZ995nBWME2MzKlJK4yWkRhyO-mN3vVDvRw0
id: paragraph.calculator.field_calculator_title
field_name: field_calculator_title
entity_type: paragraph
bundle: calculator
label: Title
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
22 changes: 22 additions & 0 deletions conf/cmi/field.storage.paragraph.field_calculator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: 1ae46ae8-8fc7-49fc-b182-230d527aa803
langcode: en
status: true
dependencies:
module:
- options
- paragraphs
_core:
default_config_hash: 4CPKApPiqbFT1VUtHFecJAe176DnMFwbIlEZbRFFGoE
id: paragraph.field_calculator
field_name: field_calculator
entity_type: paragraph
type: list_string
settings:
allowed_values_function: 'Drupal\helfi_calculator\Form\CalculatorSettings::getActiveCalculators'
module: options
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
23 changes: 23 additions & 0 deletions conf/cmi/field.storage.paragraph.field_calculator_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 4ba1bc49-ed21-4cd7-9d4d-8a7a47e62294
langcode: en
status: true
dependencies:
module:
- paragraphs
_core:
default_config_hash: XoFaMysHdv1VV8liUZt09qTEQSPhAOridCypc_7yd8w
id: paragraph.field_calculator_title
field_name: field_calculator_title
entity_type: paragraph
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
7 changes: 7 additions & 0 deletions conf/cmi/file.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ description:
icon:
directory: core/modules/file/icons
make_unused_managed_files_temporary: false
filename_sanitization:
transliterate: true
replace_whitespace: true
replace_non_alphanumeric: true
deduplicate_separators: true
lowercase: true
replacement_character: _
26 changes: 26 additions & 0 deletions conf/cmi/helfi_calculator.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
langcode: en
calculators:
home_care_service_voucher:
label: 'Home care service voucher'
active: false
json: '{}'
home_care_client_fee:
label: 'Home care client fee'
active: false
json: '{}'
continuous_housing_service_voucher:
label: '24-hour housing service voucher'
active: false
json: '{}'
families_home_services_client_fee:
label: 'Families home services client fee'
active: false
json: '{}'
early_childhood_education_fee:
label: 'Early childhood education fee'
active: false
json: '{}'
helsinki_benefit_amount_estimate:
label: 'Helsinki benefit amount estimate'
active: false
json: '{}'
Loading

0 comments on commit cc424b7

Please sign in to comment.