- Issue created by @wim leers
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Based on work by @bnjmnm and I in 📌 Support props that can use wysiwyg widgets Active .
The all-props test-only SDC has had a test_object_drupal_date_range prop since … before the 0.x branch or XB d.o issues even started, i.e. since commit 7dcc12fa3bb9246870f995ce0b7c437b4ad0f62c from April 26, 2024 (), which introduced json-schema-definitions://sdc_test_all_props.module/date-range.
We've used hook_storage_prop_shape_alter() on behalf of the datetime_range module for a very long time too, to indicate that that module is not necessary for XB, but if you install it, then you can support date range prop shapes too.
Steps to reproduce:
Steps to reproduce:
datetime_range module
sdc_test_all_props module
all-props component onto canvas
…
"test_object_drupal_date_range": {
"expression": "ℹ︎daterange␟{from↠end_value,to↠value}",
"sourceType": "static:field_item:daterange",
"value": [],
"sourceTypeSettings": {
"storage": {
"datetime_type": "date"
}
}
},
…
name="xb_component_props[<uuid>][test_object_drupal_date_range][0][value][date]"
xb_form_props, and matches the name attribute observation above:…
"test_object_drupal_date_range": {
"expression": "ℹ︎daterange␟{from↠end_value,to↠value}",
"sourceType": "static:field_item:daterange",
"value": [
{
"value": {
"date": "2025-05-07"
},
"end_value": {
"date": ""
}
}
],
"sourceTypeSettings": {
"storage": {
"datetime_type": "date"
}
}
},
name attribute.
So: this doesn't actually work yet. So this change to the test must be reverted; otherwise this test becomes meaningless. Its purpose is to track progress of _working_ field widgets.
dateTime client-side transform already has a type: date option which would work well here.prop-types.cy.jsPostponed
0.0
Redux-integrated field widgets
Based on work by @bnjmnm and I in 📌 Support props that can use wysiwyg widgets Active .