Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,12 @@ export const TabHeader = forwardRef<TabHeaderRef, TabHeaderProps>(
)}
>
Transcript
{isCurrentlyRecording && <div className="w-2 h-2 bg-red-500 rounded-full animate-pulse" />}
{isCurrentlyRecording && (
<div className="relative h-2 w-2">
<div className="absolute inset-0 rounded-full bg-red-500/30"></div>
<div className="absolute inset-0 rounded-full bg-red-500 animate-ping"></div>
</div>
)}
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,17 @@ const MemoizedSpeakerSelector = memo(({
const { userId } = useHypr();
const [isOpen, setIsOpen] = useState(false);
const [speakerRange, setSpeakerRange] = useState<SpeakerChangeRange>("current");
const inactive = useOngoingSession(s => s.status === "inactive");
const [human, setHuman] = useState<Human | null>(null);

const noteMatch = useMatch({ from: "/app/note/$id", shouldThrow: false });
const sessionId = noteMatch?.params.id;

// Check if THIS SPECIFIC session is inactive, not global status
const ongoingSessionId = useOngoingSession(s => s.sessionId);
const ongoingStatus = useOngoingSession(s => s.status);
const isThisSessionActive = ongoingStatus === "running_active" && ongoingSessionId === sessionId;
const inactive = !isThisSessionActive;

const { data: participants = [] } = useQuery({
enabled: !!sessionId,
queryKey: ["participants", sessionId!, "selector"],
Expand Down
Loading