Make no. of communities per pagination / expansion configurable#1803
Make no. of communities per pagination / expansion configurable#1803tdonohue merged 2 commits intoDSpace:mainfrom
Conversation
artlowel
left a comment
There was a problem hiding this comment.
Thanks @mark-cooper!
This works the way it should, I just have a few inline comments on the code. One strange thing I also noticed in the other RPP PR (#1771), is that no matter what you set the topLevelPageSize to, it will always round to the nearest number from the list of page sizes. e.g. if you set it to 7 it'll use 10.
It would be good to add a comment above the param in the example config to let people know about that
src/app/home-page/top-level-community-list/top-level-community-list.component.ts
Outdated
Show resolved
Hide resolved
db4ad7f to
9006ca6
Compare
|
@artlowel thx for the feedback. I'm not sure if the convention is to have the PR author or reviewer resolve conversations so I'll leave it for you. |
config/config.example.yml
Outdated
| # No. of communities to list per expansion (show more) | ||
| pageSize: 20 | ||
|
|
||
| home: |
There was a problem hiding this comment.
@mark-cooper : Quick comment...Could we change this to say homePage:? We have a different PR (#1801) which is creating a section called homePage and it'd be good to align these two PRs so that we have a single section for all homepage configs.
It's unclear which PR will be ready to merge first, but both PRs also have a homepage-config.interface.ts sort of file...and we'll need to find a way to merge the two together.
9006ca6 to
36afbd6
Compare
|
@mark-cooper : I just merged #1801 , which was the PR that overlapped slightly with this one in terms of the Once this is rebased, I'll do a final test & then this will be ready to merge |
Adds new config settings for no. of communities to display on the home page & community-list page. Resolves DSpace#1749, resolves DSpace#1750
Inject environment rather than importing it Redo the configuration for better consistency across pages
36afbd6 to
086bd47
Compare
|
@tdonohue updated! |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @mark-cooper ! I gave this one final test after the conflict cleanup, and it's still working perfectly. Code looks good too
References
Description
Adds new config settings for no. of communities to display on the
home page & community-list page.
Instructions for Reviewers
Compare result of updating the config, for example:
Checklist
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.