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

Scroll to top when using pagination #12962

Conversation

bouaik
Copy link
Contributor

@bouaik bouaik commented Nov 1, 2024

What? Why?

What should we test?

  • Visit admin products page
  • Have more than 15 products
  • Navigate between pages
Demo
screen-recorder-fri-nov-01-2024-09-39-01.webm

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

Copy link
Collaborator

@chahmedejaz chahmedejaz left a 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. Thanks 👍

@chahmedejaz chahmedejaz added the user facing changes Thes pull requests affect the user experience label Nov 2, 2024
Copy link
Collaborator

@rioug rioug left a comment

Choose a reason for hiding this comment

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

Nice one 👍 !

@filipefurtad0 filipefurtad0 self-assigned this Nov 22, 2024
@filipefurtad0 filipefurtad0 added the pr-staged-uk staging.openfoodnetwork.org.uk label Nov 22, 2024
@filipefurtad0
Copy link
Contributor

Hey @bouaik ,

Thanks for addressing this. Before this PR, starting from the bottom of page 1:

image

Selecting page 2:

image

After this PR, selecting page 2, scrolls to the top of the page:

image

Looks great! Merging 🎉

@filipefurtad0 filipefurtad0 merged commit 0f4ca50 into openfoodfoundation:master Nov 22, 2024
56 checks passed
@filipefurtad0 filipefurtad0 removed the pr-staged-uk staging.openfoodnetwork.org.uk label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user facing changes Thes pull requests affect the user experience
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Admin] Products Page does not scroll to the top when navigating between pages
4 participants