Skip to content

6685 truncate methods - dataset pg summary block description#7644

Merged
kcondon merged 11 commits intodevelopfrom
6685-truncate-methods
Mar 11, 2021
Merged

6685 truncate methods - dataset pg summary block description#7644
kcondon merged 11 commits intodevelopfrom
6685-truncate-methods

Conversation

@mheppler
Copy link
Copy Markdown
Contributor

@mheppler mheppler commented Mar 1, 2021

What this PR does / why we need it:

Various UI display issues have been reported when large blocks of text and HTML are displayed in the Description field of the summary block section, under the citation and above the tabs on the dataset pg. Added truncation plugin and custom js, css to improve displaying larger descriptions.

Which issue(s) this PR closes:

Closes #6685 Truncate methods: checksums, long summary metadata fields

Special notes for your reviewer:

Suggestions on how to test this:

NOTE... there is a dataset publish bug that breaks tooltips and other js rebind functions (like truncate), see the new issue opened to report this, Dataset Publish - Missing success msg + broken tooltips and other js rebind functions + unfortunate "DRAFT was not found" on page reload #7653.

Put whatever text and HTML into your dataset description that the system allows (I put some sample dataset links in one of my progress comments on the original issue)... this will chop it down to a respectable size for browsing... also, don't forget to SHIFT+RELOAD if you're seeing any weird stuff the first go through... ENJOY!!!!

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Screen Shot 2021-03-03 at 11 36 40 AM

Is there a release notes update needed for this change?:

Additional documentation:

@mheppler mheppler self-assigned this Mar 1, 2021
@mheppler mheppler marked this pull request as ready for review March 2, 2021 21:26
@mheppler mheppler removed their assignment Mar 2, 2021
@mheppler mheppler changed the title 6685 truncate methods 6685 truncate methods - dataset pg summary block description Mar 2, 2021
@mheppler mheppler self-assigned this Mar 3, 2021
@mheppler mheppler assigned mheppler and unassigned mheppler Mar 3, 2021
@mheppler
Copy link
Copy Markdown
Contributor Author

mheppler commented Mar 5, 2021

Much appreciation to @scolapasta for assisting with the new onloadScript technique to resolve some ajax update issues seen with the new truncation code. 🙏

@mheppler mheppler removed their assignment Mar 5, 2021
@scolapasta scolapasta assigned scolapasta and unassigned scolapasta Mar 5, 2021
@mheppler mheppler removed their assignment Mar 8, 2021
Copy link
Copy Markdown
Contributor

@scolapasta scolapasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. If at some point the summary section gets "updated" by ajax, this will likely break, but the logic to handle was more complicated than currently needed.

@kcondon kcondon self-assigned this Mar 11, 2021
@kcondon kcondon merged commit ae799ac into develop Mar 11, 2021
@kcondon kcondon deleted the 6685-truncate-methods branch March 11, 2021 20:13
@djbrooke djbrooke added this to the 5.4 milestone Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Truncate methods: checksums, long summary metadata fields

4 participants