fix(activity-feed-v2): load full assignee list when expanding task assignees#4721
fix(activity-feed-v2): load full assignee list when expanding task assignees#4721zhirongwang wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
WalkthroughTask assignee transformation is extracted into a reusable helper, then connected from ChangesTask assignee loading
Sequence Diagram(s)sequenceDiagram
participant ActivityFeedListTask
participant FeedItemRow
participant ActivityFeedV2
participant getTaskCollaborators
ActivityFeedListTask->>FeedItemRow: invoke onLoadAllAssignee(task)
FeedItemRow->>ActivityFeedV2: invoke onTaskLoadAllAssignees(task)
ActivityFeedV2->>getTaskCollaborators: fetch complete collaborators
getTaskCollaborators-->>ActivityFeedV2: return collaborator entries
ActivityFeedV2-->>ActivityFeedListTask: return transformed assignees
Possibly related PRs
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 |
|
zhirongwang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Summary
transformTaskToPropsalready sethasNextPagefromassigned_to.next_marker, but no consumer supplied theonLoadAllAssigneecallback thatAssigneeList(from@box/activity-feed) needs to fetch the remaining assignees.onLoadAllAssigneethroughActivityFeedV2→FeedItemRow→ActivityFeed.List.Task, reusing the existinggetTaskCollaboratorsfetch (/undoc/tasks/{id}/task_collaborators?role=ASSIGNEE&limit=1000) that the task edit modal already uses. This matches the legacy task card's expand behavior (activity-feed/task-new/Task.js).transformTaskAssigneesso the initial transform and the load-all path share the same logic.Test Plan
FeedItemRowpasses the original task toonTaskLoadAllAssigneesand omitsonLoadAllAssigneewhen no loader is provided;ActivityFeedV2fetches viagetTaskCollaboratorsand returns transformed assignees, and omits the loader when the prop is absent (all 237 tests in the three touched suites pass)tscandeslintcleanElements/ContentSidebarwith live token) and in a linked webapp: clicking "Show more" on a 26-assignee task fires thetask_collaborators?role=ASSIGNEE&limit=1000request and renders all 26 assignees with loading state; "Show less" collapses backMade with Cursor
Summary by CodeRabbit
New Features
Bug Fixes
Tests