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 pagination to the admin panel #138

Open
m4tx opened this issue Feb 11, 2025 · 2 comments
Open

Add pagination to the admin panel #138

m4tx opened this issue Feb 11, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@m4tx
Copy link
Member

m4tx commented Feb 11, 2025

Currently, the admin panel displays all the objects on one page. We need to add pagination to avoid problems where there will be more than hundreds of rows in a table.

@m4tx m4tx added this to Roadmap Feb 11, 2025
@m4tx m4tx converted this from a draft issue Feb 11, 2025
@m4tx m4tx added enhancement New feature or request good first issue Good for newcomers labels Feb 11, 2025
@m4tx m4tx added this to the v0.2 milestone Feb 11, 2025
@ikorason
Copy link

Hi 👋 I would like to work on this if that's ok

@m4tx
Copy link
Member Author

m4tx commented Feb 24, 2025

Sure, feel free to take it! Just as a little help where to start:

  1. This first needs limit and offset params to be added to the Query structure as it doesn't currently support it
  2. AdminModelManager::get_objects() (and hence also AdminModel::get_objects()) will need to take an object that contains said limit and offset and modify the Query object inside the derive macro accordingly

Feel free to ask if you need more help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

2 participants