Thumbnail slider #2492

Merged
zxawry merged 1 commit from thumbnail-slider into master 2019-05-22 00:00:30 +02:00
zxawry commented 2019-05-17 18:47:45 +02:00 (Migrated from github.com)

PR Checklist

  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

  • Feature

Fixes

Issue Number: #1088

What is the new behavior?

When publishing a video a button appears on thumbnail section that opens a modal in which the user can seek through their chosen video and pick a frame to upload to spee.ch as thumbnail

Other information

I modified doUploadThumbnail to accept Arrays as filePath too

## PR Checklist - [x] This PR introduces breaking changes and I have provided a detailed explanation below ## PR Type - [x] Feature ## Fixes Issue Number: #1088 ## What is the new behavior? When publishing a video a button appears on thumbnail section that opens a modal in which the user can seek through their chosen video and pick a frame to upload to spee.ch as thumbnail ## Other information I modified `doUploadThumbnail` to accept Arrays as `filePath` too
tzarebczan commented 2019-05-17 18:58:11 +02:00 (Migrated from github.com)

Whoa, another PR, nice job! We'll get this reviewed. On spee.ch, I think we also allow thumbnails for GIFs - wonder how hard that would be to add.

Whoa, another PR, nice job! We'll get this reviewed. On spee.ch, I think we also allow thumbnails for GIFs - wonder how hard that would be to add.
zxawry commented 2019-05-17 19:12:59 +02:00 (Migrated from github.com)

I got so many filetype errors on commit!!! and I've just noticed someone is assigned to this issue already

I got so many filetype errors on commit!!! and I've just noticed someone is assigned to this issue already
tzarebczan commented 2019-05-17 19:19:27 +02:00 (Migrated from github.com)

No worries, unassigned him :)

No worries, unassigned him :)
neb-b commented 2019-05-18 03:26:41 +02:00 (Migrated from github.com)

Thank you for the PR! I'll test this out tomorrow.

Thank you for the PR! I'll test this out tomorrow.
neb-b (Migrated from github.com) requested changes 2019-05-20 05:02:54 +02:00
neb-b (Migrated from github.com) left a comment

Tested and this is working great! Just a few comments.

Tested and this is working great! Just a few comments.
neb-b (Migrated from github.com) commented 2019-05-20 04:55:23 +02:00

We don't need to mention spee.ch. Let's just say `"Pause at any time to select a thumbnail from your video."

We don't need to mention spee.ch. Let's just say `"Pause at any time to select a thumbnail from your video."
neb-b (Migrated from github.com) commented 2019-05-20 04:55:39 +02:00

This should be <p className="card__subtitle">

This should be `<p className="card__subtitle">`
neb-b (Migrated from github.com) commented 2019-05-20 04:56:27 +02:00

This should be a ref instead of accessing the dom by ID.

This should be a `ref` instead of accessing the dom by ID.
neb-b (Migrated from github.com) commented 2019-05-20 05:02:35 +02:00

We can use the ref here too.

We can use the ref here too.
@ -68,10 +68,22 @@ export const doUpdatePublishForm = (publishFormValue: UpdatePublishFormData) =>
data: { ...publishFormValue },
neb-b (Migrated from github.com) commented 2019-05-20 05:02:18 +02:00

We shouldn't need to do this because we've declared that filePath will be a string. Maybe we should add a second argument for a buffer?

export const doUploadThumbnail = (filePath?: string, thumbnailBuffer: Buffer)

(I'm not sure what that flow type should be)

We shouldn't need to do this because we've declared that `filePath` will be a string. Maybe we should add a second argument for a buffer? `export const doUploadThumbnail = (filePath?: string, thumbnailBuffer: Buffer)` (I'm not sure what that flow type should be)
zxawry (Migrated from github.com) reviewed 2019-05-20 14:04:38 +02:00
zxawry (Migrated from github.com) commented 2019-05-20 14:04:37 +02:00

I tried to use string refs but react docs says it's legacy and will be deprecated, so I added a ref property in the constructor, which led to some flow type errors I couldn't fix.

I tried to use string refs but react docs says it's legacy and will be deprecated, so I added a ref property in the constructor, which led to some flow type errors I couldn't fix.
zxawry (Migrated from github.com) reviewed 2019-05-20 14:11:47 +02:00
@ -68,10 +68,22 @@ export const doUpdatePublishForm = (publishFormValue: UpdatePublishFormData) =>
data: { ...publishFormValue },
zxawry (Migrated from github.com) commented 2019-05-20 14:11:47 +02:00

I did as you said, but do you think wrapping them two in one object as an argument is any better?

I did as you said, but do you think wrapping them two in one object as an argument is any better?
neb-b (Migrated from github.com) reviewed 2019-05-20 19:31:23 +02:00
neb-b (Migrated from github.com) commented 2019-05-20 19:31:23 +02:00

Refs aren't being deprecated. What you added looks good.

Refs aren't being deprecated. What you added looks good.
neb-b (Migrated from github.com) reviewed 2019-05-20 19:31:35 +02:00
@ -68,10 +68,22 @@ export const doUpdatePublishForm = (publishFormValue: UpdatePublishFormData) =>
data: { ...publishFormValue },
neb-b (Migrated from github.com) commented 2019-05-20 19:31:35 +02:00

I think two arguments is fine.

I think two arguments is fine.
neb-b commented 2019-05-20 19:32:10 +02:00 (Migrated from github.com)

@zxawry Thank you for making the changes! I'll finish up the flow issues you couldn't fix then I'll merge this!

@zxawry Thank you for making the changes! I'll finish up the flow issues you couldn't fix then I'll merge this!
zxawry (Migrated from github.com) reviewed 2019-05-20 19:59:19 +02:00
zxawry (Migrated from github.com) commented 2019-05-20 19:59:19 +02:00

I mean string refs here

I mean string refs [here](https://reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs)
zxawry commented 2019-05-20 19:59:33 +02:00 (Migrated from github.com)

Thank you! there is this one little error I get on publish.js number [1] is incompatible with string [2] in property fee.amount d6c3f6d0a7/src/ui/redux/actions/publish.js (L136-L139) is it supposed to be like that?

Thank you! there is this one little error I get on [publish.js](https://github.com/lbryio/lbry-desktop/blob/master/src/ui/redux/actions/publish.js) `number [1] is incompatible with string [2] in property fee.amount` https://github.com/lbryio/lbry-desktop/blob/d6c3f6d0a7addbdfdebc742d0453feed51ff4fe5/src/ui/redux/actions/publish.js#L136-L139 is it supposed to be like that?
tzarebczan commented 2019-05-20 20:23:57 +02:00 (Migrated from github.com)

Yes, don't worry about that one...we'll need to clean the ones up related to publishing another time.

Yes, don't worry about that one...we'll need to clean the ones up related to publishing another time.
zxawry commented 2019-05-20 20:30:25 +02:00 (Migrated from github.com)

I was going to make another commit, thanks for informing me! I still have no idea about the underlying LBRY sdk.

I was going to make another commit, thanks for informing me! I still have no idea about the underlying LBRY sdk.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#2492
No description provided.