fix(web): fix #1055 health score formula explanation and grade thresholds - #1166
Merged
vjuliaife merged 1 commit intoAug 27, 2026
Merged
Conversation
…de thresholds
|
@Owolabenjade 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.
Close issue #1055
This PR addresses issue #1055 where the
HealthScorecomponent (apps/web/components/HealthScore.tsx) displayed a numeric account health score (0–100) and grade badge (Excellent, Good, Fair, Poor) computed from a 70% coverage ratio and 30% reserve ratio weighting, but provided no explanation of the formula or grade thresholds in the UI.Prior to this fix, importers viewing their Account Health Score could see their numerical score and grade, but could not determine how the score was calculated or what actions (e.g. adding collateral vs. boosting reserve) would improve their account standing.
Solution & Flow
apps/web/components/HealthScore.tsxto add'use client';and a local state (showInfo) for toggling an inline popover panel.ⓘ) affordance next to the "Account Health Score" header with accessible label attributes (aria-label).Collateral ÷ Required, capped at 100%) + 30% Reserve Ratio (Reserve ÷ Collateral, capped at 100%).lines 12–37) without modification.Value & Impact
This change resolves importer ambiguity regarding Account Health Score computation for issue #1055, providing instant inline guidance without requiring page navigation or altering core business logic.
Changed
apps/web/components/HealthScore.tsx: Added an info button affordance (ⓘ) and interactive popover panel explaining the 70/30 weighted formula and grade thresholds (Excellent ≥80, Good ≥60, Fair ≥40, Poor <40) without modifying score calculation math, fixing Account Health Score gives no explanation of how the score or grade is derived #1055.Testing
The component changes were validated with the following static verification checks: