Skip to content

feat(frontend): escrow creation wizard step validation, draft autosave, and fee review (#837) - #937

Open
dev-RAM11 wants to merge 1 commit into
StayLitCodes:mainfrom
dev-RAM11:feat/837-escrow-creation-wizard
Open

dev-RAM11 wants to merge 1 commit into
StayLitCodes:mainfrom
dev-RAM11:feat/837-escrow-creation-wizard

Conversation

@dev-RAM11

Copy link
Copy Markdown

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.

@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Frontend] Escrow creation wizard with step validation and draft autosave (200)

1 participant