-
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
Fix wrong back navigation transition animation in transfer balance page #37998
Fix wrong back navigation transition animation in transfer balance page #37998
Conversation
@jayeshmangwani 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] |
> | ||
<HeaderWithBackButton | ||
title={translate('common.transferBalance')} | ||
shouldShowBackButton | ||
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_WALLET)} |
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.
The default props is Navigation.goBack
@@ -156,12 +156,10 @@ function TransferBalancePage({bankAccountList, fundList, userWallet, walletTrans | |||
titleKey="notFound.pageNotFound" | |||
subtitleKey="transferAmountPage.notHereSubTitle" | |||
linkKey="transferAmountPage.goToWallet" | |||
onLinkPress={() => Navigation.goBack(ROUTES.SETTINGS_WALLET)} |
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.
To cover the text button of the not found page case. The default props is Navigation.dismissModal
Screen.Recording.2024-03-09.at.01.43.41.mov
@bernhardoj @jayeshmangwani can you test deeplinking to the transfer balance page and then going back? |
Sure. Works fine on web Screen.Recording.2024-03-09.at.13.16.58.movScreen.Recording.2024-03-09.at.13.18.49.movBut it looks weird on the native Screen.Recording.2024-03-09.at.13.21.38.mov
It's unrelated to this PR though as this happens on other pages too that are 2 levels deep in the settings page. Screen.Recording.2024-03-09.at.13.25.36.mov |
@bernhardoj Can you please include the steps, how can you able to access transfer balance page ? |
tranfer-succesfull.mov@bernhardoj Need to fix transfer successful animation too |
@mountiny I am now able to test Transfer balance by setting the the wallet to GOLD in dev environment mWeb and web is working fine mWeb , webmweb-safari.movweb-deeplink.movBut getting an issue in the iOS native device when using the deeplink, when pressing the back icon it goes to the not found page and need to press back again to navigate back to the wallet page iOSiOS-deeplink.movAnd i think that issue is not related to this PR, if we revert this PR then also issue is happening in the main branch, and also I found similar issue with other pages, e.g. Status page Status Pagestatus-deeplink.mov |
I change the code to access the page 😅
Fixed. Screen.Recording.2024-03-09.at.22.26.12.mov |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb ChromemWeb-chrome.moviOS: NativeiOS.moviOS: mWeb SafarimWeb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
LGTM |
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.
Thanks
✋ 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/mountiny in version: 1.4.51-0 🚀
|
@bernhardoj "Transfer balance" button should be only visible when user has some balance in wallet, but Applause don't have it. |
@kavimuru I think you need a wallet with a Gold/Platinum tier. @jayeshmangwani can you share how do you change the wallet to Gold? |
@kavimuru @bernhardoj I was able to test by calling the Onyx mock data on wallet page locally, let me give you mock data and attaching a video how I had activated locally transfer balance, took reference from this PR Tests BankAccountList Mock dataOnyx.merge('bankAccountList', {
1: {
title: `Generic bank Checking`,
description: 'Account ending in 5087',
methodID: '1',
key: `bankAccount-1`,
accountType: 'bankAccount',
accountData: {
accountNumber: 'XXXXX5087',
additionalData: {
bankName: `Generic bank`,
},
state: 'OPEN',
type: 'PERSONAL',
},
isDefault: false,
},
2: {
title: `Generic bank Checking 2`,
description: 'Account ending in 5123',
methodID: '2',
key: `bankAccount-2`,
accountType: 'bankAccount',
accountData: {
accountNumber: 'XXXXX5088',
additionalData: {
bankName: `Generic bank`,
},
state: 'OPEN',
type: 'BUSINESS',
},
isDefault: false,
},
});
Onyx.merge('fundList', {
4: {
title: 'Test card',
description: 'Card ending in 4242',
methodID: 4,
key: 'card-4',
accountType: 'debitCard',
accountData: {
additionalData: {
isBillingCard: false,
isP2PDebitCard: true,
},
addressName: 'Test cardList card',
addressState: 'US',
addressStreet: 'Street',
addressZip: 75092,
cardMonth: 12,
cardNumber: '424242XXXXXX4242',
cardYear: 2026,
created: '2023-01-13 22:27:23',
currency: 'USD',
fundID: 4,
},
isDefault: false,
},
5: {
title: 'Test card 2',
description: 'Card ending in 0000',
methodID: 5,
key: 'card-5',
accountType: 'debitCard',
accountData: {
additionalData: {
isBillingCard: false,
isP2PDebitCard: true,
},
addressName: 'Nowhere',
addressState: 'US',
addressStreet: 'Street',
addressZip: 75092,
cardMonth: 12,
cardNumber: '424242XXXXXX0000',
cardYear: 2026,
created: '2023-01-13 22:27:23',
currency: 'USD',
fundID: 5,
},
isDefault: false,
},
}); Wallet mock dataOnyx.merge('userWallet', {
currentBalance: 1000,
tierName: 'GOLD',
}) Resulttransfer-balance-mock.mov |
@jayeshmangwani thanks. @kavimuru can you please try the steps above? |
@shawnborton has kindly QAed this and works well! 🎉 |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.51-3 🚀
|
Details
The back navigation in transfer balance page slides the page from right to left.
Fixed Issues
$ #37982
PROPOSAL: #37982 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
Screen.Recording.2024-03-09.at.01.48.38.mov
Android: mWeb Chrome
Screen.Recording.2024-03-09.at.01.49.26.mov
iOS: Native
Screen.Recording.2024-03-09.at.01.44.02.mov
iOS: mWeb Safari
Screen.Recording.2024-03-09.at.01.49.09.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-09.at.01.45.19.mov
MacOS: Desktop
Screen.Recording.2024-03-09.at.01.44.22.mov