Add unified account management system#494
Merged
Merged
Conversation
- Add migration 100 for user_stakeholders and action_items tables - Create account-management-db.ts service for stakeholders and action items - Add momentum-check.ts job for analyzing outreach and creating action items - Enhance admin-users.html with action items panel and My Accounts tab - Reorganize admin sidebar with Account Management section - Add API routes for action items (list, create, complete, dismiss, snooze) - Add dry-run and preview endpoints for momentum check testing - Update outreach service to auto-assign stakeholders 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Key changes: - Add sensitive topic detection with 40+ patterns across 8 categories (vulnerable populations, political, named individuals, org positions, media inquiries, competitive, privacy/surveillance, ethical concerns) - Deflect high-severity questions to human contacts automatically - Track known media contacts with configurable handling levels - Flag conversations for admin review queue Outreach improvements (from red team testing): - Add response sentiment/intent analysis (positive, negative, refusal, deferred) - Detect refusal patterns and respect opt-outs - Parse "remind me later" intents and schedule follow-ups - Add grace period for new Slack members (24 hours) - Add improved message variants (loss-framed, peer-triggered, etc.) - Add tire-kicker detection in momentum checks New admin tools: - add_media_contact: Flag journalists for careful handling - list_flagged_conversations: Review queue for sensitive topics - review_flagged_conversation: Mark items as reviewed Testing framework: - User journey simulator with realistic personas - Red team scenarios for edge cases - Action trigger validation tests - Sensitive topic detection tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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
Changes
user_stakeholders(parallelsorg_stakeholdersfor individual users) andaction_itemstables with viewsTest plan
npm run build- passesnpm test- all tests pass🤖 Generated with Claude Code