planet
planet copied to clipboard
community: add news pagination (fixes #8608)
Fixes #8601
Add news UI pagination to the community and teams components
Just a thought: there is the Angular Material pagination component. We could implement that on NewsListComponent instead of writing our own. That should work smoothly with the reply lists and there should be an easy way to implement linking directly to a page for easier navigation to older posts.
I think this is working pretty well, too, but it's also adding a bit of complexity and duplication which we might be able to avoid with the pagination component.
Updated the implementation to use the news list component which makes it easier to track the replies pagination by leveraging the displayedItems array. This should be cleaner than the previous one.
Also did some refactoring of the 'voices/:id' pattern