Fix improve UX for back button on workflow bitstream downloads (#4146)#5080
Fix improve UX for back button on workflow bitstream downloads (#4146)#5080guillermo-escire wants to merge 1 commit into
Conversation
|
QA testing performed (no code review). Works as expected:
Does not work as expected:
|
|
QA testing performed (no code review). Works as expected:
|
|
@alegontarz : Could you please verify which of your reviews is valid here? It looks like you have two conflicting reviews... the first one says you found a bug. But the second one says it's working fine. I'm just trying to determine whether this PR has been found to contain bugs or not. That way we know whether this belongs in the "Under Review" column (meaning it's still undergoing reviews/updates) or if it should move to "Reviewer Approved" (meaning that at least one person found it works well). |
|
@tdonohue The second review is the valid one; no bugs were found, and everything works as expected. This PR can be moved to the “Reviewer Approved” column. |
|
@guillermo-escire : I'm not able to figure out how to test this PR. It appears, to me, that this might be obsolete in 10.0 because of the changes to the download process made in #5132. Here's what I'm trying to do:
If I try that same process on DSpace 9, I still do see the download page. But, this behavior appears to have changed in 10.0. So, I think this PR is obsolete in 10.0, but we could consider applying it only to 9.x and 8.x. Could you double check this is still a valid fix? |
|
@tdonohue @guillermo-escire pr_5080_test.mp4 |
|
Hi @tdonohue, Thank you for your feedback and for testing this PR. I understand the concern, if the download behavior has changed in 10.0 due to #5132, this fix may indeed be obsolete for the main branch. I'll investigate the current behavior in 10.0 and determine whether this PR still applies or if it should be scoped only to the 9.x and 8.x branches. I'll update this PR accordingly once I've had a chance to review it. Thanks again for the thorough review! |
|
Hi @tdonohue, based on the testing done by @kanasznagyzoltan, the fix appears to still be relevant in 10.0 — the Back button is no longer displayed and downloads work correctly. It seems the page is still rendered in some scenarios even after #5132. Could this PR be moved back to "Reviewer Approved" for final merge consideration? |
|
@guillermo-escire : Could you or @kanasznagyzoltan verify which scenarios this page still renders under in 10.0? I'm still having trouble finding a scenario in which this page is rendering. On my end, I've tried turning off the new I've tested this in three browsers: Chrome, Firefox and Microsoft Edge. So, I'm struggling to find a way to get this download page to appear. If someone can find a scenario where it appears, then we can definitely move this PR forward. But, I've been unsuccessful so far. |
|
@guillermo-escire @tdonohue The current state: backend: dspace-10.0-testathon, frontend: dspace-10.0-testathon-dist pr_5080_main_branch.mp4This PR branch: backend: dspace-10.0-testathon, frontend: docker image built using this PR branch pr_5080_feature_branch.mp4What I see the difference is the PR is trying to move back to /workflowitem/id/view page which I think is better than moving back to the mydspace page what the main branch is doing. But I don't know why I am getting javascript errors after I am moving back to the workflow item page. |
|
I put the js error into this comment: |
References
Description
This PR improves navigation reliability during workflow bitstream downloads by removing the Back button from the bitstream download page.
The button could lead to a Whitelabel error in certain workflow navigation scenarios due to missing or invalid navigation history.
Instructions for Reviewers
This PR removes the Back button from the bitstream download page, as suggested in issue #4146, to ensure consistent and predictable behavior across the UI.
List of changes in this PR:
Include guidance for how to test or review your PR. This may include: steps to reproduce a bug, screenshots or description of a new feature, or reasons behind specific changes.
Go to a workflow item page (e.g. /workflowitems/{id}/view).
Download a bitstream.
Verify that:
Confirm that bitstream downloads from the Full Item Page and Admin UI remain unaffected.
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.