Repository navigation
Rebuild the results page with a summary, filters and grouping - #1561
Open
jakaria-istauk wants to merge 2 commits into
Open
jakaria-istauk wants to merge 2 commits into
jakaria-istauk wants to merge 2 commits into
Conversation
Group the plugin picker and the Check it! button in one card and fold the category, type, AI and exclusion settings into an Options row. When collapsed, the row lists the active settings as chips, and it closes when a check starts so the results move up the page. Input IDs, names and values are unchanged.
Long reports were one table per file with no way to find a check, filter by type or see the totals, so a plugin with a few hundred issues meant a lot of scrolling. The results now open with a summary line and the export buttons, count tiles that filter by type, and a sidebar listing each check that reported issues. The list itself can be searched, filtered by type or by a searchable check picker, have development files hidden, and be grouped by file or by check. Groups are collapsible and show ten issues before a Show more button. Results still stream in one check at a time and the AJAX flow, exports, AI analysis and the possible false positives section are unchanged. results-table.php becomes results-group.php, and results-complete.php is removed because the summary is now part of the page markup. Closes WordPress#1334
Contributor
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
Member
|
This is awesome! The information is much clearer, and the organisation is much better. |
Author
Thank you @davidperezgar for your valuable comment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Closes #1334
Rebuilds the results area of Tools › Plugin Check, and tidies the form above it, so long reports can be read and worked through:
Why?
Today the results are a flat list of tables, one per file per check, with no totals and no way to filter. On a real plugin this gets long fast. Same run of FluentSMTP (Plugin Repo category) before and after:
AdminMenuHandler.php)MissingTranslatorsCommentThe duplicate tables happen because results are drawn as each check finishes. The new view merges them into one list, so a file shows up once with all its issues.
#1334 asks for collapse/expand controls and for sorting by code. Both are in here.
How?
wp.template.results-table.phpbecomesresults-group.php.results-row.phpis rewritten but keeps the AI badge, reasoning and recommendation.results-complete.phpis removed because the summary is now static markup inadmin-page.php. The footer registers the templates in a loop, and the old inline<style>block moved intoplugin-check-admin.css.wp.i18n(__,_n,sprintf) with theplugin-checkdomain, which the script already loads. Template strings use PHP__().Admin_Page_Testsmarkup assertions pass without changes.role="combobox",aria-expanded,aria-activedescendant, alistboxofoptions). It works with ↑ / ↓ / Enter / Esc / Tab. Toggle buttons usearia-pressed, and copying a check code is announced throughwp.a11y.speak.tests/,test/,bin/,scripts/,node_modules/andreleases/. It only adds a tag and powers the Hide development files toggle. Nothing is excluded from the run or the exports.Commits
Restyle the check form as a card with collapsible options: form and Options row only. The results still render the old way.Rebuild the results view with a summary, filters and grouping: the new results view and templates.Each commit leaves the page working.
Relation to #1560
This PR is based on
trunkand does not depend on #1560 (.distignoreexclusions). Whichever merges second needs a small rebase. If this one merges first, the.distignorecheckbox from #1560 moves into the new Custom Exclusions group and shows up as a chip, and I'll do that rebase on #1560.Testing Instructions
escape. Use ↑ / ↓ and Enter to pick one, and the × to clear it.Testing done
npm run lint-js,composer lint,composer phpstan,composer phpmd, PHPCS andtypospass on the branch. Commit 1 was also checked on its own withlint-js, PHPCS andAdmin_Page_Tests.npm run test-phppasses: 600 tests, 1,724 assertions.npm run test-php-multisitepasses: 601 tests, 1,726 assertions.Out of scope
.pcpignoreand Add opt-in .distignore exclusions #1560 are for.Check_Resultstrips only the non-resolved plugin path, so those files show their full path. This happens today as well and is unrelated to this UI.AI Usage Disclosure
If AI tools were used, please describe how they were used:
I used Claude Code to prototype the layout, write the code and draft this description. I reviewed every change, tested it by hand in the admin and ran the linters and the full PHPUnit suite.
Screenshots or screencast
A file opened. Errors first, check code under each message, links in their own column.
Grouped by check, with the check picker open.
Options expanded.
Phone width.