TruncatableComponent usability improvement#1619
Conversation
artlowel
left a comment
There was a problem hiding this comment.
Thanks @atarix83! It looks unobtrusive, and it works.
The performance, while it's noticeably worse than the current main branch on higher page sizes, it is also better than I expected (at least on my machine), so I think this way of working may be feasible. I added some inline comments to the method that does the size calculations, because I think there are a few easy optimizations that can still be made
That said, @tdonohue it would be good if a few other people gave it a test with performance in mind as well (e.g. using high page sizes, grid view, resizing the window, etc), since I have an atypical setup
|
we'll work to your feedback in the next days |
# Conflicts: # src/app/admin/admin-search-page/admin-search-results/admin-search-result-grid-element/item-search-result/item-admin-search-result-grid-element.component.spec.ts
|
following your feedback we tried to improve performance issue, could you check again? thanks |
There was a problem hiding this comment.
👍 Thanks @atarix83 ! The code looks good. I tested it and it works well... I noticed that the "Show more" also works for long lists of authors (and longer titles when using the grid view)
I also paid close attention to performance, even using 100 items per page. I'm not seeing any noticeable change in performance with this usability improvement...if there is any change, it's very minor. The only very minor thing I noticed is that on grid view, sometimes the "Show more" link takes a brief moment to appear (less than a second) after the page loads. Overall, this all looks good to me! I feel it's good enough and we can always improve it later as needed. Thanks!
…ular into DSC-516-Style-New
|
we have detected an issue where truncatable part that had the same number of line as the minimun number lines to show had the faded effect without the show more button. Now it's fixed, could you check again? |
|
issue should be fixed now, could you check again ? |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @atarix83 ! I re-tested this today, and I'm no longer able to reproduce any of the prior issues that I saw (e.g. the minor issue where "show more" appeared on grid view slightly after page load). I also can no longer reproduce the issue that @artlowel saw (where the fade out was rendered at the top of the thumbnail.)
All in all, this looks good to me, thanks!
|
Thanks @atarix83! The issues are fixed One more thing I noticed though: is it possible to leave out those "show more" links in the admin sidebar dso search popups? They almost double the height of each result, and you can't actually click them there Perhaps leave them out any time the |
|
problem should be resolved |
|
Merging as this is at +2. Thanks @atarix83 ! |
…est DSpace#1619) Task/dspace cris 2023 02 x/DSC-1626 link support Approved-by: Stefano Maffei




References
Description
This PR has the aim to improve the usability issues described in #1551
Instructions for Reviewers
To review this PR browse pages where the TruncatableComponent is used. It's usualy used for search result pages or item pages
List of changes in this PR:
Checklist
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.