allow sending directly to a channel or content address #5990

Merged
saltrafael merged 11 commits from master2 into master 2021-05-20 21:30:41 +02:00
saltrafael commented 2021-05-01 16:15:21 +02:00 (Migrated from github.com)

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes

Issue Number: #5985

What is the current behavior?

Just wallet address:

What is the new behavior?

Wallet address + channel or content handle:

## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> Please check all that apply to this PR using "x": - [X] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below ## PR Type What kind of change does this PR introduce? - [ ] Bugfix - [X] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes Issue Number: #5985 ## What is the current behavior? Just wallet address: ![](https://i.postimg.cc/t4L97qdx/image.png) ## What is the new behavior? Wallet address + channel or content handle: ![](https://i.postimg.cc/mk2sKt40/image.png) ![](https://i.postimg.cc/SQDqC77q/image.png) ![](https://i.postimg.cc/52FVcccN/image.png) ![](https://i.postimg.cc/4dFPf8q4/image.png) ![](https://i.postimg.cc/DyG9Ns44/image.png)
jessopb (Migrated from github.com) reviewed 2021-05-01 16:15:21 +02:00
jessopb commented 2021-05-04 17:21:51 +02:00 (Migrated from github.com)

Great feature!
Check out the tip modal and maybe use two tabs: [ address ] [ lbry:// ] for the different modes,
Then it would be good to show a preview of the selected if you're in url mode as shown here:
https://odysee.com/$/repost?to=jsojsjjjjjj
Check out how this was done in https://github.com/lbryio/lbry-desktop/blob/master/ui/page/repost/view.jsx

If you're feeling awesome, make pull down autocomplete suggestions :)

Great feature! Check out the tip modal and maybe use two tabs: [ address ] [ lbry:// ] for the different modes, Then it would be good to show a preview of the selected if you're in url mode as shown here: https://odysee.com/$/repost?to=jsojsjjjjjj Check out how this was done in https://github.com/lbryio/lbry-desktop/blob/master/ui/page/repost/view.jsx If you're feeling awesome, make pull down autocomplete suggestions :)
saltrafael commented 2021-05-05 00:05:47 +02:00 (Migrated from github.com)

@jessopb thanks for the feedback! something like this?


@jessopb thanks for the feedback! something like this? ![](https://i.postimg.cc/mZwWRWVb/image.png) ![](https://i.postimg.cc/KYnsNtHZ/image.png) ![](https://i.postimg.cc/d3XBv0xH/image.png)
jessopb commented 2021-05-05 15:54:50 +02:00 (Migrated from github.com)

Great job - I think it looks a bit better with ClaimPreview type="small" in this case - it hides the tags and such. Will take a look at actual code today.

Great job - I think it looks a bit better with ClaimPreview type="small" in this case - it hides the tags and such. Will take a look at actual code today.
saltrafael commented 2021-05-05 21:54:39 +02:00 (Migrated from github.com)

yeah it does look better

yeah it does look better ![](https://i.postimg.cc/tJhDknTw/image.png)
jessopb commented 2021-05-05 22:10:08 +02:00 (Migrated from github.com)

Nice.

  • it doesn't currently work yet - send stays grayed out.
  • It doesn't clear when switching between modes.
  • Might have to change the preview onClick so it doesn't navigate.
  • Tab buttons should be in card body rather than the title area (I know the tip modal isn't that way yet).
  • i found the input a bit buggy, either refusing to let me edit, etc
  • no error info is being shown during entry This isn't your fault, I think.
  • feels weird to fill in part of the field, and click send, so the field is more of a search field than the actual entry.
    -- maybe put a search field on top, the preview in the middle, and the amount and actual recipient url at the bottom?
Nice. - it doesn't currently work yet - send stays grayed out. - It doesn't clear when switching between modes. - Might have to change the preview onClick so it doesn't navigate. - Tab buttons should be in card body rather than the title area (I know the tip modal isn't that way yet). - i found the input a bit buggy, either refusing to let me edit, etc - <s>no error info is being shown during entry</s> This isn't your fault, I think. - feels weird to fill in part of the field, and click send, so the field is more of a search field than the actual entry. -- maybe put a search field on top, the preview in the middle, and the amount and actual recipient url at the bottom?
saltrafael commented 2021-05-06 00:07:33 +02:00 (Migrated from github.com)

Check it out now:

Also how about this "from" section on confirmation?

image

Check it out now: ![](https://i.postimg.cc/9F6HW0rk/image.png) ![](https://i.postimg.cc/52dThrrd/image.png) Also how about this "from" section on confirmation? ![image](https://user-images.githubusercontent.com/76502841/117218125-f501a900-add8-11eb-8938-2a9945a5e73a.png)
jessopb commented 2021-05-06 21:52:32 +02:00 (Migrated from github.com)

I think I would use claim preview type small in the confirm too.
And the placeholder text is wrong.
Anything else you think has bad visual hierarchy or spacing, but looks pretty good.

I think I would use claim preview type small in the confirm too. And the placeholder text is wrong. Anything else you think has bad visual hierarchy or spacing, but looks pretty good.
saltrafael commented 2021-05-07 00:43:17 +02:00 (Migrated from github.com)

@jessopb What about this?

Anything else you think has bad visual hierarchy or spacing, but looks pretty good.

I didn't understand this part

@jessopb What about this? ![](https://i.postimg.cc/4ykKYfrw/image.png) > Anything else you think has bad visual hierarchy or spacing, but looks pretty good. I didn't understand this part
jessopb commented 2021-05-10 15:38:09 +02:00 (Migrated from github.com)

Thanks, I gave it a try.
I think if I type one thing, and an amount, and it shows me the preview I want, it should be ready to send.
It should probably just be
Amount:
Recipient Search:

Then if there's a claim there, it fills the url in the background and enables send.

Thanks, I gave it a try. I think if I type one thing, and an amount, and it shows me the preview I want, it should be ready to send. It should probably just be Amount: Recipient Search: Then if there's a claim there, it fills the url in the background and enables send.
saltrafael commented 2021-05-11 18:25:37 +02:00 (Migrated from github.com)

@jessopb How about this?

Nothing:

Not found:

Found:

(Also on the last commit I found out the code currently isn't filtering for amounts greater than the current balance, it allows you to send and only give an error after the attempt)

@jessopb How about this? Nothing: ![](https://i.postimg.cc/NjGmTR7b/image.png) Not found: ![](https://i.postimg.cc/8P4r1jQv/image.png) Found: ![](https://i.postimg.cc/K8Y34xxH/image.png) ![](https://i.postimg.cc/vmBKPgMt/image.png) (Also on the last commit I found out the code currently isn't filtering for amounts greater than the current balance, it allows you to send and only give an error after the attempt)
tzarebczan (Migrated from github.com) reviewed 2021-05-18 07:49:57 +02:00
@ -10,0 +99,4 @@
setContentUri(searchContent);
} else if (isChannel && channelName && isNameValid(channelName)) {
// contentNameValid = true;
setContentUri(searchContent);
tzarebczan (Migrated from github.com) commented 2021-05-18 07:49:47 +02:00

are you sure these two can be removed?

are you sure these two can be removed?
saltrafael (Migrated from github.com) reviewed 2021-05-18 14:27:57 +02:00
@ -10,0 +99,4 @@
setContentUri(searchContent);
} else if (isChannel && channelName && isNameValid(channelName)) {
// contentNameValid = true;
setContentUri(searchContent);
saltrafael (Migrated from github.com) commented 2021-05-18 14:27:57 +02:00

thanks, it was an accident

thanks, it was an accident
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#5990
No description provided.