From 57f63bf89143ae965af06c5b6c9e87f93100e67d Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 28 Aug 2025 13:56:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(frontend)=20add=20visual=20pin=20i?= =?UTF-8?q?ndicator=20for=20pinned=20participant=20tracks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce pin icon to visually notify users when a participant has their track pinned in the interface. Provides clear visual feedback for pin status, helping users understand which participants are currently highlighted or prioritized in the meeting view. --- .../Participants/ParticipantListItem.tsx | 10 ++++++- .../controls/Participants/PinBadge.tsx | 29 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/frontend/src/features/rooms/livekit/components/controls/Participants/PinBadge.tsx diff --git a/src/frontend/src/features/rooms/livekit/components/controls/Participants/ParticipantListItem.tsx b/src/frontend/src/features/rooms/livekit/components/controls/Participants/ParticipantListItem.tsx index e92eeb50..08237c2f 100644 --- a/src/frontend/src/features/rooms/livekit/components/controls/Participants/ParticipantListItem.tsx +++ b/src/frontend/src/features/rooms/livekit/components/controls/Participants/ParticipantListItem.tsx @@ -20,6 +20,7 @@ import { MuteAlertDialog } from '../../MuteAlertDialog' import { useMuteParticipant } from '@/features/rooms/api/muteParticipant' import { useCanMute } from '@/features/rooms/livekit/hooks/useCanMute' import { ParticipantMenuButton } from '../../ParticipantMenu/ParticipantMenuButton' +import { PinBadge } from './PinBadge' type MicIndicatorProps = { participant: Participant @@ -106,7 +107,14 @@ export const ParticipantListItem = ({ })} > - +
+ + +
{ + const { inFocus } = useFocusToggleParticipant(participant) + + if (!inFocus) return + + return ( +
+ +
+ ) +}