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

add previous and next buttons to navigate longer queries #611

Closed
wants to merge 0 commits into from

Conversation

Lazy-poet
Copy link
Collaborator

@Lazy-poet Lazy-poet commented Jul 12, 2022

This PR fixes #592

@yannickwurm
Copy link
Member

Thanks @Lazy-poet - can we have tests for this as well?

@yannickwurm
Copy link
Member

yannickwurm commented Jul 31, 2022

Three additional things:

  • it doesn't "know" where it is. If I scroll down to the 10th one, then hit next, it takes me to the 2nd rather than the 11th.
  • The "previous" should not be shown if we are at the top of the page. The "next" should not be shown if we've passed the last one. (i.e. not shown - and the | not shown either - rather than simply disabling).
  • I think we want a bit more vertical space here too. It looks imbalanced compared to what's happening at Download section of the sidebar. Screenshot 2022-07-31 at 22 50 47
  • Automated test of the transition - when do we have the full index, and when do we show previous/next buttons.
  • Automated test of the scrolling behavior (it should know where it is

@Lazy-poet
Copy link
Collaborator Author

Three additional things:

  • it doesn't "know" where it is. If I scroll down to the 10th one, then hit next, it takes me to the 2nd rather than the 11th.
  • The "previous" should not be shown if we are at the top of the page. The "next" should not be shown if we've passed the last one. (i.e. not shown - and the | not shown either - rather than simply disabling).
  • I think we want a bit more vertical space here too. It looks imbalanced compared to what's happening at Download section of the sidebar. Screenshot 2022-07-31 at 22 50 47
  • Automated test of the transition - when do we have the full index, and when do we show previous/next buttons.
  • Automated test of the scrolling behavior (it should know where it is

@yannickwurm My most recent commit fixes 1-3 of this comment. Tests for these behaviors are underway and will be updated soonest.

@ghost
Copy link

ghost commented Jul 22, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When more than 8? queries, should show a "next query" button
2 participants