diff --git a/api/services/workflow/pipecat_engine_callbacks.py b/api/services/workflow/pipecat_engine_callbacks.py index a422734..684514f 100644 --- a/api/services/workflow/pipecat_engine_callbacks.py +++ b/api/services/workflow/pipecat_engine_callbacks.py @@ -116,6 +116,10 @@ def create_aggregation_correction_callback(engine: "PipecatEngine"): if corrupted in ref or len(alnum_ref) < len(alnum_corr) or len(alnum_corr) < 10: return corrupted + logger.debug( + f"In correct_corrupted_aggregation: ref: {ref} corrupted: {corrupted}" + ) + # 2) Find where in `ref` we should start aligning. # We take the first N (N=10) characters of `corrupted` # and look for all their occurrences in `ref`. diff --git a/pipecat b/pipecat index 0df2d1d..1bd0ea6 160000 --- a/pipecat +++ b/pipecat @@ -1 +1 @@ -Subproject commit 0df2d1d36f30e285bfd4dbe287c18c0dc9ea397e +Subproject commit 1bd0ea6b44518040c87074c6086e4fedc0864ca9 diff --git a/ui/src/app/superadmin/runs/page.tsx b/ui/src/app/superadmin/runs/page.tsx index d20cb94..c58961f 100644 --- a/ui/src/app/superadmin/runs/page.tsx +++ b/ui/src/app/superadmin/runs/page.tsx @@ -7,7 +7,7 @@ import { useCallback, useEffect, useState } from "react"; import { getWorkflowRunsApiV1SuperuserWorkflowRunsGet, setAdminCommentApiV1SuperuserWorkflowRunsRunIdCommentPost } from '@/client/sdk.gen'; import { FilterBuilder } from "@/components/filters/FilterBuilder"; -import { MediaPreviewButtons, MediaPreviewDialog } from '@/components/MediaPreviewDialog'; +import { MediaPreviewButton, MediaPreviewDialog } from '@/components/MediaPreviewDialog'; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; @@ -515,12 +515,11 @@ export default function RunsPage() {
- - {mediaDownloadKey && accessToken && ( - - )} +
+ {recordingKey && accessToken && ( + + )} + {transcriptKey && accessToken && ( + + )} +
@@ -114,53 +120,35 @@ export function MediaPreviewDialog({ accessToken }: MediaPreviewDialogProps) { }; } -interface MediaPreviewButtonsProps { +interface MediaPreviewButtonProps { recordingUrl: string | null | undefined; transcriptUrl: string | null | undefined; runId: number; - onOpenAudio: (fileKey: string | null, runId: number) => void; - onOpenTranscript: (fileKey: string | null, runId: number) => void; + onOpenPreview: (recordingUrl: string | null, transcriptUrl: string | null, runId: number) => void; onSelect?: (runId: number) => void; } -export function MediaPreviewButtons({ +export function MediaPreviewButton({ recordingUrl, transcriptUrl, runId, - onOpenAudio, - onOpenTranscript, + onOpenPreview, onSelect, -}: MediaPreviewButtonsProps) { - const handleOpenAudio = () => { - onSelect?.(runId); - onOpenAudio(recordingUrl ?? null, runId); - }; +}: MediaPreviewButtonProps) { + if (!recordingUrl && !transcriptUrl) return null; - const handleOpenTranscript = () => { + const handleOpen = () => { onSelect?.(runId); - onOpenTranscript(transcriptUrl ?? null, runId); + onOpenPreview(recordingUrl ?? null, transcriptUrl ?? null, runId); }; return ( -
- {recordingUrl && ( - - )} - {transcriptUrl && ( - - )} -
+ ); } diff --git a/ui/src/components/workflow-runs/WorkflowRunsTable.tsx b/ui/src/components/workflow-runs/WorkflowRunsTable.tsx index 7c082a1..7f5b752 100644 --- a/ui/src/components/workflow-runs/WorkflowRunsTable.tsx +++ b/ui/src/components/workflow-runs/WorkflowRunsTable.tsx @@ -5,7 +5,7 @@ import { useState } from "react"; import { WorkflowRunResponseSchema } from "@/client/types.gen"; import { FilterBuilder } from "@/components/filters/FilterBuilder"; -import { MediaPreviewButtons, MediaPreviewDialog } from "@/components/MediaPreviewDialog"; +import { MediaPreviewButton, MediaPreviewDialog } from "@/components/MediaPreviewDialog"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; @@ -211,12 +211,11 @@ export function WorkflowRunsTable({
e.stopPropagation()}> -