Thumbnail slider #2492
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#2492
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "thumbnail-slider"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR Checklist
PR Type
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 asfilePath
tooWhoa, 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.
I got so many filetype errors on commit!!! and I've just noticed someone is assigned to this issue already
No worries, unassigned him :)
Thank you for the PR! I'll test this out tomorrow.
Tested and this is working great! Just a few comments.
We don't need to mention spee.ch. Let's just say `"Pause at any time to select a thumbnail from your video."
This should be
<p className="card__subtitle">
This should be a
ref
instead of accessing the dom by ID.We can use the ref here too.
@ -68,10 +68,22 @@ export const doUpdatePublishForm = (publishFormValue: UpdatePublishFormData) =>
data: { ...publishFormValue },
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)
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.
@ -68,10 +68,22 @@ export const doUpdatePublishForm = (publishFormValue: UpdatePublishFormData) =>
data: { ...publishFormValue },
I did as you said, but do you think wrapping them two in one object as an argument is any better?
Refs aren't being deprecated. What you added looks good.
@ -68,10 +68,22 @@ export const doUpdatePublishForm = (publishFormValue: UpdatePublishFormData) =>
data: { ...publishFormValue },
I think two arguments is fine.
@zxawry Thank you for making the changes! I'll finish up the flow issues you couldn't fix then I'll merge this!
I mean string refs here
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?Yes, don't worry about that one...we'll need to clean the ones up related to publishing another time.
I was going to make another commit, thanks for informing me! I still have no idea about the underlying LBRY sdk.