show private indicator for appropriate streams #255
Reference in New Issue
Block a user
Delete Branch "show-private-for-personal-streams"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary by CodeRabbit
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
4c0ad0a5-ec60-49c5-a070-7b96b8ec59dd📥 Commits
Reviewing files that changed from the base of the PR and between
1725a44f9bandf90b81acfd.📒 Files selected for processing (1)
js/desktop/src/features/particles/stream-top-bar.tsx🚧 Files skipped from review as they are similar to previous changes (1)
📝 Walkthrough
Walkthrough
MembersIndicator now excludes the current user when computing visible members, classifies visibility as network-wide, private (only current user), or multi-member, and renders a globe, lock, or avatar group plus updated tooltip text accordingly.
Changes
MembersIndicator Visibility States
js/desktop/src/features/particles/stream-top-bar.tsxLockand refactored member-id computation: buildsallMemberIdsfrom visibility, computesothersIdsby excluding the current user, determinesisPrivatefromothersIdsemptiness, and recalculatesshownMembers/overflowfromothersIds.js/desktop/src/features/particles/stream-top-bar.tsxallMemberIds.lengthfor non-network cases.Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
show-private-for-personal-streamsComment
@coderabbitai helpto get the list of available commands and usage tips.