From 9b76a6b599c425810873af34b647bed7c4aa99cb Mon Sep 17 00:00:00 2001 From: Loewy Date: Mon, 20 May 2024 19:05:10 -0600 Subject: [PATCH] Surface errors in upload process w/ audio & text alert/prompt (#485) CLOSES #480 CLOSES #93 (ground-work completed by @dean) ADDRESSES #488 (will not show if recorded video is not active upload) Reviewed-on: https://dev.railbird.ai/railbird/railbird-mobile/pulls/485 Reviewed-by: Ivan Malison Co-authored-by: Loewy Co-committed-by: Loewy --- src/index.tsx | 16 ++++++++++++++++ src/operations/video.gql | 7 +++++++ 2 files changed, 23 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index f6efec3..1f63133 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -730,6 +730,15 @@ export type GetStreamMonitoringDetailsQuery = { uploadCompletionCursor: number; lastIntendedSegmentBound?: number | null; } | null; + currentProcessing?: { + __typename?: "VideoProcessingGQL"; + errors: Array<{ + __typename?: "VideoProcessingErrorGQL"; + message: string; + startSegmentIndex?: number | null; + endSegmentIndex?: number | null; + }>; + } | null; }; }; @@ -1660,6 +1669,13 @@ export const GetStreamMonitoringDetailsDocument = gql` uploadCompletionCursor lastIntendedSegmentBound } + currentProcessing { + errors { + message + startSegmentIndex + endSegmentIndex + } + } } } `; diff --git a/src/operations/video.gql b/src/operations/video.gql index d8f6ffa..cb640f2 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -52,6 +52,13 @@ query GetStreamMonitoringDetails($videoId: Int!) { uploadCompletionCursor lastIntendedSegmentBound } + currentProcessing { + errors { + message + startSegmentIndex + endSegmentIndex + } + } } }