fix(activity-feed-v2): empty state when feed has only version rows#4622
Conversation
…on rows The /file_activities endpoint returns at least one version row per upload, so a fresh file with no comments, tasks, or annotations rendered a single version row instead of the empty state. Suppress version-only feeds so the shared activity-feed empty state encourages comments. Filter-active cases are skipped so a "no results" view does not collapse into "no comments yet".
|
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)
WalkthroughActivityFeedV2 now suppresses version-only feeds: when no items are filtered out and the remaining feed contains exclusively ChangesVersion-only feed suppression
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Merge Queue Status
This pull request spent 16 seconds in the queue, including 3 seconds running CI. Required conditions to merge
|
Summary
/file_activitiesendpoint always returns at least oneversionrow per upload, so a freshly uploaded file with no comments, tasks, or annotations rendered a single version row instead of the activity-feed empty state.ActivityFeedV2, when the filtered feed contains onlyversionitems, return[]so the shared@box/activity-feedActivityFeed.Listrenders its existingEmptyState.Test plan
yarn test --watchAll=false --testPathPattern="activity-feed-v2/__tests__/ActivityFeedV2"-> 58/58 passingShow resolvedoff and only resolved comments + a version row: version row still renders so the user can toggle the filter back on.Summary by CodeRabbit
Release Notes