Feature/stealth vault UI#78
Closed
boalambo wants to merge 4 commits into
Closed
Conversation
- Add floating help button in bottom-right corner - Implement help overlay with search and FAQ categories - Add 16 FAQ entries across 4 categories (Getting Started, Stellar Specifics, Privacy, Troubleshooting) - Implement context-awareness for Send/Receive pages - Add full accessibility support (focus trap, Esc to close, ARIA labels) - Content lives in src/help/faq.ts as typed array for easy translation Closes wraith-protocol#22
- Add /vault page with three sections: Create Deposit, Claim, Status - Implement deposit form with validation for recipient, amount, unlock ledger, refund window - Implement claim flow with sign-to-claim mechanism - Implement refund flow with button to claw back after refund window - Add status table with deposit ID, state (pending/claimed/refunded), and countdown - Add Playwright tests for deposit, claim, and refund flows - Add placeholder vault components for Solana, Horizen, and CKB - Update navigation to include Vault link Note: Contract integration blocked until stealth-vault contract ships
|
@boalambo is attempting to deploy a commit to the truthixify's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@boalambo 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.
Summary
Implements the stealth vault UI for time-locked deposits with three main flows: deposit creation, recipient claiming, and sender refunding. The UI includes form validation, status tracking with countdowns, and Playwright tests for all flows.
Changes
New /vault page with tabbed interface (Create Deposit, Claim, Status)
Deposit form with validation for:
Recipient meta-address (st:xlm: format)
Amount (XLM with 7 decimal precision)
Unlock ledger (positive integer)
Refund window (positive integer in ledgers)
Claim flow with sign-to-claim mechanism for recipients
Refund flow with button to claw back funds after refund window opens
Status table displaying:
Deposit ID, amount, unlock ledger, refund deadline
Real-time countdown to unlock and refund window
State indicators (pending/claimed/refunded)
Current ledger display
Playwright tests for deposit, claim, and refund flows
Placeholder components for Solana, Horizen, and CKB chains
Technical Notes
Uses mock data and simulated contract calls
Contract integration blocked until wraith-protocol/contracts#48 ships
TODO comments mark where to integrate actual stealth-vault contract
Follows existing codebase patterns (StellarSend, StellarReceive)
Acceptance Criteria
✅ Page implemented with 3 flows (deposit, claim, refund)
✅ Test merge blocked until stealth-vault contract ships
✅ Playwright tests for each flow
Files Added
Vault.tsx
StellarVault.tsx
StellarVaultDeposit.tsx
StellarVaultClaim.tsx
VaultStatusTable.tsx
SolanaVault.tsx
HorizenVault.tsx
CkbVault.tsx
vault-deposit.spec.ts
vault-claim.spec.ts
vault-refund.spec.ts
playwright.config.ts
Files Modified
App.tsx - Added vault route
Header.tsx - Added Vault navigation link
package.json - Added Playwright and test scripts
Closes #62