XLabs / wormscan-ui

5 stars 3 forks source link

Enhancement Governor Page #626

Open SamantaCasal opened 3 months ago

SamantaCasal commented 3 months ago

Description

This task is to improve the current Governor View, including tooltips and renaming titles, as well as new functionality to order ASC/ DESC in each column, except in the column chain. These changes aim to give the user a better understanding of how is Governor, how is working, the current configurations, and the remaining daily limit as well.

Requirement

  1. Rename:
  1. Add Description
The Wormhole Governor is an added security measure that enhances stability and safety by setting thresholds for transaction sizes and volume.[ Learn more](https://github.com/wormhole-foundation/wormhole/blob/main/whitepapers/0007_governor.md)

Image

  1. Add Governor as a Section in the header

Image

  1. Add Tooltips

Next to the Column name we should add a tooltip. Figma: https://www.figma.com/file/kVuUyVjFFcRP55xHxHoKtH/WormholeScan?type=design&node-id=3440-37733&mode=dev The texts for each column are:

Single Transaction Limit:
"Transactions exceeding this single-transaction threshold activate a 24-hour finality delay before being signed by Wormhole Guardians. These transactions are not included in the total value counted towards the 24-hour rolling period limit."
Daily Limit:
"Maximum total value of transactions that can be signed without delay in any 24-hour rolling period. If this limit is exceeded, additional transactions are delayed until earlier transactions age beyond this 24-hour window, thereby freeing up bandwidth to process the delayed transactions."
Remaining Daily Limit:
"This shows the remaining value of transaction volume that can be processed without delay today. Once this limit is reached, further transactions will be delayed until sufficient limit is available within the 24-hour rolling window."
  1. Add Order ASC/DESC by Single Transaction Limit, Daily Limit, and Remaining Daily Limit.

  2. Add in GOOGLE ANALYTICS the new section to track how many users interact with the page.

SamantaCasal commented 3 months ago

Header ok! Image

Image

❗ Order by Daily Limit Fail:

https://github.com/XLabs/wormscan-ui/assets/69044575/3435a6d5-4236-4d9c-8ff0-80b179e67fac

❗ The same bug occurs with the Single Transaction Limit column & Chain Name

❗ In the Remaining column, ASC or DESC sorting does not work. Evidence:

https://github.com/XLabs/wormscan-ui/assets/69044575/1137e052-3d34-47a4-92c1-1de86cf0c973

✅ Texts are ok!