This document outlines the steps to resolve issue #202.
- Review the existing code related to the vault feature to understand its current implementation.
- Affected files:
app/(tabs)/vault.tsxsrc/components/VaultLockList.tsxsrc/store/vaultStore.tssrc/features/vault/
- Create a new mock data file for vault locks to be used for UI development, as per the issue's suggestion.
- This will likely be in
tests/fixtures/.
- Create a new screen file for the vault lock detail view. A suitable location would be
app/vault/[id].tsxto follow the existing routing patterns. - This screen will fetch the lock details based on the ID from the route.
- Create a reusable React component
VaultLockDetail.tsxinsrc/components/. - This component will display:
- Amount
- Created Date
- Unlock Date
- Status
- Withdrawal Eligibility
- Related Actions (e.g., a "Withdraw" button)
- The design should be consistent with the existing application's theme and components.
- Update the
VaultLockList.tsxcomponent to navigate to the new detail screen when a lock item is pressed. - Pass the lock ID as a parameter during navigation.
- Ensure the detail screen gracefully handles cases where lock data is missing or unavailable. This might involve showing a loading state or an error message.
- Review the implementation against the acceptance criteria in the issue.
- Ensure the new screen is well-designed and the code follows project conventions.