-
Notifications
You must be signed in to change notification settings - Fork 198
fix: multiple mobile bugs in mobile wallet dialog #10140
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
Conversation
📝 WalkthroughWalkthroughThe changes introduce a new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DashboardHeader
participant MobileWalletDialog
participant CreateWalletRouter
participant CreateWalletRoutes
User->>DashboardHeader: Click user header (mobile)
DashboardHeader->>MobileWalletDialog: open modal via useModal
MobileWalletDialog->>CreateWalletRouter: pass defaultRoute
CreateWalletRouter->>CreateWalletRoutes: pass onRedirectToDefaultRoute callback
CreateWalletRoutes->>CreateWallet: handleRedirectToHome = onRedirectToDefaultRoute
CreateWallet-->>CreateWalletRoutes: User triggers redirect
CreateWalletRoutes-->>CreateWalletRouter: call onRedirectToDefaultRoute
CreateWalletRouter-->>MobileWalletDialog: navigate to defaultRoute
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15 minutes Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learningssrc/pages/History/History.tsx (1)Learnt from: NeOMakinG ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (4)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
premiumjibles
left a comment
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.
Personally happy with this behaviour and will also make a different task i'm working on easier to do with removing background scrolling with the drawers open on mobile 😁 .
63b961f6-5ca4-45ef-b7a1-74d4a6d6b72b.mp4
Do just want to flag @0xApotheosis to make sure you're cool with this. This change results in the manage accounts modal no longer going back to the saved wallets menu when you close it. You mentioned wanting to maintain this behaviour the other day.
|
Hmm, good callout @premiumjibles. I think this behaviour is ok if we can add a back button to the "Manage Accounts" action sheet that goes back to the saved wallets menu? |
dfbc255 to
f135dd7
Compare
|
@0xApotheosis @premiumjibles I have updated the PR so it adds a back button to the management dialog if it comes from the mobile dialog, for this I had to change the dialog and move it to the global modal context, so we can open it from anywhere in the app I also fixed a few behavior like closing the dialog on disconnect, and adapted all handlers so it works with the new modal handling, I did more tests but I would appreciate some more eyes again even if it's approved already as I changed a lot of things after the first review pass |
9f2fa23 to
e592d1c
Compare
premiumjibles
left a comment
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 nice one @NeOMakinG 🤌
Description
Issue (if applicable)
Found why trying to reproduce #10102 which I couldn't reproduce
Risk
Low
Testing
Engineering
Operations
Screenshots (if applicable)
Mobile app bugs
https://jam.dev/c/72337213-7533-4109-9584-a7c60222853a
responsive bugs
https://jam.dev/c/72337213-7533-4109-9584-a7c60222853a
Desktop:

Mobile dialog changes test:
https://jam.dev/c/06d776d7-a8b5-48d5-8754-d6c0c0865c85
Summary by CodeRabbit
New Features
Enhancements
Bug Fixes