-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: quick freeze/unfreeze UTXOs on send page #771
feat: quick freeze/unfreeze UTXOs on send page #771
Conversation
Fixing one thing ended up causing a bit of a ruckus elsewhere. So it took a while to sort all of them 😂. |
@editwentyone Can you please take a while and assist me on what should be the deposit color? In our meet @theborakompanioni told that UTXOs with deposit tags should not have the mixed icon and green color, So, what should it be instead? Should it be red or something else? |
Please take a look and let me know if there's anything I need to add or fix. |
There is still an issue in the tooltip of the selected jar, tho. When the user clicks on the accordion (Sending Options), the scroll bar appears, and due to that, the tooltip gets displaced from its original position. I tried a few things, like forced rendering, but it did not work out as expected. It can be fixed by increasing the size of the sendForm, but if anyone knows how it can be fixed, please let me know. It will be a great help.🙏 |
Thanks for the feedback. @theborakompanioni really appreciates your efforts. Yeah, I tried using framework components, but in some cases it was not working as expected, so I wrote custom CSS. I will try to take a look one more time if I can somehow make it possible. I have a small doubt regarding the small issue (5th point): I cannot click the Jar anymore. The current flow is what Edi wanted (https://github.com/joinmarket-webui/jam/issues/765#issuecomment-2146943136),) so I implemented that. But if that's not what you want, could you please explain what the flow should be? |
If possible, take a look at other code parts that already use modals/dialogs/etc.
I guess you should still be able to select a jar by clicking the jar symbol which I think is in line with what @editwentyone suggested. Once it is selected, a second click opens the modal. Do you know what I mean? |
Okay, now I get it. Thank you for the explanation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add some padding at top / bottom
Reused 2 components
Please have a look 🙏 and let me know if there's anything I need to add or fix. |
we discussed making the list after 5 entries scrollable for the time being. after that maybe sorting by label and value, but that's out of scope |
I was trying to use this code for displaying UTXO list in FB creation modal as well. However the code breaks saying |
Hey @barrytra, Please hold off until tomorrow. I also need to reuse this component for #773, and I'm currently making some changes to it. I'll update you once I've resolved the issue. |
@barrytra Please have a look now. Additionally, I have also reused the component in this |
I went through the code and tried using it as a component in FB creation. |
I think you can still reuse the |
Okay!! I get that. I'll use |
Hey @barrytra I have re-tested the scenario you described, and it is working fine on my end. It seems like the issue might be due to an outdated build on your side.If you have a moment, could you please try pulling the latest changes from the PR and rebuilding the project? |
Co-authored-by: Thebora Kompanioni <[email protected]>
Hey @theborakompanioni I appreciate your thoughts. Here is what i think
Yes reloading takes a long time but |
Ah, yes, you are right.. only |
I have optimized the UTXO display update logic. The Please take a look and, if everything looks good, merge the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
…Utxos for a clean and stable approach
e819d81
Hey are there any resources that give an idea of all the tags available in Jam and their respective icons and colors? since it's not available in Figma Design.
Hey, I've implemented the logic so that if Jar A is selected and sweep is true, the sweep amount of Jar A is shown in the amount input field, and now if Jar B is selected, the amount field updates to show the sweep amount for Jar B. However, if you prefer resetting it we can do that too. |
Good point. I don't think there is.
Imho, resetting the value is preferable, as a user might be surprised otherwise and clicking the sweep button once is a reasonable trade-off. However, that can be done in a follow-up PR, as the changes are now consistent and additional adaptions can be discussed separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing 🚀
If it is okay for you, I will merge this now and make some small adaptions in a follow-up PR. Thank you for your work and your time @amitx13. I think users will highly appreciate that feature, as it was quite circuitous before.
Yea sure, feel free to merge the PR.
Thank you! I appreciate your kind words and the opportunity to contribute. Btw, just a heads-up on the bonus task (DirectSend RPC-Api): I reached out to some of my prev-mentors and mates, but none of them were able to identify why the OpenAPI Diff Action is throwing an error. However, I will keep looking into it and try to solve it. Let's see where it goes. |
subtask of #689
This PR fixes #765
Quick freeze/unfreeze UTXOs from selected source Jar.
Users will have the ability to select specific UTXOs when performing a direct-send or participating in a coin-join.