fix #5494: enable rotate to show surrounding pages on navigation#5505
fix #5494: enable rotate to show surrounding pages on navigation#5505alanorth merged 6 commits intoDSpace:mainfrom
Conversation
dff490b to
090d71a
Compare
|
Hi @lgeggleston , Frontend tests pass successfully (5821/5821). CI is failing when starting the DSpace REST backend via Docker: "no matching manifest for linux/amd64" (dspacesolr image) This appears to be unrelated to this PR and likely an upstream CI/Docker issue. |
|
@guillermo-escire thanks! Yes, looks like there was just an unrelated failure on the last backend Docker image build, so I'll re-run the tests when that's fixed. |
lgeggleston
left a comment
There was a problem hiding this comment.
Overall, tested and looks good for resolving the usability issue! Seems to work fine no matter the amount of results per page set and page navigated to. Just one comment about the component.html.
|
Thanks @guillermo-escire. I tested this locally and found the search results experience better. +1 from me. I'm wondering if this should be ported to other active branches since the changes are simple. It would have to be manually ported since Note: I will squash your six commits into one to keep the git history clean. |
|
Thanks @alanorth for the feedback! Regarding rollbacks to other active branches, I agree that it would be a good improvement, as the solution is simple. Also, there's no problem with merging branches; thanks for keeping the history clean! |
|
@guillermo-escire : Just a note here. It looks like any backports would need to be made manually by creating a new PR against the If you (or anyone else reading this) wants to create backport PRs, I'd gladly quickly review and merge them. |
References
Fixes #5494
Description
Pagination control was not showing surrounding page numbers when navigating to later pages. Fixed by enabling rotate on the ngb-pagination component so it centers the active page within the visible range.
Instructions for Reviewers
List of changes in this PR:
How to test:
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.