Skip to content

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

Merged
merged 5 commits into from
Mar 19, 2025

Conversation

abhinavkrin
Copy link
Member

@abhinavkrin abhinavkrin commented Mar 6, 2025

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

  1. Go to workspace > feature preview
  2. Enable feature preview and new navigation
  3. Create a room and add a leader to it.
  4. Check if no leader info is there in the chat header.

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, the RoomBodyV2.tsx file has been simplified by removing unnecessary merged refs and directly using wrapperRef. The RoomTopic.tsx component has been streamlined by removing room leader functionality and unnecessary dependencies, while retaining the core topic display and edit capabilities. Furthermore, the useBannerSection.ts hook has been refactored to improve variable naming and conditional checks for banner section visibility logic.

@abhinavkrin abhinavkrin requested a review from a team as a code owner March 6, 2025 18:16
Copy link
Contributor

dionisio-bot bot commented Mar 6, 2025

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Mar 6, 2025

🦋 Changeset detected

Latest commit: 3129953

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

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

@abhinavkrin abhinavkrin added this to the 7.5.0 milestone Mar 6, 2025
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.67%. Comparing base (84f7bf0) to head (3129953).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           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     
Flag Coverage Δ
unit 75.86% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@aleksandernsilva aleksandernsilva left a 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 😉

@abhinavkrin abhinavkrin marked this pull request as draft March 7, 2025 17:17
@abhinavkrin abhinavkrin force-pushed the fix/leader-banner-visible-in-new-navigation branch from 16aa8c3 to cc7cdce Compare March 10, 2025 17:26
Copy link
Contributor

github-actions bot commented Mar 10, 2025

PR Preview Action v1.6.0

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-35417/

Built to branch gh-pages at 2025-03-19 11:36 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Signed-off-by: Abhinav Kumar <[email protected]>
Signed-off-by: Abhinav Kumar <[email protected]>
@abhinavkrin abhinavkrin force-pushed the fix/leader-banner-visible-in-new-navigation branch from cc7cdce to 3454617 Compare March 12, 2025 17:28
@abhinavkrin abhinavkrin marked this pull request as ready for review March 12, 2025 17:28
@abhinavkrin
Copy link
Member Author

@kody start-review

Copy link

kodus-ai bot commented Mar 12, 2025

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Security
Code Style
Kody Rules
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization

Access your configuration settings here.

@scuciatto scuciatto added the stat: QA assured Means it has been tested and approved by a company insider label Mar 19, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Mar 19, 2025
@kodiakhq kodiakhq bot merged commit 3c197a4 into develop Mar 19, 2025
48 checks passed
@kodiakhq kodiakhq bot deleted the fix/leader-banner-visible-in-new-navigation branch March 19, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants