Skip to content

Add "Last Meetup" and "Number of Events" columns to Meetup Tracker#28

Open
dd32 wants to merge 4 commits intoproductionfrom
add/claude/1616-meetup-tracker-columns-v2
Open

Add "Last Meetup" and "Number of Events" columns to Meetup Tracker#28
dd32 wants to merge 4 commits intoproductionfrom
add/claude/1616-meetup-tracker-columns-v2

Conversation

@dd32
Copy link
Owner

@dd32 dd32 commented Mar 12, 2026

Summary

  • Adds two new columns to the Meetup Tracker admin list view: Last Meetup (date of most recent event) and Number of Events (total past events count)
  • Both columns are sortable, allowing supporters to quickly identify inactive or veteran groups
  • Data comes from existing post meta fields (Last meetup on and Number of past meetups) already synced via the Meetup.com API

Screenshots

Before:
Before

After:
After

Changes

  • class-meetup-admin.php: Added last_meetup and number_of_events to column_headers(), added sortable_columns() override, added handle_sortable_columns() for pre_get_posts sorting, and added rendering in column_data()
  • New test file tests/wcpt-meetup/test-meetup-admin-columns.php with 8 integration tests covering column headers, sortable columns, and column data rendering

Test plan

  • Verify "Last Meetup" column shows formatted date (Y-m-d) or em dash when no data
  • Verify "Number of Events" column shows count or "0" when no data
  • Verify both columns are sortable by clicking column headers
  • All 8 new PHPUnit tests pass locally

Closes WordPress#1616

Generated with Claude Code

dd32 and others added 2 commits March 12, 2026 21:51
…ordPress#1616)

Add two new sortable columns to the Meetup Tracker admin list view to help
Event Supporters quickly assess meetup group health without clicking into
individual posts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dd32 dd32 force-pushed the add/claude/1616-meetup-tracker-columns-v2 branch from cff2503 to 9720574 Compare March 12, 2026 11:51
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