Add prospect ownership and management system#537
Merged
Conversation
The recent inline owner selector change switched from reading `organizations.prospect_owner` (text field) to `org_stakeholders` table. However, existing orgs still have owners in the legacy field without corresponding stakeholder records. Add fallback to display `prospect_owner` when no stakeholder owner exists. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1. Team dropdown now shows all aao-admin working group members instead of only users who are already owners somewhere. This enables assigning any admin as owner, not just the current user. 2. Watch button no longer overwrites owner role. If you're the owner and try to watch (or unwatch), the API now returns an error instead of changing your role from 'owner' to 'interested'. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Database migration to convert legacy prospect_owner text to org_stakeholders records - 5 new Addie admin tools: my_engaged_prospects, my_followups_needed, unassigned_prospects, claim_prospect, suggest_prospects - "My Prospects" section at top of admin dashboard with hot/followup lists - Prospect stats in Slack App Home admin panel - mine=true filter on prospects API 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Migration 113 already exists on main (113_disqualified_prospect_status.sql). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Migration 114 was taken by 114_engagement_level_function.sql on main. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This was referenced Apr 15, 2026
Closed
Closed
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
Enhances the prospect management system to support proper ownership tracking and actionable dashboards for admins.
prospect_ownertext field toorg_stakeholdersrecordsmy_engaged_prospects,my_followups_needed,unassigned_prospects,claim_prospect,suggest_prospectsmine=truefilter on/api/admin/prospectsendpointTest plan
?mine=truefilter on prospects page🤖 Generated with Claude Code