Problem/Motivation
The daterange field should be placed into the "date_time" category.
Steps to reproduce
Install datetime_range module and you will see it creates its own category which leads to confusing UI.
Proposed resolution
This requires:
- Adding
category = "date_time"to the annotation of DateRangeItem.php - User interface text for the descriptions, to be added also to the annotation.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3401464
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
simeComment #3
cilefen commentedComment #4
rkollerI've added #3370326: Refine labels and descriptions for field types as a related issue. I wonder if the entire point 2 from the proposed resolution could be done in the scope of the linked issue which is about refining the microcopy. That way the copy would be consistent when it is done in a single issue there?
Comment #6
sime@rkoller I agree that refining microcopy would be best done on a dedicated issue.
Comment #9
anushrikumari commentedCreated MR to address point 1.
Added screenshot for review.
Comment #10
anushrikumari commentedComment #11
simeThanks for creating the MR with the initial change, we'll need the rest before the review can start.
Comment #12
anushrikumari commentedI've wrapped the category into @Translation. The description is already added for the field, see screenshot so do we have to add it anywhere else?
The description for the category is already updated at https://www.drupal.org/project/drupal/issues/3372097
Comment #13
sijumpk commented@anushrikumari, I think you added
category = @Translation("Date and Time")Just category machine name is needed. (its "date_time" for datetime field)
category = "date_time",Otherwise it ends up showing inside a separate group.
Comment #14
viren18febs commentedI have updated the category machine name & patch added, please review.
Comment #15
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #16
simeIt should be
category = "date_time"you can compare it to the other date widgets.Please leave "Needs work" until someone provides UI text that is similar to the other date widgets.
Comment #17
anushrikumari commentedAdded the description similar to the date field. Also updated the category to "date_time". Attached screenshot for the description.
Comment #18
simeThank you. I think this will need something that describes why a site builder would use this field instead of simply using two date fields.
Comment #19
anushrikumari commentedUpdated description that defines the module functionality. I would like some suggestions about the info that we should add/keep or omit from below -
Comment #20
smustgrave commentedSeems to have test failures in MR.
Comment #21
simeThank you @anushri19 this is good progress. I've screenshot the current version below for UX team review and added the tag. I expect the text is too verbose but it does seem to cover everything at this point.
I've looked at the gitlab test output and I can't work out what might be failing due to this patch, i'm not sure what I'm missing something. I have merged/rebased 11.x for good measure.
Comment #22
lauriiiProposed a simplified text in the MR. 😊
Comment #23
ajaypratapsingh commentedI have tried to add points suggested by @lauriii please review
Comment #24
lauriii@ajaypratapsingh Thank you for working on this! This issue has a MR so it would be great if you could make the updates there 😊
Comment #25
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #27
ankithashettyRebased the MR and updated the description as suggested in #22, thanks!
Comment #28
shweta__sharma commentedTested MR-5397 and the changes have been updated perfectly. Attached screenshot for reference.
Thanks
Comment #29
shweta__sharma commentedHi @lauriii
Some of my thoughts -
There is a full stop after the sentence in recent changes but with other field types there is no full stop in the description sentences so I think we need to add a full stop on the other field descriptions too for better experience. After the sentence is complete, there should be a full stop which is common.
https://www.stylemanual.gov.au/grammar-punctuation-and-conventions/punct....
Comment #30
lauriiiMaybe we could remove the full stops here and open another issue to decide if we should use full stop across all field type descriptions.
I also added a proposal to remove the field options since that isn't something we have for other field types, and it makes the description very lengthy.
Comment #31
shweta__sharma commentedRemoved full stops and field options from the description as suggested in #30
Thanks
Comment #32
shweta__sharma commentedComment #33
smustgrave commentedTagging for follow up per #30, hiding patches for clarity.
Comment #34
lauriiiWe already have a follow-up for refining the descriptions: #3370326: Refine labels and descriptions for field types. I added the full stop for bullet points as a consideration there.
This seems like a small enough issue to not require full on usability testing. Removing the tag and moving to RTBC since it would be nice to get this done before 10.2.0.
Comment #37
catchCommitted/pushed to 11.x and cherry-picked to 10.2.x, thanks!