-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add Pagination for Posts #1878
Add Pagination for Posts #1878
Conversation
Bundle Size Diff
|
Plugin build for e279cfe is ready 🛎️!
|
E2E SummaryTyping
Values above 60ms"0 - 62.34, 1 - 66.54, 2 - 62.16, 3 - 61.89, 4 - 61.54, 5 - 83.66, 6 - 69.91, 7 - 72.09, 8 - 60.63, 9 - 68.44, 10 - 102.13, 11 - 72.38, 12 - 77.06, 13 - 70.77, 14 - 70.83, 15 - 77.68, 16 - 94.86, 17 - 70.89, 18 - 64.36" |
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.
@HardeepAsrani, did you test on WPTaste? For some reasons it tries to always redirect me to the first page. EDIT: same thing when I try with Qubley Posts block. |
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.
Left a small NIT but it looks good. It worked well when tried it locally. We can put it through QA and remove the QA-related code afterwards.
@Soare-Robert-Daniel Tested the feature and here is what i found:
You can check the issues on this instance:
|
For those problems, I made the pagination and features most to be mutually exclusive. You will not have them both. The way the featured post works right now is like a stylized first post. This is not good in the context of pagination in which the featured post must be a separate thing. If we want them both, we will make another issue to address this. In this PR we will focus only on pagination.
This is a hard problem because when you enter into the page, we do not know if you come via pagination or other ways around. It creates some weird behavior. We will mark it as not an issue since some other competition blocks have the same behavior. |
@irinelenache, when testing, please use another instance and not the one in this PR. |
@Soare-Robert-Daniel Thank you for the fixes and for clarifying 🙏
^ This issue is still happening on my end, you can check on this instance:
Besides this, everything's working fine 👍 |
@irinelenache, we should skip the front page on WP Taste since it might differ on host settings. We should use this plugin https://wordpress.org/plugins/qubely/ as a reference. Like Otter, it uses the same functions, so where they work, we should also work. The vice versa is also true. |
@Soare-Robert-Daniel You can check the issue here:
|
I made the code similar to on Quble, which uses a snippet from PHP docs -- there should be no difference now. Here are some explanations for the trick used: https://chat.openai.com/share/3af75654-25bb-40de-988f-21ac8413b9e0 |
@Soare-Robert-Daniel Checked again and everything's fine now, thank you 🚀 |
🎉 This PR is included in version 2.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Closes #1046
Summary
Add pagination for Posts Block.
Developing notes:
Screenshots
2023-09-25_16-23-25.mp4
Test instructions
Checklist before the final review