sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Add pagination screen option to admin pages

Open donnapep opened this issue 6 years ago β€’ 9 comments

Context

Admin pages like Courses and Lessons display the Screen Options tab, where Pagination can be set on a per screen basis:

Screen Shot 2019-10-03 at 2 05 11 PM

However, the following screens don't display the Screen Options tab:

  • Analysis
  • Grading
  • Learner Management

This means that 20 items are displayed per page by default, and this value can't be customized.

What Changes Are Needed?

The Screen Options tab with a Pagination option (as per the above screenshot) should be added to the following screens and sub-screens (i.e. drilling down to another screen within these areas should also show the Screen Options tab):

  • Analysis
  • Grading
  • Learner Management

donnapep avatar Oct 03 '19 18:10 donnapep

Also requested in 2799197-zen

danjjohnson avatar Mar 18 '20 16:03 danjjohnson

Do we have a deadline for this feature as it's critical for us for reporting purposes (currently we have to print dozens of page PER learner to prove they attend the training)? Thanks a lot!

AiramMontessori avatar Mar 18 '20 23:03 AiramMontessori

@AiramMontessori we don't have a deadline for this yet. You can subscribe to this issue to get email updates when there are any changes.

danjjohnson avatar Mar 19 '20 09:03 danjjohnson

Hi @donnapep πŸ‘‹ @danjjohnson @AiramMontessori ,

I’d love to help out with this enhancement. I can work on adding the Screen Options tab with pagination settings to the following admin screens:

Analysis

Grading

Learner Management

This would follow the same implementation pattern as used on the Courses and Lessons screens, ensuring consistency across the admin UI.

Please let me know if it’s alright to proceed. Happy to contribute and open a PR once ready!

Thanks!

vk17-starlord avatar May 06 '25 12:05 vk17-starlord

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 2799197-zen

github-actions[bot] avatar May 06 '25 12:05 github-actions[bot]

Hi @vk17-starlord. πŸ‘‹πŸ»

Please let me know if it’s alright to proceed. Happy to contribute and open a PR once ready!

Absolutely, go for it! One thing to be mindful of is that all the checks that run for your PR need to be green. πŸ™‚

donnapep avatar May 06 '25 12:05 donnapep

Sure @donnapep !!

vk17-starlord avatar May 06 '25 13:05 vk17-starlord

Hi @donnapep – I'm facing an issue while trying to set up the plugin locally for contribution:

  1. I cloned the GitHub repository successfully.

    Cloned Repo

  2. I'm using LocalWP as my development environment.

Image
  1. However, when I try to activate the plugin in my local WordPress environment (using LocalWP), I encounter the following fatal error:

    Activation Error

Could you please advise on what might be causing this error or share any additional steps required for a proper local setup?

vk17-starlord avatar May 08 '25 06:05 vk17-starlord

Hi @vk17-starlord. Have you run composer install and npm install as well as npm run build or npm run start? Noting that you may need to switch to PHP 7.4 if you get an error running the composer command. Perhaps our Contributing doc could use some updates. πŸ˜‰

donnapep avatar May 08 '25 21:05 donnapep