Skip to content

Conversation

@dougfabris
Copy link
Member

@dougfabris dougfabris commented Apr 15, 2025

Proposed changes (including videos or screenshots)

Important

This change is under feature preview

Kapture 2025-04-15 at 12 19 10

Issue(s)

Steps to test or reproduce

  • Enable Enhanced navigation feature preview
  • Check the new global header

Further comments

SIDE2-1


This pull request introduces a new global header feature to the Rocket.Chat application, focusing on enhancing the navigation experience. Key changes include:

  1. NavBar Restructuring: The navigation bar (NavBar.tsx) has been restructured to group related toolbar items more effectively using <NavBarSection>. New navigation items such as NavBarItemCreateNew, NavBarItemSort, and NavBarItemVoipToggler have been added, with updated imports and conditional rendering logic for VOIP and Omnichannel sections.

  2. Component and Hook Renaming: Several components and hooks have been renamed for clarity and consistency. For instance, CreateRoom is now NavBarItemCreateNew, and the hook useCreateRoomMenu is renamed to useCreateNewMenu.

  3. Import Path Updates: Numerous files have had their import paths updated, reflecting a reorganization of the codebase. This includes components and hooks related to creating channels, direct messages, and teams.

  4. Matrix Federation and VoIP Enhancements: The PR adds Matrix Federation functionality and refactors the VoIP toggle into a dedicated component (NavBarItemVoipToggler), improving modularity.

  5. Administration Menu Updates: The NavBarItemAdministrationMenu component now includes an audit section, with logic updates to determine the active state based on the current route. Tests have been added to ensure correct menu item display based on user permissions and license activation.

  6. Icon and UI Adjustments: The icon for the NavBarItemVoipDialer has been changed from 'phone' to 'dialpad' to better represent its functionality.

Overall, this pull request focuses on improving the navigation structure, enhancing modularity, and ensuring consistency across the navigation components in the Rocket.Chat application.

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Apr 15, 2025

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

@changeset-bot
Copy link

changeset-bot bot commented Apr 15, 2025

🦋 Changeset detected

Latest commit: 25d6ee0

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

This PR includes changesets to release 37 packages
Name Type
@rocket.chat/ui-contexts Major
@rocket.chat/ui-client Major
@rocket.chat/i18n Minor
@rocket.chat/meteor Minor
@rocket.chat/uikit-playground Patch
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/gazzodown Major
@rocket.chat/livechat Patch
@rocket.chat/mock-providers Patch
@rocket.chat/ui-avatar Major
@rocket.chat/ui-video-conf Major
@rocket.chat/ui-voip Major
@rocket.chat/web-ui-registration Major
@rocket.chat/core-typings Minor
@rocket.chat/rest-typings Minor
@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/model-typings 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/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

@dougfabris dougfabris added this to the 7.6.0 milestone Apr 15, 2025
@kody-ai
Copy link

kody-ai bot commented Apr 15, 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
Breaking Changes

Access your configuration settings here.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 15, 2025

PR Preview Action v1.6.1

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

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

@codecov
Copy link

codecov bot commented Apr 15, 2025

Codecov Report

Attention: Patch coverage is 65.87302% with 129 lines in your changes missing coverage. Please review.

Project coverage is 61.26%. Comparing base (f67aa0c) to head (25d6ee0).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #35807      +/-   ##
===========================================
+ Coverage    61.19%   61.26%   +0.06%     
===========================================
  Files         2979     3149     +170     
  Lines        70982    74099    +3117     
  Branches     16208    16524     +316     
===========================================
+ Hits         43438    45395    +1957     
- Misses       24590    25657    +1067     
- Partials      2954     3047      +93     
Flag Coverage Δ
e2e 57.87% <65.87%> (+0.09%) ⬆️
unit 75.57% <ø> (ø)

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.

@dougfabris dougfabris force-pushed the feat/global-navigation branch from 182a9eb to 782d0d2 Compare April 18, 2025 19:32
@dougfabris dougfabris marked this pull request as ready for review April 18, 2025 20:14
@dougfabris dougfabris requested a review from a team as a code owner April 18, 2025 20:14
@dougfabris dougfabris force-pushed the feat/global-navigation branch from 9f54d50 to e8bc00c Compare April 18, 2025 22:16
juliajforesti
juliajforesti previously approved these changes Apr 18, 2025
juliajforesti
juliajforesti previously approved these changes Apr 18, 2025
@juliajforesti juliajforesti added the stat: QA assured Means it has been tested and approved by a company insider label Apr 18, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Apr 18, 2025
@dougfabris dougfabris force-pushed the feat/global-navigation branch from b4e49f8 to 4bf4aa3 Compare April 18, 2025 23:11
@dougfabris dougfabris force-pushed the feat/global-navigation branch from 7bfb32f to 8de3921 Compare April 19, 2025 00:24
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.

3 participants