Problem/Motivation
Now when you visit node/ID/edit with collapsed paragraph fields there are some nice paragraphs information in the summaries at each paragraph items.
I was wondering if we should make it visually more clear what is the first line content from the plugin summaries, and maybe truncate the paragraphs item summary content a bit "earlier" preventing the plugin summaries to be hidden because of the long summary string. Something like this:

STR:
- enable paragraphs_collection_demo
- in /admin/structure/types/manage/paragraphed_content_demo/form-display set Paragraphs field "Edit mode" (fields[field_paragraphs_demo][settings_edit_form][settings][edit_mode]) to "Closed"
- visit the paragraphs_collection demo node edit page
- now you can see the summaries for each paragraph items
Proposed resolution
If we agree to shorten the paragraph item content summary and make it "bold" to differentiate it from the plugin summaries:
edit Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget::addCollapsedSummary(), mode strip_tags(implode(', ', $summary)) before the plugin summary foreach loop, try to truncate/substr the $summary to the first (let's say) 65 chars and add a "<strong>" markup.
Remaining tasks
Discuss if the proposed feature and solution are fine, evtl. update the IS.
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2017-02-14 at 11.10.22.png | 69.09 KB | tduong |
Comments
Comment #2
miro_dietikerConcatenating the plugin summaries with the field summary was just a no-brain solution to make "something" visible.
We don't want to make it "bold". We want to maintain this as separate semantic elements.
As written before, a plugin might offer icons and other types of summary.
The most simple version is to introduce a second method that returns icons. But not sure if this will be satisfying...
Comment #3
miro_dietikerConnecting to summary meta issue.
Comment #4
berdirSo this is exactly what we did now in #3012053: Split summary into content and behavior parts, show content/behavior only summary when switching between content and behaviors