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

issue jarolrod openend this issue on September 24, 2021
  1. jarolrod commented at 6:41 am on September 24, 2021: 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.
  2. jarolrod added the label Bug on Sep 24, 2021
  3. jarolrod commented at 7:17 am on September 24, 2021: member
    Went ahead and pushed a commit to #430 that will fix this.
  4. hebasto commented at 9:52 am on September 29, 2021: member

    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

  5. hebasto closed this on Sep 29, 2021

  6. bitcoin-core locked this on Sep 29, 2022


jarolrod hebasto

Labels
Bug


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 03:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me