-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Popover Fixes #30882
Popover Fixes #30882
Conversation
@Santhosh-Sellavel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@neonbhai Can you complete the author checklist & fix the lint issue? |
@Santhosh-Sellavel on it |
Ready for review @Santhosh-Sellavel! |
Reviewer Checklist
Screenshots/Videos |
🔴 🔴 Bug: Delete operation is not working Screen.Recording.2023-11-14.at.10.17.23.PM.mov |
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.
Fix this #30882 (comment)
working on it! |
We change showConfirmDeleteContent to showConfirmDeleteModal to better reflect its purpose
Any update? |
bump @neonbhai |
@Santhosh-Sellavel, updating this quickly |
This reverts commit d7ead9f.
This moves ConfirmModal as child of Popover while preserving its visibility logic
All test videos updated! |
Working on an improvement for this PR, please wait on the review! |
Still working on this, I have run into a weird behavior I was working on an improvement for the code, to separate the closing logic for both the modals. Since before they were coupled and two separate states were being handled by a single function. This works well for all platforms except ios native. On ios native, this modal even with Screencast:a56ad237-e523-4939-a173-028124273cce.mp4I've been spending all my time on this to figure out why this behavior occurs and if is has something to do with handing of modals in ios native Asking on slack here for help from the community to see anyone has encountered this. |
As suggested in Slack, The issue was being caused by the two modals opening successively. The root cause seems to be in https://github.com/react-native-modal/react-native-modal One way around this, is to use But the delay is noticeable. To make it snappier, we can use a variable to hide the first modal, and then a function to close both the ConfirmModal and Popover visible states. Pushing changes for this today. |
We use a check to hide the delete menu View when the Confirm Modal is visible.
@neonbhai Will this be ready for review tomorrow? |
Yes, just updating tests on android! The build takes ages 🥲 All other platforms tested! |
All platforms tested! |
Ready for review @Santhosh-Sellavel |
Thanks will review it tomorrow, meanwhile please test carefully and ensure there are no regressions. Resolve merge conflicts if any thanks! |
This removes the redundant call to hide DefaultDeleteMenu from Confirm Modal's onModalHide prop.
Can you fix lint please? |
lint error was in different part of the codebase coming from the updated Typescript Checks. Fixed by merging! |
Can we merge this one @jasperhuangg ? |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 1.4.13-0 🚀
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 1.4.13-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.13-8 🚀
|
Details
We now confirm bank account deletion using a center alert modal style popover (this is bottom on mobile).
Fixed Issues
$ #29729
PROPOSAL: #29729 (comment)
Tests
Prerequisite: This feature is under the
canUseWallets
beta. Return true here to enable beta features.Prerequisite: A bank account should be added to the user account.
Steps to add a bank Account:
Make sure you are using the staging server (Go to Preferences -> Use Staging Server)
- Username: user_good
- Password: pass_good
- Mobile Code: credential_good
Save & Continue
Test Steps:
Offline tests
Same as Tests Step.
QA Steps
Same as Tests Step.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screencast.android.mov
Android: mWeb Chrome
mWeb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
safari.mov
MacOS: Chrome / Safari
Web.mov
MacOS: Desktop
desktop.mov