Skip to content

Conversation

@yash-rajpal
Copy link
Member

@yash-rajpal yash-rajpal commented Apr 3, 2025

Proposed changes (including videos or screenshots)

The phone icon does not intuitively represent a video call. Users expect separate, clearly distinguishable icons for Video Call and Voice Call, similar to other communication platforms. This PR separates the call items on room header

Before

image

After

image

Issue(s)

Steps to test or reproduce

Further comments

CORE-999


This pull request introduces a feature to separate video call and voice call room actions in the Rocket.Chat application. The changes include:

  • A minor update to the room header to distinguish between voice call and video call actions.
  • Refactoring of the useVideoCallRoomAction hook by removing unused imports, simplifying the return structure, and consolidating the logic for video call action configuration.
  • Introduction of a new hook, useVoiceCallRoomAction, which replaces the previous useVoipMenuOptions function, improving the structure for better maintainability and clarity.
  • Updates to the ui.ts file to include new imports and modify the list of room action hooks by adding useVideoCallRoomAction and useVoiceCallRoomAction, while removing useStartCallRoomAction.

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Apr 3, 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 3, 2025

🦋 Changeset detected

Latest commit: 118602b

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

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

@codecov
Copy link

codecov bot commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.98%. Comparing base (dc6cf3e) to head (118602b).
Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #35700      +/-   ##
===========================================
- Coverage    60.98%   60.98%   -0.01%     
===========================================
  Files         2956     2955       -1     
  Lines        70539    70526      -13     
  Branches     16174    16203      +29     
===========================================
- Hits         43017    43007      -10     
  Misses       24571    24571              
+ Partials      2951     2948       -3     
Flag Coverage Δ
e2e 57.71% <100.00%> (+0.01%) ⬆️
e2e-api 35.75% <ø> (-0.07%) ⬇️
unit 75.30% <ø> (ø)

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.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2025

PR Preview Action v1.6.0

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

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

@yash-rajpal yash-rajpal marked this pull request as ready for review April 7, 2025 19:45
@yash-rajpal yash-rajpal requested a review from a team as a code owner April 7, 2025 19:45
Copy link
Contributor

@MarcosSpessatto MarcosSpessatto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a changeset and a description :)

Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we avoid this data-qa-id please?

Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dougfabris dougfabris added this to the 7.6.0 milestone Apr 9, 2025
@scuciatto scuciatto added the stat: QA assured Means it has been tested and approved by a company insider label Apr 17, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Apr 17, 2025
@kody-ai
Copy link

kody-ai bot commented Apr 17, 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.

Comment on lines 53 to 54
dispatchWarning();
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Potential Issues high

if (typeof remoteUser?.freeSwitchExtension === 'string') {
    return makeCall(remoteUser.freeSwitchExtension);
}
dispatchWarning();

The remoteUser?.freeSwitchExtension is being cast to a string without ensuring it is a valid string, which could lead to runtime errors.

This issue appears in multiple locations:

  • apps/meteor/client/hooks/roomActions/useVoiceCallRoomAction.tsx: Lines 53-54
  • apps/meteor/client/hooks/roomActions/useVoiceCallRoomAction.tsx: Lines 53-54
    Please add a type check to ensure freeSwitchExtension is a valid string before making the call to prevent potential runtime errors.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

@ggazzo ggazzo merged commit b718fe7 into develop Apr 17, 2025
39 of 41 checks passed
@ggazzo ggazzo deleted the call-room-actions branch April 17, 2025 03:45
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.

6 participants