test: add dark-mode contrast, mempool state, referral link, and contract error coverage#853
Merged
edehvictor merged 3 commits intoJun 26, 2026
Conversation
|
@ACOB-DEV is attempting to deploy a commit to the Edeh Victor's projects Team on Vercel. A member of the Team first needs to authorize it. |
…act error coverage
b03603c to
d862e50
Compare
…seUrl and add new helpers
|
@ACOB-DEV 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! 🚀 |
…ferralParam/normalizeReferralLink/isAttributionPreserved to follow in separate PR (closes edehvictor#826 edehvictor#831 edehvictor#838)
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.
Description
Adds test coverage and supporting logic modules for four open issues: dark-mode contrast regressions on charts and badges, mempool visualizer latency and stalled-state classification, referral dashboard canonical link attribution, and transaction failure modal mapping for new contract error codes.
Closes #826
Closes #827
Closes #831
Closes #838
Changes proposed
What were you told to do?
What did I do?
Dark-mode contrast checks (#838)
client/src/components/charts/darkModeContrast.tswith WCAG contrast ratio helpers and theme color tokens for chart legends and status badges (active / warning / error)darkModeContrast.test.tswith 17 tests covering ratio accuracy, AA large/normal thresholds, and regression guards for each badge toneMempool visualizer latency and stalled-state (#831)
client/src/components/mempool_graph/mempoolState.tswith pure logic:classifyTxState,getLatencyBucket,buildTxWithState,isStalledWithResubmission,partitionByStatemempoolState.test.tswith 20 tests covering healthy/delayed/stalled classification, latency buckets, threshold edge cases, resubmission tracking, and partition groupingReferral canonical link and attribution (#827)
client/src/features/referrals/referralLink.tswithbuildReferralLink,parseReferralParam,normalizeReferralLink,isAttributionPreservedreferralLink.test.tswith 18 tests covering canonical URL construction, encoding, extra-param stripping, hash stripping, and attribution preservation across copy/shareTransaction failure modal error codes (#826)
client/src/services/contractErrors.tsmapping 10 contract error codes (including new:STALE_PRICE_FEED,EPOCH_NOT_SETTLED,DUPLICATE_DEPOSIT) to UI-friendly title, description, and actionability; graceful degradation for unknown/future codescontractErrors.test.tswith 21 tests covering every known code, unknown/future code degradation, and schema integrity checksCheck List (Check all the applicable boxes)
Screenshots / Validation Evidence
All 76 new tests pass alongside the 19 pre-existing zap tests — 95 tests total, 0 failures.