Repository navigation
Students: add status filter and summary section to accounts screen - #281
Conversation
Add status filter dropdown and a summary section with counts per status to the Students accounts table (admin.php?page=wpcpm-students), supporting combined filtering with institution and search. Fixes WordPress#260.
|
Thanks @wppoland, this covers both halves of #260, the filter and the summary per status, and it applies cleanly to the current code. Notes before we bring it in:
As with #280, the mirror is overwritten by each release push, so please don't merge here: we'll port it with your authorship into the next release and close this PR when it reaches trunk. |
|
Thank you @wppoland! This is now in the plugin as release 1.123.43, live on wordpresseducation.org since 28 October. Your commit is kept under your name in the plugin's source repository; here on the mirror the release arrives as one commit, 5463559. On top of your change, as noted above:
The Students section of the Administrator guide describes it. Closing this in favor of that release. Thanks again! |
The Email Log's links to the Accounts screens (#280) and the Students screen's status filter and summary (#281) are wppoland's work. They reached this repository inside the release commit 5463559, which was pushed without a co-author line; this commit records the credit. Co-authored-by: wppoland <19728801+wppoland@users.noreply.github.com>
Summary
This PR resolves #260 by adding a student status filter dropdown and a summary section with student counts per status to the Students admin dashboard (
admin.php?page=wpcpm-studentson the Accounts tab).Details
<select name="wpcpm_status" id="wpcpm-status">dropdown toextra_tablenav( 'top' )alongside the institution dropdown.WPCPM_Program::status_words()) and student counts.wpcpm_institution), search clause (s), views, sorting, and pagination.list_intro()inWPCPM_Students_Tableto display a summary bar (.wpcpm-students-summary) above the list views with chip links (.wpcpm-waiting) showing each status, its count, and linking directly to#wpcpm-accounts-listwith that status filtered.WPCPM_Students::list_state()and addsWPCPM_Students::status_filter().WPCPM_Students_Table, stores status in the in-memory roster (reading fromwpcpm_student_programonce, with zero extra DB queries).bin/test-students-screen.phpwithstatus_picker(), verifying status dropdown options, summary chips, status filtering, and combined status + institution filtering.ALL PASS (163 checks)).Fixes #260.