Skip to content

Add event registrations to contact activity history#489

Merged
bokelley merged 2 commits into
mainfrom
bokelley/event-activity-history
Jan 3, 2026
Merged

Add event registrations to contact activity history#489
bokelley merged 2 commits into
mainfrom
bokelley/event-activity-history

Conversation

@bokelley

@bokelley bokelley commented Jan 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extends contact activity API to include event registrations in the activity feed
  • Uses UNION query to combine email activities with event registrations
  • Activity response now includes activity_type field ('email' or 'event_registration')

This makes the Luma CSV import useful - contacts now show their event registrations in their activity history alongside email interactions.

Test plan

  • Build passes
  • All tests pass
  • Deploy to production
  • Verify contact activity API returns event registrations

🤖 Generated with Claude Code

bokelley and others added 2 commits January 2, 2026 17:32
Extends the contact activity API to include event registrations
alongside email activities using a UNION query. This provides a
unified view of all engagement with a contact.

The activity response now includes:
- activity_type: 'email' or 'event_registration'
- title: email subject or event title
- description: email direction or registration status
- metadata: includes event_id, event_slug, ticket_type, attended

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Reduces code duplication between two contact endpoints
- Adds NULL::TEXT cast for explicit type in UNION
- Adds NULLS LAST to ORDER BY for consistent sorting

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 9c75a61 into main Jan 3, 2026
6 checks passed
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