Skip to content

Conversation

@adamPetho
Copy link
Contributor

@adamPetho adamPetho commented Feb 11, 2025

Fixes: #13434

@adamPetho adamPetho marked this pull request as draft February 11, 2025 00:29
@MarnixCroes
Copy link
Collaborator

MarnixCroes commented Feb 11, 2025

feel free to suggest ideas how to make it prettier, where to place it etc...

maybe just an icon? without text.
the copy icon.
might fit nicely to the other two icons

which then has a tooltip Copy transaction Hex

@adamPetho adamPetho marked this pull request as ready for review February 11, 2025 16:38
Copy link
Collaborator

@turbolay turbolay left a comment

Choose a reason for hiding this comment

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

Why are you rebuilding the transaction?

private async Task CopyTxHexAsync()
{
    if(_transaction is null)
    {
        return;
    }

    var hex = _transaction.Transaction.Transaction.ToHex();
    await UiContext.Clipboard.SetTextAsync(hex);
}

Also the button is slightly misaligned

CleanShot 2025-02-11 at 10 50 28@2x

I also don't fancy so much the placement there. It's ok but.. meh. It would be much better next to the Confirm button. I now that it's not easy to do because the ContentArea doesn't cover this footer. We could merge with the button there and change later on

@MarnixCroes
Copy link
Collaborator

I also don't fancy so much the placement there. It's ok but.. meh. It would be much better next to the Confirm button

Maybe make the confirm button a subaction button?

@turbolay
Copy link
Collaborator

@MarnixCroes #13509

@yahiheb
Copy link
Collaborator

yahiheb commented Feb 12, 2025

I also don't fancy so much the placement there.

I don't like it either.

How about adding Transaction Hex as a text under the Fee Rate and once you hover over it you get the copy icon?

@turbolay
Copy link
Collaborator

turbolay commented Feb 12, 2025

How about adding Transaction Hex as a text under the Fee Rate and once you hover over it you get the copy icon?

Similar to the Transaction Details page then.
Bad solution as well, clutters the screen with info useful for less than 1% of users

Honestly, on the left of the Confirm button seems like the only good solution

@turbolay
Copy link
Collaborator

This feature also creates issues that are mentioned here: #13468 (comment)

This PR ignores them. It is bad because when broadcasting yourself you will lose info about Labels

@adamPetho
Copy link
Contributor Author

I also don't fancy so much the placement there. It's ok but.. meh. It would be much better next to the Confirm button. I now that it's not easy to do because the ContentArea doesn't cover this footer. We could merge with the button there and change later on

What do you mean by "merge with the button there"?

This feature also creates issues that are mentioned here: #13468 (comment)

This PR ignores them. It is bad because when broadcasting yourself you will lose info about Labels

Ah, I didn't know you already had a debate on this. Then, I guess this feature is stuck until that is solved or we decide to completely ignore it.

@yahiheb
Copy link
Collaborator

yahiheb commented Feb 12, 2025

Bad solution as well, clutters the screen with info useful for less than 1% of users

I agree, and for the same reason it's bad to have a button on the left of the Confirm button that will be used only by 1% of users.

If the use case is to use this to build a transaction but not broadcast it, then a better solution is to have it as an advanced feature by adding a separate button Build Transaction to the ... menu, with an almost identical send workflow with no broadcasting.

@adamPetho adamPetho marked this pull request as draft April 17, 2025 12:45
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.

Allow users to copy the transaction hex before broadcast

4 participants