fix(activity-feed-v2): suppress invite popover after mention selection#4703
fix(activity-feed-v2): suppress invite popover after mention selection#4703jackiejou wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Walkthrough
ChangesCollaborator Mention State
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
@box/threaded-annotations:useMentionUserSelectioncallsfetchCollaboratorStatefrom the mention context after each selection, and when the callback is absent every user resolves as a non-collaborator, opening the collaboration popover anchored to the inserted mention.ActivityFeedV2now providesfetchCollaboratorState: async () => truein its mention context, which suppresses the invite popover.Test Plan
yarn test --watchAll=false --testPathPattern="content-sidebar/activity-feed-v2/__tests__/ActivityFeedV2"(79 tests pass)ActivityFeed.RootresolvesfetchCollaboratorStatetotruefor any user@in a new comment, select a user, verify the mention is inserted and no popover reopensSummary by CodeRabbit
Bug Fixes
Tests