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

Separator can be omitted when adding third-party link actions to the transaction table #431

Closed
jarolrod opened this issue Sep 24, 2021 · 2 comments · Fixed by #430
Closed
Labels
Bug Something isn't working

Comments

@jarolrod
Copy link
Member

#4092 added the ability to add third-party links to block explorers and the functionality to show a selected translation in that block explorer. As stated in a review in that PR, it is important that we separate these third-party links from all of the other context-menu actions.

"Nit: please add a menu separator between the 'normal' actions and the 'third party' actions."

Since the merge of that PR, there has been a bug where it's possible that this separator does not get added, and the third-party link actions merge in with our "normal" actions.

Because the addition of the separator is conditional on being at 0, if the first string passed is empty; then the separator will never get added. Now that we've iterated past 0, any subsequent actions will get merged in with our normal actions instead of being visually separated into its distinct section.

To Replicate:

  1. Pass in arguments to the Options->Display->Third party transaction URLs menu setting that would result in the first string being empty. Example: | | https://mempool.space/tx/%s | https://blockstream.info/tx/%s.
  2. Restart, navigate to Transaction window and right-click on a transaction.
  3. Notice that any third-party links you had passed are now actions that have merged in with "normal" actions.
@jarolrod
Copy link
Member Author

Went ahead and pushed a commit to #430 that will fix this.

@hebasto
Copy link
Member

hebasto commented Sep 29, 2021

Since the merge of that PR, there has been a bug where it's possible that this separator does not get added, and the third-party link actions merge in with our "normal" actions.

Because the addition of the separator is conditional on being at 0, if the first string passed is empty; then the separator will never get added. Now that we've iterated past 0, any subsequent actions will get merged in with our normal actions instead of being visually separated into its distinct section.

I can reproduce it:

Screenshot from 2021-09-29 12-51-36

@bitcoin-core bitcoin-core locked as resolved and limited conversation to collaborators Sep 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants