Communities & Collections tree browser updates#2597
Communities & Collections tree browser updates#2597tamu-sad-iii wants to merge 4 commits intoDSpace:mainfrom
Conversation
`loadingNode` ends up being the current `node` after clicking it preventing it from rendering when more pages available.
The nodes with same id are conflicting when added to the tree. Clicking on the second with same id places the show more button under the wrong branch and expands the wrong page.
artlowel
left a comment
There was a problem hiding this comment.
Thanks @wwtamu
The fixes work, and the code looks good.
One more bug in a similar vein I noticed while testing this: if you have multiple nodes in the tree with the same name (e.g. currently the "biochemistry" top level communities on demo.dspace.org) and you open more than one, then close one, they all close at once. And the chevron for the ones you didn't click won't be updated.
I'm willing to bet the fix is as simple as changing the names here to ids
This PR doesn't cause that bug, but it seems a suitable one to fix as well, if you still have the time
|
Here is the successor PR, #2611. Let's see if we get those green check marks. |
|
@artlowel would you like the above comment pulled out into an issue? I will look for a solution in the meantime. |
|
Closed as commits split during CI build resolution. |
|
@wwtamu : Please be aware we are finishing the 7.6.1 release this week (and early next week). So, I'll likely move the PR #2611 forward "as-is" unless you find a very quick solution. (I'll wait to merge that PR though until tomorrow to give you a chance to look into it) If the solution @artlowel suggests above is the correct fix, it may not need a separate ticket or PR (as it sounds like a tiny fix). But, if we find the issue is bigger than that, then we should move it to a separate ticket and find a volunteer to look into it (likely after 7.6.1) |
|
No objections here. |
Communities & Collections tree browser updates - Replaced #2597
[Port dspace-7_x] Communities & Collections tree browser updates - Replaced #2597
References
Description
This PR fixes two issues with the community collection list page:
Instructions for Reviewers
Set
communityList.pageSizeto a small number (less than half the number of top-level communities and less then subcommunities under a community).Navigate to Communities & Collections page. Click show more pages and expand communities/subcommunities which multiple pages at the same level. The described issues above should no longer occur.
List of changes in this PR:
getNextPagewas updated to matchnode.idstartsWithcollectionorcommunity.Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn lintyarn check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.