-
Notifications
You must be signed in to change notification settings - Fork 41
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
Explorer: Improve Cardano Transaction Certification & Certificate Chain Validation UI #1569
Conversation
d8e6f65
to
2a36928
Compare
9989c24
to
b25a3b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
...il-explorer/src/components/CertifyCardanoTransactionsModal/TransactionCertificationResult.js
Outdated
Show resolved
Hide resolved
A regression from #fe5e7edd74
If the target aggregator did not have the capabilities the ctx tab was still the tab container active key but it was removed from the DOM, leaving an empty space.
To generate the icons font [fantasticon](https://github.com/tancredi/fantasticon) is used to generate a woff/woff2 fonts and a css file that import the font and allow to use the icons using css classes (`mi` for `mithril-icons`).
To enhance the code readability.
This give a cleaner hierarchy: the parent component now own those params and the verifier only exploit them. Before if the parent wanted to manipulate the certificate it would have to get it from the verifier using a event callback. This was unecessary cumbersome and also lead to the creation of more wasm MithrilClient that necessary.
Now the error will be shown in the UI and it's propagated via an event to allow parent component to handle them too.
The raised event is then transmit to the parent via a callback.
The three buttons where about the same epoch, one is about the current cardano epoch and the two other are related to the current epoch of the registration page.
Even for not certified transactions as their is a chance that mithril still have to take them in accound and CExplorer already know them.
This is allowed by configuring them in the `jsconfig.json` file.
Before an empty text was display.
New readme text wasn't updated to last class name & simplify & remove dead code in `CertificateVerifier`.
b25a3b4
to
343aae7
Compare
A proof could be invalid without raising a rust error, this case was not handled
As one must be provided when adding a custom svg icons.
343aae7
to
36b547d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
de8b026
to
2041ff9
Compare
2041ff9
to
e591c7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing to say. Good job.
Content
This PR includes several improvements to the explorer:
Certificate Chain Validation Modal:
Validated certificated are now displayed in a table.
Improve error handling: If the validation failed from a wasm error the error is now displayed bellow the table.
![image (1)](https://private-user-images.githubusercontent.com/790521/312800631-a3ed5e7b-51ec-494a-b25a-3e1f95f40b3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTIyNTgsIm5iZiI6MTczOTY5MTk1OCwicGF0aCI6Ii83OTA1MjEvMzEyODAwNjMxLWEzZWQ1ZTdiLTUxZWMtNDk0YS1iMjVhLTNlMWY5NWY0MGIzYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwNzQ1NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNTZhZjA4MmU0ZmJhZmRhMmU1MmVkYjYwNjhjZWM5ZGFmNmU4MTIzOTU3MzQzNGFiNTFjYThkOGJiYmE2YTg0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yBrO1mjrztxuifWaMeN8cddbprf0VsKZOvv548GMb5k)
It now take it's
MithrilClient
and certificate as parameter, allowing parents to use them more easily and avoiding duplicate client instantiation.It have a option to transform the certificate hash into links that, when clicked, raise a
onCertificateClick
event that you can wired to.Cardano Transaction Certification:
Signer registration page: the layout and names of the "epoch" navigation buttons have been redesigned to specify explicitly the two kinds of epoch they apply to (registration & current cardano).
![image](https://private-user-images.githubusercontent.com/790521/312795862-d1676d30-23a0-4530-8100-d6d650d6e952.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTIyNTgsIm5iZiI6MTczOTY5MTk1OCwicGF0aCI6Ii83OTA1MjEvMzEyNzk1ODYyLWQxNjc2ZDMwLTIzYTAtNDUzMC04MTAwLWQ2ZDY1MGQ2ZTk1Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwNzQ1NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYTA5NWJjNTkxNDgzZGRlYjcwZDc1NzM0ZGUxOTBjZTFjMjIzZDdiMDZhOWFiM2UxMjQ5MGRiOWVlZWI1OWMwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.vA4SZHbSL7rIA9PBzoRxv4ckS92k1-Azfjbo2CGsjsg)
General:
jsconfig.json
for the mapping).Cardano Transactions
tab is selected and the use switch to another aggregator that doesn't support them. In that case the selected tab will switch toCardano Db
.Demo
Showing most changes on the Cardano Transaction Certification and the Certicate Chain Validation:
Screencast.from.14-03-2024.10.12.15.webm
Pre-submit checklist
Issue(s)
Closes #1554