Fixes #8384: Added Curate tab in Edit Item page#2211
Conversation
tdonohue
left a comment
There was a problem hiding this comment.
@enea4science : Thanks for this PR! Overall, it works well. However, I found that the curation task dropdown does NOT load quickly the first time you access this Curate Tab. When I first visit the Item Curate tab, and try to open the dropdown I see this:

If I wait for 5-10 seconds, the dropdown eventually populates and everything works. However, I do not see this same behavior on the Community or Collection "Curate" tab... it seems to be a bug specific to this new Item "Curate" tab.
Here's how I've been able to reproduce the problem I'm seeing:
- First, install this PR and start up the UI in production mode (
yarn build:prod; yarn serve:ssr) - Login as an Admin
- Immediately browse to an Item, click Edit and click on the Curate tab
- Try to immediately open the dropdown. It will be empty.
- After it loads, everything will work fine. Visiting another Item's Curate tab will also work fine. The empty dropdown only appears the first time you access the Item Curate tab after logging in.
As I said, I cannot reproduce the same behavior on the Community or Collection Curate tab. While this isn't a severe bug, it's a bit annoying. So, it'd be nice if we can find a way to solve it in this PR.
|
Hello @tdonohue |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @enea4science ! The prior bug has now been fixed. This PR works properly now & I can successfully start curation tasks from the Edit Item -> Curate tab. Code looks good too!
References
Description
Added Curate tab in Edit Item page
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 run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.