fix(dashboard): fix dashboard usability issues and add gas scaling be… - #1169
Merged
vjuliaife merged 1 commit intoAug 27, 2026
Merged
Conversation
|
Deployment failed for project tariff-shield-web with the following error: Learn More: https://vercel.com/docs/concepts/projects/project-configuration |
|
@blessychoco Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1083
Health Score Clarity: Tied the
CoverageandReservepercentages directly to the0.7/0.3formula weights used to compute the score. We added text annotations showing the weights next to the ratios, and a visual contribution breakdown containing mini-bars and precise points.Closes #1085
Withdrawable Excess Context: Enhanced the fallback view when an importer has zero withdrawable excess. The new UI explains that zero excess is normal and expected when active collateral is at or below the required threshold, and directs the user to deposit additional collateral exceeding the required balance to enable withdrawals.
Closes #1086
Surety Admin Usability: Dynamic URL construction for the
/signuppage usingwindow.location.origin(safely handled client-side insideuseEffectto avoid Next.js hydration issues) is now displayed in the empty state of the surety portfolio dashboard, together with a functional copy button.Closes #1088$O(1)$ due to the decentralized persistent storage layout.
Contract Gas Cost Verification: Created a scaling benchmark test in
test.rsto evaluate the resource footprint of theregister_importercontract call under different pre-registered importer counts. The analysis shows that while host-side maps grow linear costs, the on-chain execution cost (footprint reads/writes and VM instructions) remains completely flatThese fixes resolve user confusion surrounding their health grade components and zero-excess statuses, provide surety admins with the tools they need to onboard new importers, and confirm that the smart contract scales efficiently under high volumes.
Changed
/signuplinks in the empty state view along with a copy-to-clipboard button.benchmark_register_importer_scalingscaling benchmark tracking CPU and memory at 100, 1000, and 10000 pre-populated importers.