-
Notifications
You must be signed in to change notification settings - Fork 11.7k
fix: leader banner visible in new navigation #35417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: leader banner visible in new navigation #35417
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 3129953 The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #35417 +/- ##
========================================
Coverage 59.66% 59.67%
========================================
Files 2826 2826
Lines 68378 68357 -21
Branches 15149 15142 -7
========================================
- Hits 40800 40793 -7
+ Misses 24964 24951 -13
+ Partials 2614 2613 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you could describe your changes in the PR description, as well as steps for testing, it would be much appreciated 😉
16aa8c3
to
cc7cdce
Compare
|
Signed-off-by: Abhinav Kumar <[email protected]>
Signed-off-by: Abhinav Kumar <[email protected]>
Signed-off-by: Abhinav Kumar <[email protected]>
cc7cdce
to
3454617
Compare
@kody start-review |
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Proposed changes (including videos or screenshots)
Currently, the "Leader" role is displayed in the room header when using the new navigation, instead of being removed.
This PR removes the leader banner from the chat header in new navigation.
Screen.Recording.2025-03-12.at.6.14.28.PM.mov
Issue(s)
Steps to test or reproduce
Further comments
CORE-1013
This pull request addresses the issue of the room leader banner being visible in the new navigation of Rocket.Chat. The changes include the removal of the room leader banner from the chat header and the elimination of leader banner functionality, room roles, and real name settings in the
RoomBody.tsx
file. Additionally, theRoomBodyV2.tsx
file has been simplified by removing unnecessary merged refs and directly usingwrapperRef
. TheRoomTopic.tsx
component has been streamlined by removing room leader functionality and unnecessary dependencies, while retaining the core topic display and edit capabilities. Furthermore, theuseBannerSection.ts
hook has been refactored to improve variable naming and conditional checks for banner section visibility logic.