Skip to content
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

gui(spend): display warnings for draft PSBTs #940

Merged

Conversation

jp1ac4
Copy link
Collaborator

@jp1ac4 jp1ac4 commented Jan 29, 2024

This is to complete #811.

It displays any warnings generated by createspend on the draft PSBT view, which could currently be those from #905 and #873. Once the PSBT has been saved, these warnings will no longer be shown.

Below are some screenshots.

With a warning:
image

image

Without a warning:
image

image

@pythcoiner
Copy link
Collaborator

it looks to me:

  • if no warning, should display nothing
  • if some, should display at least a quick message (maybe more detailled on hover?).

@jp1ac4
Copy link
Collaborator Author

jp1ac4 commented Jan 29, 2024

As the warnings are only shown for the draft PSBT and disappear once saved, I've moved them outside of the overview card to give them a more temporary look. I've also removed the need to click on anything to see the warning(s). If there are no warnings, no message will be displayed.

if some, should display at least a quick message (maybe more detailled on hover?).

This isn't possible for now as the warning messages are those returned from createspend and the GUI is just displaying them as they are.

Here's a screenshot of the changes in 2466b93:

image

@jp1ac4 jp1ac4 force-pushed the gui-display-spend-creation-warnings branch from 2466b93 to 3efa761 Compare January 29, 2024 15:39
@jp1ac4 jp1ac4 marked this pull request as ready for review January 29, 2024 16:37
@darosior
Copy link
Member

darosior commented Feb 6, 2024

Screenshot looks good to me. This PR needs (trivial) rebase.

@darosior darosior requested a review from edouardparis February 6, 2024 11:03
@jp1ac4 jp1ac4 force-pushed the gui-display-spend-creation-warnings branch from 3efa761 to eb7cf5c Compare February 6, 2024 11:12
@jp1ac4
Copy link
Collaborator Author

jp1ac4 commented Feb 6, 2024

Rebased on master.

@darosior
Copy link
Member

cc @edouardparis

Copy link
Member

@edouardparis edouardparis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK eb7cf5c

@jp1ac4 jp1ac4 force-pushed the gui-display-spend-creation-warnings branch from eb7cf5c to 85f5a68 Compare February 27, 2024 14:56
@jp1ac4
Copy link
Collaborator Author

jp1ac4 commented Feb 27, 2024

Rebased on master to fix failing CI

Copy link
Member

@edouardparis edouardparis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 85f5a68

@edouardparis edouardparis merged commit 7801fc7 into wizardsardine:master Feb 27, 2024
18 checks passed
@jp1ac4 jp1ac4 deleted the gui-display-spend-creation-warnings branch February 28, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants