planet icon indicating copy to clipboard operation
planet copied to clipboard

community: add news pagination (fixes #8608)

Open Mutugiii opened this issue 6 months ago • 1 comments

Fixes #8601

Add news UI pagination to the community and teams components

Mutugiii avatar May 07 '25 18:05 Mutugiii

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.

paulbert avatar May 08 '25 15:05 paulbert

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

Mutugiii avatar May 08 '25 19:05 Mutugiii