Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(cc-widgets): added new UI for call controls #405

Merged
merged 10 commits into from
Mar 6, 2025

Conversation

rsarika
Copy link
Contributor

@rsarika rsarika commented Mar 5, 2025

Copy link

coderabbitai bot commented Mar 5, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-405.d1b38q61t1z947.amplifyapp.com

@rsarika rsarika requested a review from mkesavan13 March 5, 2025 11:18

import {CallControlPresentationalProps} from '../task.types';
import './call-control.styles.scss';
import {ButtonPill} from '@momentum-ui/react-collaboration';
import {Button, Icon} from '@momentum-design/components/dist/react';
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we using the @momentum-design components for these? Shouldn't everything come from react-collaboration?

Copy link
Contributor

@mkesavan13 mkesavan13 Mar 5, 2025

Choose a reason for hiding this comment

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

We have ButtonCircle as well as Icon

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated button. icon kept as it is as collaboration icons works properly. we can fix it once we fix i con issue

Copy link
Contributor

@mkesavan13 mkesavan13 left a comment

Choose a reason for hiding this comment

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

Please check the comments

Comment on lines 58 to 70
tooltip: isHeld ? 'Resume the call' : 'Hold the call',
className: 'call-control-button',
},
{
icon: isRecording ? 'record-paused-bold' : 'record-bold',
onClick: () => handletoggleRecording(),
tooltip: isRecording ? 'Pause Recording' : 'Resume Recording',
className: 'call-control-button',
},
{
icon: 'cancel-regular',
onClick: endCall,
tooltip: 'End call',
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add all the tooltip text and UI labels to a constant file?

Comment on lines 123 to 125
<Text className="wrapup-header" tagName={'small'} type="subheader-primary">
Wrap-up Interaction
</Text>
Copy link
Contributor

Choose a reason for hiding this comment

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

This one doesn't match the Figma Specs. In terms of positioning, size and weight. Please check.

Choose a reason for hiding this comment

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

Updated

Wrap-up Interaction
</Text>
<div className="wrapup-select-wrapper">
<SelectNext
Copy link
Contributor

Choose a reason for hiding this comment

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

This select component height and width as well doesn't match with the Figma specs. Please check.

Choose a reason for hiding this comment

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

Updated

className="wrapup-popover"
>
<Text className="wrapup-header" tagName={'small'} type="subheader-primary">
Wrap-up Interaction
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have this label in a constant file?

Choose a reason for hiding this comment

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

We have many texts that are directly added in the HTML, is it okay that we have a ticket for i18n and we move everything as part of that?

items={wrapupCodes}
showBorder={false}
placeholder="Select"
label="Wrap-up reason"
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add this label to constants as well

onPress={() => wrapupCall(selectedWrapupReason, selectedWrapupId)}
disabled={selectedWrapupId && selectedWrapupReason ? false : true}
>
submit & Wrapup
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
submit & Wrapup
Submit & Wrap up

Also ensure that this comes from the constant file

Choose a reason for hiding this comment

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

Updated

import {ButtonPill} from '@momentum-ui/react-collaboration';
import {PopoverNext, SelectNext, TooltipNext, Text, ButtonCircle, ButtonPill} from '@momentum-ui/react-collaboration';
import {Item} from '@react-stately/collections';
import {Icon} from '@momentum-design/components/dist/react';
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we import <IconNext/> instead from the MRV2 itself for this?

CC - @Shreyas281299

Choose a reason for hiding this comment

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

No we cant, the IconNext is not working. This component is the reason why SelectNext and other components with Icons are not working.

)}
{wrapupRequired && (
<div className="wrapup-group">
<PopoverNext
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's also check if the popover style matches the Figma. For instance, the border & padding in the Figma and the vidcast doesn't seem to match

Choose a reason for hiding this comment

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

Updated

@Shreyas281299
Copy link

Screen.Recording.2025-03-06.at.6.40.04.PM.mov

Testing after my commit to fix UTs

Copy link

@Shreyas281299 Shreyas281299 left a comment

Choose a reason for hiding this comment

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

Changes look good, Lets just update the UI according to the Figma as mentioned by Kesava

@Shreyas281299
Copy link

Screenshot 2025-03-06 at 7 17 55 PM
Updated UI

@Shreyas281299 Shreyas281299 merged commit e48f48d into webex:ccwidgets Mar 6, 2025
3 checks passed
@sreenara
Copy link
Contributor

sreenara commented Mar 6, 2025

🎉 This PR is included in version 1.28.0-ccwidgets.29 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

zachraymer pushed a commit to zachraymer/widgets that referenced this pull request Mar 6, 2025
# [1.28.0-ccwidgets.29](webex/widgets@v1.28.0-ccwidgets.28...v1.28.0-ccwidgets.29) (2025-03-06)

### Features

* **cc-widgets:** added new UI for call controls ([webex#405](webex#405)) ([e48f48d](webex@e48f48d))
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants