Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error management on assets upload #1311

Merged
merged 20 commits into from
Sep 30, 2022
Merged

Conversation

clacladev
Copy link
Contributor

What does this pull request do? Explain your changes. (required)
Add processing issues on asset list and on file upload dialog.

Specific updates (required)

  • Added error info to the Asset table item (red name, error icon, error badge with short info and more error details in the tooltips)

  • Added error info inside the File Upload dialog

  • Added the ability to Delete an asset which failed to process

  • Limited the files that can be uploaded to mp4

  • How did you test each of these updates (required)
    Tested on light and dark theme.

Does this pull request close any open issues?
Fixes #1250

Screenshots (optional):
Error state for an asset entry:
Screenshot 2022-09-28 at 15 01 29

Error details on asset tooltip:
Screenshot 2022-09-28 at 18 25 45

Error info inside the File Upload:
Screenshot 2022-09-27 at 17 15 36

Delete button for failed processing assets (loading and normal state):
Screenshot 2022-09-28 at 18 28 00

File upload only allows mp4 files:
Screenshot 2022-09-28 at 18 28 54

Checklist:

  • It needs to be tested by other team members
  • The column sizes of the table are not ideal. The Delete column is occupying too much space, leaving less to the other which would need it more

@clacladev clacladev requested a review from a team as a code owner September 28, 2022 17:30
@vercel
Copy link

vercel bot commented Sep 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
livepeer-studio ✅ Ready (Inspect) Visit Preview Sep 30, 2022 at 3:39PM (UTC)

Copy link
Member

@adamsoffer adamsoffer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested and works great 🔥

I just have a couple styling improvements I'd like to get made before we merge.

  1. Can we add some space between the first and second column? See the figma file for proper spacing.

CleanShot 2022-09-29 at 23 53 36@2x

  1. Can we replace the delete icon with the radix icon trash icon (<TrashIcon />) and give it a margin right of $2? Also, the circular gray background behind the icon should only appear on hover. Can give it a slight fade in on hover (ietransition: 0.2s).

Added a 500ms delay in the tooltips shown in assets tables
children: (
<Box>
{sourceUrl &&
(sourceUrl.indexOf("https://livepeercdn.com") === 0 ||

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization

'[https://livepeercdn.com](1)' may be followed by an arbitrary host name.
<Box>
{sourceUrl &&
(sourceUrl.indexOf("https://livepeercdn.com") === 0 ||
sourceUrl.indexOf("https://cdn.livepeer.com") === 0)

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization

'[https://cdn.livepeer.com](1)' may be followed by an arbitrary host name.
@clacladev
Copy link
Contributor Author

@adamsoffer I solved both issues. So whenever you want you can re-review and merge

@adamsoffer
Copy link
Member

Hey @clacladev - I'm trying to test this on the preview url. Do you have a file that you know will fail processing so I test on my end?

@adamsoffer
Copy link
Member

Hey @clacladev - I'm trying to test this on the preview url. Do you have a file that you know will fail processing so I test on my end?

Nevermind, was able to just rename a file to .mp4 to test

@adamsoffer adamsoffer self-requested a review September 30, 2022 20:14
Copy link
Member

@adamsoffer adamsoffer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fantastic :)

@adamsoffer adamsoffer merged commit 8696e39 into master Sep 30, 2022
@adamsoffer adamsoffer deleted the clacladev/errors-ondemand branch September 30, 2022 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improved task error handling on dashboard
2 participants