diff --git a/apps/web/modules/videos/ai/ai-transcribe.tsx b/apps/web/modules/videos/ai/ai-transcribe.tsx index ce85280c74..30cb8fca46 100644 --- a/apps/web/modules/videos/ai/ai-transcribe.tsx +++ b/apps/web/modules/videos/ai/ai-transcribe.tsx @@ -1,10 +1,9 @@ import { useTranscription } from "@daily-co/daily-react"; import { useDaily, useDailyEvent } from "@daily-co/daily-react"; import React, { Fragment, useCallback, useRef, useState, useLayoutEffect, useEffect } from "react"; -import { Toaster } from "react-hot-toast"; +import { WEBAPP_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { showToast } from "@calcom/ui"; export const CalAiTranscribe = () => { const daily = useDaily(); @@ -26,11 +25,25 @@ export const CalAiTranscribe = () => { ); useDailyEvent("transcription-started", (ev) => { - showToast(t("transcription_enabled"), "success"); + daily?.updateCustomTrayButtons({ + transcription: { + label: "Stop", + tooltip: "Stop transcription", + iconPath: `${WEBAPP_URL}/sparkles-red.svg`, + iconPathDarkMode: `${WEBAPP_URL}/sparkles-red.svg`, + }, + }); }); useDailyEvent("transcription-stopped", (ev) => { - showToast(t("transcription_stopped"), "success"); + daily?.updateCustomTrayButtons({ + transcription: { + label: "Cal.ai", + tooltip: "Transcription powered by AI", + iconPath: `${WEBAPP_URL}/sparkles`, + iconPathDarkMode: `${WEBAPP_URL}/sparkles`, + }, + }); }); useDailyEvent("custom-button-click", (ev) => { @@ -68,11 +81,13 @@ export const CalAiTranscribe = () => { return ( <> -
+ className="max-h-full overflow-x-hidden overflow-y-scroll p-8 text-center text-white"> {transcript ? transcript.split("\n").map((line, i) => ( diff --git a/apps/web/modules/videos/views/videos-single-view.tsx b/apps/web/modules/videos/views/videos-single-view.tsx index df8979ff8c..52c8be0363 100644 --- a/apps/web/modules/videos/views/videos-single-view.tsx +++ b/apps/web/modules/videos/views/videos-single-view.tsx @@ -51,7 +51,7 @@ export default function JoinCall(props: PageProps) { customTrayButtons: { transcription: { label: "Cal.ai", - tooltip: "Toggle real time transcription powered by AI", + tooltip: "Transcription powered by AI", iconPath: `${WEBAPP_URL}/sparkles.svg`, iconPathDarkMode: `${WEBAPP_URL}/sparkles.svg`, }, @@ -103,12 +103,12 @@ export default function JoinCall(props: PageProps) { /> ) : ( Logo )} diff --git a/apps/web/public/sparkles-red.svg b/apps/web/public/sparkles-red.svg new file mode 100644 index 0000000000..49523439dd --- /dev/null +++ b/apps/web/public/sparkles-red.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx index 1fe2c16950..d744c8dff9 100644 --- a/packages/features/bookings/Booker/Booker.tsx +++ b/packages/features/bookings/Booker/Booker.tsx @@ -327,7 +327,7 @@ const BookerComponent = ({ {!hideEventTypeDetails && orgBannerUrl && !isPlatform && ( org banner