Repository navigation
Add member engagement tracking with signals and interest levels - #376
Merged
Merged
Conversation
…vels - Add user_logins table for tracking dashboard logins - Add interest_level fields to organizations (low/medium/high/very_high) - Record logins during OAuth callback for engagement metrics - Add OrganizationDatabase methods for engagement signal queries: - recordUserLogin, getEngagementSignals, setInterestLevel - Enhance admin org detail page with Engagement Signals card: - Interest level with attribution (who set it, when) - Member profile status, login count, WG count, email clicks - Add API endpoints: - PUT /api/admin/organizations/:orgId/interest-level - GET /api/admin/organizations/:orgId/engagement-signals - Update engagement level calculation to incorporate new signals 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Remove user_logins table in favor of org_activities with activity_type='dashboard_login'. This reuses the existing activity tracking infrastructure rather than creating a separate table. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
bokelley
added a commit
that referenced
this pull request
Dec 29, 2025
Two migrations had the same version number (039): - 039_member_engagement.sql (PR #376) - 039_working_group_leaders.sql (PR #377) This caused migration failures on fresh databases (including new worktrees). Production state: - Has versions 37/38 as email_tracking/preferences (from old numbering) - Has version 39 as member_engagement - Never got working_group_leaders (would have failed with duplicate key) Fix: - Rename 039_working_group_leaders.sql → 047_working_group_leaders.sql - Add CI test to prevent duplicate migration versions in the future The working_group_leaders migration is idempotent (uses IF NOT EXISTS, IF EXISTS, ON CONFLICT DO NOTHING), so it will safely apply to prod as version 47. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
3 tasks done
bokelley
added a commit
that referenced
this pull request
Dec 29, 2025
* Fix duplicate migration version 039 and add CI check Two migrations had the same version number (039): - 039_member_engagement.sql (PR #376) - 039_working_group_leaders.sql (PR #377) This caused migration failures on fresh databases (including new worktrees). Production state: - Has versions 37/38 as email_tracking/preferences (from old numbering) - Has version 39 as member_engagement - Never got working_group_leaders (would have failed with duplicate key) Fix: - Rename 039_working_group_leaders.sql → 047_working_group_leaders.sql - Add CI test to prevent duplicate migration versions in the future The working_group_leaders migration is idempotent (uses IF NOT EXISTS, IF EXISTS, ON CONFLICT DO NOTHING), so it will safely apply to prod as version 47. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]> * Add empty changeset for migration fix Internal fix that doesn't affect the protocol specification. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]> --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
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.
Summary
Test plan
🤖 Generated with Claude Code