From 32b281f6890676e0952b662fb614cac870362fec Mon Sep 17 00:00:00 2001 From: Sudheer Salavadi Date: Thu, 27 Feb 2025 14:26:03 -0500 Subject: [PATCH] Improvements in Sessions list & Cobrowsing (#3071) --- .../AssistActions/AassistActions.module.css | 10 +++++++++- .../components/AssistActions/AssistActions.tsx | 17 ++++++++--------- .../Session_/ScreenRecorder/ScreenRecorder.tsx | 3 ++- .../shared/Filters/FilterList/FilterList.tsx | 4 ++-- .../shared/SessionItem/SessionItem.tsx | 2 +- .../components/ui/Icons/mouse_pointer_click.tsx | 2 +- .../app/components/ui/Icons/user_switch.tsx | 2 +- frontend/app/styles/main.css | 3 ++- frontend/app/svg/icons/mouse-pointer-click.svg | 6 +++--- frontend/app/svg/icons/user-switch.svg | 2 +- frontend/app/svg/remote-control.svg | 9 ++------- 11 files changed, 32 insertions(+), 28 deletions(-) diff --git a/frontend/app/components/Assist/components/AssistActions/AassistActions.module.css b/frontend/app/components/Assist/components/AssistActions/AassistActions.module.css index 77d9b7c81..33ff0b125 100644 --- a/frontend/app/components/Assist/components/AssistActions/AassistActions.module.css +++ b/frontend/app/components/Assist/components/AssistActions/AassistActions.module.css @@ -1,8 +1,16 @@ .disabled { - opacity: 0.5; pointer-events: none; } +.disabled > button { + opacity: 0.5; +} + +/* Keep the icon color intact */ +.disabled > button svg { + opacity: 1; +} + .divider { width: 1px; height: 49px; diff --git a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx index 88317ac79..28043f5b8 100644 --- a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx +++ b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx @@ -1,5 +1,6 @@ import React, { useState, useEffect } from 'react'; import { Button } from 'antd'; +import {Headset} from 'lucide-react'; import cn from 'classnames'; import ChatWindow from '../../ChatWindow'; import { CallingState, ConnectionStatus, RemoteControlStatus, RequestLocalStream } from 'Player'; @@ -223,7 +224,7 @@ function AssistActions({ -
diff --git a/frontend/app/components/Session_/ScreenRecorder/ScreenRecorder.tsx b/frontend/app/components/Session_/ScreenRecorder/ScreenRecorder.tsx index 6df8e775a..3e73dbb0a 100644 --- a/frontend/app/components/Session_/ScreenRecorder/ScreenRecorder.tsx +++ b/frontend/app/components/Session_/ScreenRecorder/ScreenRecorder.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { screenRecorder } from 'App/utils/screenRecorder'; import { Tooltip, Button } from 'antd' import { Icon } from 'UI'; +import {Disc} from 'lucide-react' import { SessionRecordingStatus } from 'Player'; let stopRecorderCb: () => void; import { recordingsService } from 'App/services'; @@ -116,7 +117,7 @@ function ScreenRecorder() { - diff --git a/frontend/app/components/shared/Filters/FilterList/FilterList.tsx b/frontend/app/components/shared/Filters/FilterList/FilterList.tsx index 457ad6eb8..e3a0adcce 100644 --- a/frontend/app/components/shared/Filters/FilterList/FilterList.tsx +++ b/frontend/app/components/shared/Filters/FilterList/FilterList.tsx @@ -61,7 +61,7 @@ export const FilterList = observer((props: Props) => { borderTopRightRadius: props.mergeUp ? 0 : undefined }} > -
+
Filters
{
e.stopPropagation()} onMouseEnter={handleHover} diff --git a/frontend/app/components/ui/Icons/mouse_pointer_click.tsx b/frontend/app/components/ui/Icons/mouse_pointer_click.tsx index 157760f06..5ce2bb94d 100644 --- a/frontend/app/components/ui/Icons/mouse_pointer_click.tsx +++ b/frontend/app/components/ui/Icons/mouse_pointer_click.tsx @@ -12,7 +12,7 @@ interface Props { function Mouse_pointer_click(props: Props) { const { size = 14, width = size, height = size, fill = '' } = props; return ( - + ); } diff --git a/frontend/app/components/ui/Icons/user_switch.tsx b/frontend/app/components/ui/Icons/user_switch.tsx index 27d47c541..c87f988ad 100644 --- a/frontend/app/components/ui/Icons/user_switch.tsx +++ b/frontend/app/components/ui/Icons/user_switch.tsx @@ -12,7 +12,7 @@ interface Props { function User_switch(props: Props) { const { size = 14, width = size, height = size, fill = '' } = props; return ( - + ); } diff --git a/frontend/app/styles/main.css b/frontend/app/styles/main.css index 2f074ff3e..5f41dfc4f 100644 --- a/frontend/app/styles/main.css +++ b/frontend/app/styles/main.css @@ -414,4 +414,5 @@ svg { background-color: #c6c6c6; border-radius: 4px; cursor: grab; -} \ No newline at end of file +} + diff --git a/frontend/app/svg/icons/mouse-pointer-click.svg b/frontend/app/svg/icons/mouse-pointer-click.svg index d3578f05d..0ec4cba4d 100644 --- a/frontend/app/svg/icons/mouse-pointer-click.svg +++ b/frontend/app/svg/icons/mouse-pointer-click.svg @@ -1,7 +1,7 @@ - - - + + + diff --git a/frontend/app/svg/icons/user-switch.svg b/frontend/app/svg/icons/user-switch.svg index 6ea7b910d..0bc2fbb85 100644 --- a/frontend/app/svg/icons/user-switch.svg +++ b/frontend/app/svg/icons/user-switch.svg @@ -1,5 +1,5 @@ - + diff --git a/frontend/app/svg/remote-control.svg b/frontend/app/svg/remote-control.svg index 9e2925be5..5a44d678f 100644 --- a/frontend/app/svg/remote-control.svg +++ b/frontend/app/svg/remote-control.svg @@ -1,10 +1,5 @@ - - - - + + - - -