Add role, facilitator/membership status, age range, topic & staff-tag filters to the people directory - #2312
Merged
Merged
Conversation
maebeale
marked this pull request as ready for review
August 22, 2026 13:05
maebeale
force-pushed
the
maebeale/admin-people-filters-dropdown
branch
from
August 22, 2026 13:21
24fffd7 to
0611f98
Compare
maebeale
force-pushed
the
maebeale/admin-people-filters-dropdown
branch
from
August 22, 2026 13:25
0611f98 to
d53085b
Compare
Role (story/blog/workshop/variation/log authors, sector leaders), facilitator status (active/inactive/boomerang/formerly active), membership status (active/inactive/paid/due/overdue), age range, and topic subscription. The admin-only dropdowns are grouped in a blue panel. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…rder admin panel Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…uthored news Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
maebeale
force-pushed
the
maebeale/admin-people-filters-dropdown
branch
from
August 22, 2026 13:57
6e88abf to
fc01c4b
Compare
This was referenced Aug 22, 2026
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.
🤖 suggested review level: 3 Read 📖 filter scopes wired through one dispatcher per dropdown; model + request specs cover each branch
Adds several filters to the people directory, built on the event-registration filter mechanism (shared
events/_filter_selectpartial +collectionStimulus controller — no new JS). Rebased on main, so it also carries in and integrates the staff-tag filter from #2313.General filter (everyone who can reach the index)
Admin-only filters (grouped in a blue panel)
cancelled_at) and paid/due/overdue (current invoice vs. allocations + grace period).staff_tagged_with); moved into this blue panel and restyled to match, gated byallowed_to?(:index?, StaffTag).Field order
Name/email/phone → Organization → Sector name → Age range, then the blue admin panel (Role → Facilitator status → Membership status → Topic subscription → Staff tag), then Clear.
Notes
WorkshopLoghas no Person column — onlycreated_by → User. So "workshop log author" = the person whose linked user created the log (routed throughUser). Flagging in case a different tie is intended.Person.search_by_params; no controller/strong-params change. New scopes return plain relations (where(id: subquery)) socount/paginateare unaffected.bg-blue-100admin convention), not a DomainTheme color.Features & tipsseed.Closes #2322