From 6dde098ffa7bd0bc7d8bcd745d176e5b14841f27 Mon Sep 17 00:00:00 2001 From: Rhys Mills Date: Fri, 21 Jun 2024 16:09:41 +0100 Subject: [PATCH] Implement UX improvements to upload page --- .../src/components/VideoUpload/AddAssetFromURL.js | 6 ++++++ .../src/components/VideoUpload/VideoAsset.js | 2 +- .../src/components/VideoUpload/YoutubeUpload.js | 15 ++++++--------- .../video-ui/src/components/utils/YouTubeEmbed.js | 4 +++- public/video-ui/styles/abstracts/_mixins.scss | 2 +- public/video-ui/styles/components/_forms.scss | 10 ++++++++++ public/video-ui/styles/components/_presence.scss | 3 ++- public/video-ui/styles/layout/_grid.scss | 1 + public/video-ui/styles/layout/_upload.scss | 3 ++- public/video-ui/styles/layout/_video.scss | 9 +++++++++ 10 files changed, 41 insertions(+), 14 deletions(-) diff --git a/public/video-ui/src/components/VideoUpload/AddAssetFromURL.js b/public/video-ui/src/components/VideoUpload/AddAssetFromURL.js index f0032aad3..3ef207f37 100644 --- a/public/video-ui/src/components/VideoUpload/AddAssetFromURL.js +++ b/public/video-ui/src/components/VideoUpload/AddAssetFromURL.js @@ -25,6 +25,12 @@ export default class AddAssetFromURL extends React.Component {
Asset URL
+

+ This should only be used as a backup if the 'Upload to YouTube' option is not available. +

+

+ Using an Asset URL from an existing YouTube video will not pass video data to our video commissioning and syndication tool, Pluto. +

- {id ? : } + {id ? : } {linkProps ? diff --git a/public/video-ui/src/components/VideoUpload/YoutubeUpload.js b/public/video-ui/src/components/VideoUpload/YoutubeUpload.js index 70b2c5b9f..4e2658c63 100644 --- a/public/video-ui/src/components/VideoUpload/YoutubeUpload.js +++ b/public/video-ui/src/components/VideoUpload/YoutubeUpload.js @@ -17,21 +17,13 @@ export default class YoutubeUpload extends React.Component { } }; - renderWarning() { - return ( -

- A YouTube channel, category and privacy status are needed before uploading a video -

- ); - } - render() { const { video, startUpload } = this.props; const canUploadToYouTube = VideoUtils.canUploadToYouTube(video); return ( -
+
Upload to YouTube @@ -44,6 +36,11 @@ export default class YoutubeUpload extends React.Component { disabled={!canUploadToYouTube || this.props.uploading} accept="video/*,.mxf" /> + { !canUploadToYouTube ? +

+ A YouTube channel, category and privacy status are needed before uploading a video. Please set these in the YouTube furniture tab. +

: null + }