From a377a143f56b677a1147c5d6ccdfafe2ba806cb5 Mon Sep 17 00:00:00 2001 From: Luiz Kowalski Date: Wed, 2 Oct 2024 17:29:36 -0300 Subject: [PATCH 1/3] Export the thumb update status on the edit details hook --- .../admin/components/edit-video-details/use-edit-details.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/packages/videopress/src/client/admin/components/edit-video-details/use-edit-details.ts b/projects/packages/videopress/src/client/admin/components/edit-video-details/use-edit-details.ts index 256278a34ec50..5c02a23c51bc0 100644 --- a/projects/packages/videopress/src/client/admin/components/edit-video-details/use-edit-details.ts +++ b/projects/packages/videopress/src/client/admin/components/edit-video-details/use-edit-details.ts @@ -120,6 +120,7 @@ export default () => { processing, isDeleting, updateVideoPrivacy, + isUpdatingPoster, } = useVideo( Number( videoId ), true ); const { playbackToken, isFetchingPlaybackToken } = usePlaybackToken( video ); @@ -331,5 +332,6 @@ export default () => { selectedTime, ...metaEditData, ...posterEditData, + isUpdatingPoster, }; }; From 83f3add2d83da9d5b2f26344a81c8b5384932879 Mon Sep 17 00:00:00 2001 From: Luiz Kowalski Date: Wed, 2 Oct 2024 17:30:16 -0300 Subject: [PATCH 2/3] Use poster updating status to set video thumb as processing --- .../src/client/admin/components/edit-video-details/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/packages/videopress/src/client/admin/components/edit-video-details/index.tsx b/projects/packages/videopress/src/client/admin/components/edit-video-details/index.tsx index 769695ec10655..61982c0e5930a 100644 --- a/projects/packages/videopress/src/client/admin/components/edit-video-details/index.tsx +++ b/projects/packages/videopress/src/client/admin/components/edit-video-details/index.tsx @@ -223,6 +223,7 @@ const EditVideoDetails = () => { selectPosterImageFromLibrary, posterImageSource, libraryAttachment, + isUpdatingPoster, } = useEditDetails(); const { canPerformAction } = usePermission(); @@ -312,7 +313,7 @@ const EditVideoDetails = () => { Date: Wed, 2 Oct 2024 17:37:32 -0300 Subject: [PATCH 3/3] Changelog --- .../update-videopress-update-thumb-placeholder-while-updating | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/packages/videopress/changelog/update-videopress-update-thumb-placeholder-while-updating diff --git a/projects/packages/videopress/changelog/update-videopress-update-thumb-placeholder-while-updating b/projects/packages/videopress/changelog/update-videopress-update-thumb-placeholder-while-updating new file mode 100644 index 0000000000000..d1cf9f41e5de8 --- /dev/null +++ b/projects/packages/videopress/changelog/update-videopress-update-thumb-placeholder-while-updating @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +VideoPress: fix thumbnail update bug that showed the old thumbnail for a couple seconds on the details page.