Skip to content

admin: improve group members page with pagination and search#2588

Open
mroderick wants to merge 3 commits intocodebar:masterfrom
mroderick:feature/admin-group-members-table
Open

admin: improve group members page with pagination and search#2588
mroderick wants to merge 3 commits intocodebar:masterfrom
mroderick:feature/admin-group-members-table

Conversation

@mroderick
Copy link
Copy Markdown
Collaborator

@mroderick mroderick commented Apr 22, 2026

Summary

Improves the /admin/groups/:id members page with:

  • Column headings (Avatar, Name, Email, Mobile, T&C)
  • T&C acceptance indicator (green check / red x)
  • TomSelect search dropdown for finding members by name or email
  • Pagination at 20 members per page
  • Sorted by most recent workshop RSVP

Screenshot from local with fake data

image

Why

With paging and search, these pages will be much more usable to organisers.

Top 3 chapters by member count

Chapter Students Coaches Total Pages (20/page)
London 8,614 3,101 11,715 431 / 156
Brighton 1,087 428 1,515 55 / 22
New York 856 237 1,093 43 / 12

Before this change, organisers had to scroll through thousands of members on a single page.

Testing

  • All existing tests pass
  • New test added for Group.members_by_recent_rsvp scope
  • Feature test covers pagination and member display

Checklist

  • Column headings added
  • T&C indicator using Font Awesome icons
  • TomSelect search for members
  • Pagination (20 per page)
  • Sorted by recent workshop RSVP
  • Tests added

Rubocop's Lint/Syntax cop cannot parse HAML, causing false positives.
This excludes HAML files only from Lint/Syntax, not all cops.
Adds a class method that returns group members sorted by their most
recent workshop RSVP (most recent first, members with no RSVP at end).
Includes test coverage for the new method.
- Adds column headings (Avatar, Name, Email, Mobile, T&C)
- Adds T&C indicator using Font Awesome icons (green check / red x)
- Adds TomSelect search dropdown for finding members by name/email
- Adds Pagy pagination controls at bottom of table
- Renders counts from instance variables to avoid N+1 queries
@mroderick mroderick changed the title feature/admin group members table admin: improve group members page with pagination and search Apr 22, 2026
@mroderick mroderick marked this pull request as ready for review April 22, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant