fix(activity-feed-v2): load full assignee list when expanding task assignees - #4721
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughTask assignee transformation is extracted into a reusable helper, then connected from ChangesTask assignee loading
Estimated code review effort: 3 (Moderate) | ~20 minutes 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: 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 |
… fallback Co-authored-by: Cursor <cursoragent@cursor.com>
…gnees' into fix/activity-feed-v2-load-all-assignees
Co-authored-by: Cursor <cursoragent@cursor.com>
… lookups Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…gnees Co-authored-by: Cursor <cursoragent@cursor.com>
Merge Queue Status
This pull request spent 9 seconds in the queue, including 1 second running CI. Required conditions to merge
|
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