Skip to content
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

Fixed Joystream Pioneer Forum Back Link #3768 #4147

Merged
merged 6 commits into from
Mar 3, 2023

Conversation

vrrayz
Copy link
Contributor

@vrrayz vrrayz commented Feb 6, 2023

Fixed forum back link issue on #3768 by modifying the Pagination component to add a page query string and using a custom hook to check for that query string and set the page based on the result

screen_tes.mp4

@vercel
Copy link

vercel bot commented Feb 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
dao ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 3, 2023 at 5:29PM (UTC)
pioneer-2 ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 3, 2023 at 5:29PM (UTC)
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 3, 2023 at 5:29PM (UTC)

Copy link
Collaborator

@traumschule traumschule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried to test with this thread: The page is empty and has no navigation. Please check.

@vrrayz
Copy link
Contributor Author

vrrayz commented Feb 7, 2023

Tried to test with this thread: The page is empty and has no navigation. Please check.

Thats because the total amount of posts under this thread isn't enough to reach to a page 2 or 3. I could set it up to redirect to page 1 once the users try getting to anything greater than the pageCount. would that be okay?

@vrrayz vrrayz requested a review from traumschule February 7, 2023 19:46
@traumschule
Copy link
Collaborator

That's a good idea. Also pagination navigation can be hidden / disabled depending on number of posts and current page.

@vrrayz
Copy link
Contributor Author

vrrayz commented Feb 8, 2023

That's a good idea. Also pagination navigation can be hidden / disabled depending on number of posts and current page.

okay.. i'll get right to it

Copy link
Collaborator

@traumschule traumschule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@oleksanderkorn oleksanderkorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@thesan thesan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍 adding the page to the history is a good step forward.

There are still a bunch of issues with this back button but I think they can be taken care of in a follow up PR.

Just please add response to my comment 👇

packages/ui/src/forum/components/PostList/PostList.tsx Outdated Show resolved Hide resolved
@thesan thesan added jsg-code-review waiting-for-checks PR is reviewed and approved, but is waiting for checks to complete labels Mar 3, 2023
@thesan thesan merged commit 0e35241 into Joystream:dev Mar 3, 2023
@thesan thesan removed the waiting-for-checks PR is reviewed and approved, but is waiting for checks to complete label Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-dev issue suitable for community-dev pipeline jsg-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants