Support drag-and-drop file publishing #4170
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#4170
Loading…
Reference in a new issue
No description provided.
Delete branch "drag-drop"
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
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
What is the current behavior?
What is the new behavior?
Todo
fileDrop
complexity.@seanyesmunt What do you think? https://github.com/lbryio/lbry-redux/pull/314
Still work in progress, here is a preview:
I think is ready for a review, before I continue to work on this.
Great. Will give this a test/review today!
This is awesome. It seems to work good and feels super smooth. I just have one comment on the radio styles
@ -0,0 +62,4 @@
return (
<div className={'file-list'}>
<RadioGroup {...radio} aria-label="files">
I would like avoid creating another radio button style. Can you use the current radio buttons? Or update
<FormField type="radio" />
(And maybe creating<FormFieldRadioGroup />
)Please wrap this in
__()
@ -0,0 +51,4 @@
}, [history]);
// Delay hide and navigation for a smooth transition
const hideDropArea = () => {
This feels really smooth 👍
@ -0,0 +62,4 @@
return (
<div className={'file-list'}>
<RadioGroup {...radio} aria-label="files">
Where are the radio styles? I can't find it
@ -0,0 +62,4 @@
return (
<div className={'file-list'}>
<RadioGroup {...radio} aria-label="files">
I can't use the current
FormField
component withreakit
, but now it has the same stylesok, done.
Should I limit the drop area to the card ?
Right now it works if you drop on any place in the window. Maybe change the message to "Drop anywhere..." ?
I didn't like the new look when dropping one file and also it didn't make sense to have a radio input just for one choice, so I made it more simple. let me know what you think.
@btzr-io I just tried running this branch again and nothing happened when I dropped a file on the page.
I think dropping should work for the entire window, not just the card.
@seanyesmunt is working for me, what file did you use ? any errors ? 🙃
Can you try a different file ?
Also keep in mind folders are not scanned recursively.
Sorry for the wait. Busy working with paid content on lbry.tv.
Testing again
Hm it is working for me now! I like the simplified look. Will give this another code review after I merge the big paid content PR!