feat: implement contract error parsing and UI display (#082)#179
feat: implement contract error parsing and UI display (#082)#179Anuoluwapo25 wants to merge 2 commits intoGildado:mainfrom
Conversation
- Add parseContractError() utility that decodes Soroban invocation failures from XDR/error strings into structured ContractErrorResult with 20+ mapped codes, numeric ContractError(N) extraction, and heuristic token matching; unknown codes fall back to raw XDR display - Add CollapsibleContractErrorPanel component with error code badge, human-readable description, suggested action callout, and copy button for unknown XDR fallback - Add VestingEscrow page (/vesting) demonstrating contract error integration - Integrate ContractErrorPanel into PayrollScheduler and CrossAssetPayment, replacing generic toast-only errors with structured in-page diagnostics - Add 35 vitest integration tests covering all mapped codes, numeric codes, heuristic matching, unknown fallback, and resultXdr preservation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@Anuoluwapo25 Hi kindly run build to clear this error Run npm run lint
/home/runner/work/PayD/PayD/frontend/src/pages/CrossAssetPayment.tsx /home/runner/work/PayD/PayD/frontend/src/pages/RevenueSplitDashboard.tsx /home/runner/work/PayD/PayD/frontend/src/pages/TransactionHistory.tsx /home/runner/work/PayD/PayD/frontend/src/services/revenueSplit.ts ✖ 7 problems (1 error, 6 warnings) Error: Process completed with exit code 1. |
|
Okay
…On Thu, Feb 26, 2026 at 1:01 PM Wilfred ***@***.***> wrote:
*Wilfred007* left a comment (Gildado/PayD#179)
<#179 (comment)>
@Anuoluwapo25 <https://github.com/Anuoluwapo25> Hi kindly run build to
clear this error
Run npm run lint
***@***.*** lint
eslint .
/home/runner/work/PayD/PayD/frontend/src/pages/CrossAssetPayment.tsx
29:10 error 'contractErrorXdr' is assigned a value but never used
@typescript-eslint/no-unused-vars
/home/runner/work/PayD/PayD/frontend/src/pages/RevenueSplitDashboard.tsx
239:49 warning Do not use item index in the array as its key
react-x/no-array-index-key
269:44 warning Do not use item index in the array as its key
react-x/no-array-index-key
/home/runner/work/PayD/PayD/frontend/src/pages/TransactionHistory.tsx
32:19 warning Do not use item index in the array as its key
react-x/no-array-index-key
/home/runner/work/PayD/PayD/frontend/src/services/revenueSplit.ts
1:1 warning Unused eslint-disable directive (no problems were reported
from ***@***.***/no-unsafe-call')
1:1 warning Unused eslint-disable directive (no problems were reported
from ***@***.***/no-unsafe-member-access')
1:1 warning Unused eslint-disable directive (no problems were reported
from ***@***.***/no-unsafe-argument')
✖ 7 problems (1 error, 6 warnings)
0 errors and 3 warnings potentially fixable with the --fix option.
Error: Process completed with exit code 1.
—
Reply to this email directly, view it on GitHub
<#179 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A55OV7SINJV4VCV73ZWGKN34N3ODBAVCNFSM6AAAAACWAKGU3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSNRWGE4DAMRYGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
##Description
closes #155