-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nsc-events-nextjs-6-288-home-page-events-pagination #302
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
It would be great if you could provide some comments for ease of reading and understanding of the logic. For example in line 34.
Thanks @tinpham5614. I changed the variable name to |
@Ali-7s Yea I had to re-address this issue so I'm still working on it. Once it's ready I'll take it out of draft mode and open it to review. |
Re-opened. Please checkout branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ll “request changes” just so this doesn’t get prematurely merged while we check out the updates
Branch has been updated since review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works as expected. |
@tinpham5614 @nickolasram @heosman Can you guys review this PR in the nestjs repo @SeattleColleges/nsc-events-nestjs/#111 ? Since the pagination depends on it, it won't appear to work currently if you're on the main branch in the nestjs repo. |
Note: This branch depends on SeattleColleges/nsc-events-nestjs#110. Until it is merged to main, please make sure to checkout branch
bug-110-remove-duplicate-get-handler
in the nsc-events-nestjs repo before testing this feature.Resolves #288
A "Load more events" button has been added and on click, 5 new events will be loaded until the end of the events list has been reached. When all of the events have been rendered, the Load More Events button will not be rendered anymore.

Video demonstrating pagination both logged in and logged out:
2024-04-29.23-10-19.mp4