-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add create wallet drawer #316
Conversation
WalkthroughThe changes introduced in the mobile application enhance the wallet management functionality, particularly through the addition of a new modal for wallet creation. The Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DeveloperConsoleScreen
participant AddWalletModal
User->>DeveloperConsoleScreen: Press "Add Wallet" Button
DeveloperConsoleScreen->>AddWalletModal: Open Modal
AddWalletModal-->>User: Display Wallet Options
User->>AddWalletModal: Select "Create New Wallet"
AddWalletModal->>DeveloperConsoleScreen: Create Wallet Process
DeveloperConsoleScreen-->>User: Wallet Created Successfully
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Outside diff range, codebase verification and nitpick comments (1)
apps/mobile/src/components/bottom-sheet-modal.tsx (1)
Line range hint
109-112
:
Reminder: Add tests for the new animated position functionality.Ensure that tests are added to cover the new animated position functionality.
Do you want me to generate the unit testing code or open a GitHub issue to track this task?
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (10)
apps/mobile/ios/Podfile.lock
is excluded by!**/*.lock
apps/mobile/src/assets/arrow-rotate-clockwise.svg
is excluded by!**/*.svg
apps/mobile/src/assets/color-swatch.svg
is excluded by!**/*.svg
apps/mobile/src/assets/create-wallet-image.png
is excluded by!**/*.png
apps/mobile/src/assets/dot-grid-horizontal.svg
is excluded by!**/*.svg
apps/mobile/src/assets/envelope.svg
is excluded by!**/*.svg
apps/mobile/src/assets/eye.svg
is excluded by!**/*.svg
apps/mobile/src/assets/nfc.svg
is excluded by!**/*.svg
apps/mobile/src/assets/plus-icon.svg
is excluded by!**/*.svg
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
Files selected for processing (3)
- apps/mobile/src/app/wallet/developer-console.tsx (4 hunks)
- apps/mobile/src/components/add-wallet/add-wallet-modal.tsx (1 hunks)
- apps/mobile/src/components/bottom-sheet-modal.tsx (3 hunks)
Additional comments not posted (9)
apps/mobile/src/app/wallet/developer-console.tsx (3)
1-10
: LGTM! Import statements are appropriate.The new imports are necessary for the modal functionality.
20-21
: LGTM! New modal reference is correctly implemented.The
useRef
hook is used appropriately to create a reference for the modal.
39-42
: LGTM! Modal trigger is correctly implemented.The
PressableListItem
correctly triggers the modal when pressed.apps/mobile/src/components/bottom-sheet-modal.tsx (3)
5-9
: LGTM! Import statements are appropriate.The new imports are necessary for the animated position functionality.
74-74
: LGTM! Constant declaration is appropriate.The
CLOSED_ANIMATED_POSITION
constant is correctly defined and used.
76-102
: LGTM! Component update is correctly implemented.The
Modal
component is correctly updated to accept and use theanimatedPosition
prop.apps/mobile/src/components/add-wallet/add-wallet-modal.tsx (3)
1-23
: LGTM! Import statements are appropriate.The new imports are necessary for the modal functionality.
25-65
: LGTM! Component implementation is correct.The
AddWalletListItem
component is well-structured and correctly handles optional props.
92-166
: LGTM! Component implementation is correct.The
AddWalletModal
component is well-structured and correctly uses theModal
component. The state and animated styles are appropriately managed.
@@ -59,6 +66,7 @@ export default function DeveloperConsoleScreen() { | |||
setGetAddressesMessage(null); | |||
}} | |||
/> | |||
<AddWalletModal addWalletModalRef={addWalletModalRef} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder: Add tests for the new modal functionality.
Ensure that tests are added to cover the new modal functionality.
Do you want me to generate the unit testing code or open a GitHub issue to track this task?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @edgarkhanzadian
Only improvement I'd suggestion would be to compose this UI of two component: one to handle business logic and content, another to encapsulate all the animation logic (of which there is lots).
@kyranjamie good point! I'll separate it when adding feature logic here, animations get out of hand pretty quickly |
createWallet.mov
Summary by CodeRabbit
New Features
AddWalletModal
component for a visually appealing wallet management interface, featuring options to create, restore, and view wallet functionalities.Improvements
Modal
component with support for animated positioning and improved styling for a cohesive design.Bug Fixes