Repository navigation
Conversation
…osave, and fee summary (StayLitCodes#837)
|
@dev-RAM11 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! 🚀 |
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 #837
Summary
Enhances the multi-step escrow creation wizard (CreateEscrowWizard) with complete per-step Zod schema validation, local storage draft autosave/restoration, and a pre-signing fee & settlement summary on the review step.
Key Changes
Per-Step Validation: Enforced Zod validation across all wizard steps (Basic Info, Parties, Terms, Milestones, Conditions) before advancing, including checking that milestone totals do not exceed the escrow principal.
Draft Autosave & Restoration: Added saveEscrowDraft, loadEscrowDraft, and clearEscrowDraft utilities persisting wizard progress and form state to localStorage (vaultix:escrow-creation-draft), restoring drafts on load with a "Clear Draft" option, and clearing automatically upon confirmed submission.
Review Step Fee Breakdown: Added calculateEscrowFees and updated ReviewStep to display the escrow principal, platform fee (0.50%), estimated Stellar network fee (0.00001 XLM), and total estimated cost before wallet signing.
Tests & Docs: Added unit and component tests in escrow-schema.test.ts and CreateEscrowWizard.test.tsx and documented the behavior in apps/frontend/README.md.