Repository navigation
Conversation
Manage » Users lists every agent in one grid, active or not. Add a role filter (All, Admins, Users) and a status filter (Active, Inactive, All) next to the search, each choice with how many users it matches. Inactive users are invites not accepted yet and disabled users. The heading's count follows what's shown, after core's search too, and the filters are kept in the URL, so going back from a profile keeps them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: 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:
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 46 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Give the buttons the search field's border, in every state, and mute the labels rather than the counts, so the numbers stand out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The heading already counts the users shown, so the filters' own counts only added noise. Also say in the README that users who haven't logged in yet count as inactive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Teams module reuses #users-list, so the script also needs the search the filters go next to. Drop a role from the URL for agents who don't get the role filter, and document the constants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The filters' light border in every state also covered focus, and Bootstrap shows a button's focus only through its border, so tabbing through them showed no focus at all. Keyboard focus gets Bootstrap's focus border back; clicking still looks as before. Also restore the README's curly apostrophe in "haven’t", which the previous commit straightened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manage » Users lists every agent in one grid, active or not, so finding the admins, or the people who never logged in, means scanning it card by card.
This adds two filters next to the search, in WPOrgSite:
The heading's count follows what's shown, after core's search too. When nothing matches, the page says so.
The filters are kept in the URL (
?role=admin&status=inactive) withhistory.replaceState, so going back from a profile keeps them, and a link can be shared. Agents who can manage users without being admins don't see admins at all (core leaves them out), so they get only the status filter.Core's users view has no hook for this (just
users.email, inside each card), so it's a script,Public/js/users.js. It reads what the cards already show: the admin badge,card-inactive, and the disabled icon. It hides cards with a class rather than inline, since core's search shows and hides them inline, so the two narrow the list together.Testing
🤖 Generated with Claude Code
Summary by CodeRabbit