Add option to abandon claim when deleting published file #306
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#306
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "abandon-claim-on-delete"
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?
Just a quick idea. I got sick of constantly having to abandon my claims on the cli while testing publishing refactoring.
Great stuff, this was on the punch list to add abandoning claims. I'd be happy to merge this as-is, though I also think it'd be good to separate this from deletion.
Or maybe this action isn't deletion at all? Maybe inside of the publish area the action should be called unpublish, with the main prompt being to abandon the claim. Deleting could be a sub-option inside of that.
Either way, I like it, but may try to tweak the UX a bit before merging. If you want to try it yourself, I won't be coming back for 3-4+ hours.
Maybe we should add this in the published files section as well as where it is in this PR? If someone deletes a file right now then it's not going to show up in published area anymore so there will be no way to abandon the claim. At least I think that's the case.
Part of what I'm saying is that "delete" is a poor option for content you've published, because it's unclear what it does. Deleting the file does nothing if it doesn't remove the claim and the content is rehosted, but to a user it feels like the content is gone.
Instead, delete probably shouldn't even be an option for published content. It should be labeled "Unpublish", with the primary action being to revoke the claim, and deleting the file a secondary additional option.
I'd like to do more with this, but it's an improvement as-is for sure, so I merged it.
I did switch all modal components to start with
Modal
(e.g.ModalUpgrade
rather than vice versa) and split this modal out ofFileActions
.I'd also like to start having each modal represented by a constant, I started this in
constants/modal_types
, but let me know if you think another approach is better.I hate magic strings!