-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncate methods: checksums, long summary metadata fields #6685
Comments
Last week, I updated my PR #7312 to apply truncation code to the checksums and UNF's on the dataset pg, as requested in #5210. This week, @landreev is helping to investigate issue #5215 in order to apply this feature to UNF's on the dataverse pg for the file search result cards, as I have already applied the feature to the checksums. In addition to truncating long checksum strings, that PR applies a new attribute to the file dataTable on the dataset pg, that was discovered in an answer on Stack Overflow. By adding Will solve some of the other UI issues in separate PR's from the checksum PR, as there is already a lot going on in that one. Any additional responsive UI cleanup efforts will outlined here. |
Dataset description with HTML example: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/M4ZGXP&version=1.0 With the help of @jggautier, who pointed me to the dataset, Harvard Dataverse Optional Feature Use Data, I was able to get a ballpark number on the description field character length in the Harvard Dataverse. Of the 29,295 datasets included that data file, nearly half have a description length over 250 characters. With that ballpark number, I am going to start prototyping a truncation/toggle solution that would be applied to descriptions over 500 characters. It's a nice round number, and we can do further, more detailed investigation on the metrics once we've got a working prototype which we can demo for the community. |
There is a list of related issues in the original comment above. A lot has been done in various efforts to resolve these issues, and I just wanted to get an update on them here...
NOTE: I have closed issue Handle long strings in the UI #6578 as that only had one outstanding issue, which is also being tracked in this issue. There are two remaining issues that are very related and might be able to be resolved in one effort...
Those issues will continued to be tracked in this issue. Updates to follow. |
Progress tracking outline... WHAT TO TRUNCATE HOW TO TRUNCATE HOW TO READ MORE HOW IS IT ACCESSIBLE/RESPONSIVE QUESTIONS + TO-DO's...
SAMPLE DATASETS
|
Initial attempts at truncating descriptions with HTML worked, but were buggy. When testing on additional sample descriptions from production, they went from buggy to broken. Testing other plugins proved equally buggy, broken or did not support HTML.
Back to the drawing board. Investigating CSS-only methods like line-clamp that have spotty browser support. I believe all the heavy lifting is done here, which is why I created the draft PR of the initial attempt. Just need to swap out the one plugin/snippet related to the truncation/clamping or whatever other method is out there. After much research, I can say there is no one "BEST" solution for this feature. |
…ater than 250px in height [ref #6685]
Design Doc
Related Issues
Handle long strings in the UI Handle long strings in the UI #6578Mockups
Questions
To-Do's
The text was updated successfully, but these errors were encountered: