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

feat(admin-ui): Preset filters should preserve query parameters #3176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

taxilian
Copy link
Contributor

@taxilian taxilian commented Oct 31, 2024

Description

Any page that uses data-table2 with presets, when the presets change they lose any query parameters. This includes the currently set "display per page". This can be very frustrating if you use presets to switch quickly between groups of items which number more than 10 because you have to keep moving down and turning it back up.

This fix causes it to keep any existing query parameters except the "filters" and "page" parameters, which are the ones that it uses.

Breaking changes

No, just changed behavior

Screenshots

image

Checklist

📌 Always:

  • I have set a clear title
  • My PR is small and contains a single feature
  • I have checked my own PR

👍 Most of the time:

  • I have added or updated test cases - Not applicable, AFAIK
  • I have updated the README if needed - Not applicable, AFAIK

Copy link

vercel bot commented Oct 31, 2024

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

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Nov 9, 2024 7:48pm

@taxilian taxilian force-pushed the feature/datatable-feature-retainqueryparams branch from 10fc5f4 to d41f30a Compare November 9, 2024 19:46
Copy link

sonarcloud bot commented Nov 9, 2024

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

Successfully merging this pull request may close these issues.

1 participant