-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[No QA] Issue New Card Bank Accounts Logic #45069
[No QA] Issue New Card Bank Accounts Logic #45069
Conversation
@DylanDylann 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] |
@koko57 Bug: Click "Finish Step", App navigates to WORKSPACE_EXPENSIFY_CARD_BANK_ACCOUNT Screen.Recording.2024-07-11.at.16.40.56.movI believe we should include a condition to check if bankAccountList is empty (isEmptyObject(bankAccountList)) in the getTranslationForCta function, alongside the switch case. |
const styles = useThemeStyles(); | ||
const [bankAccountsList] = useOnyx(ONYXKEYS.BANK_ACCOUNT_LIST); | ||
|
||
const policyID = route.params.policyID ?? '-1'; |
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.
const policyID = route.params.policyID ?? '-1'; | |
const policyID = route?.params?.policyID ?? '-1'; |
src/pages/workspace/expensifyCard/WorkspaceExpensifyCardBankAccounts.tsx
Show resolved
Hide resolved
@koko57 As I understand, we only display "Finish Setup" button if there are no bank account and VBBA in the state of SETUP, VERIFYING, or VALIDATING. |
@DylanDylann fixed |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-11.at.18.03.11.movAndroid: mWeb ChromeScreen.Recording.2024-07-11.at.17.59.45.moviOS: NativeScreen.Recording.2024-07-11.at.18.02.09.moviOS: mWeb SafariScreen.Recording.2024-07-11.at.17.58.56.movMacOS: Chrome / SafariScreen.Recording.2024-07-11.at.17.53.25.movMacOS: DesktopScreen.Recording.2024-07-11.at.18.11.43.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.
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.
couple comments but we do not have to block on that I think
// const eligibleBankAccounts = Object.values(bankAccountsList).filter((bankAccount) => bankAccount.accountData.allowDebit || bankAccount.accountData.type === CONST.BANK_ACCOUNT.TYPE.BUSINESS); | ||
const eligibleBankAccounts = Object.values(bankAccountsList); |
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.
Why did we omit this check, we could have added it to the mock data if needed
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.
will be held in #46564
(reimbursementAccountStatus === CONST.BANK_ACCOUNT.STATE.VERIFYING || | ||
reimbursementAccountStatus === CONST.BANK_ACCOUNT.STATE.SETUP || | ||
reimbursementAccountStatus === CONST.BANK_ACCOUNT.STATE.VALIDATING); |
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.
I think you can instead check if the status is defined and its not OPEN
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.
will be held in #46564
✋ 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: 9.0.7-3 🚀
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
Details
Fixed Issues
$ #44305
PROPOSAL: -
Tests
NOTE: you should have
canUseWorkspaceFeeds
permission enabled. If you cannot access the Expensify Card Page you can go force offline.Offline tests
QA Steps
n/a
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)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-07-10.at.12.32.07.mp4
Android: mWeb Chrome
Screen.Recording.2024-07-10.at.14.15.45.mp4
iOS: Native
Screen.Recording.2024-07-10.at.15.07.48.mp4
iOS: mWeb Safari
Screen.Recording.2024-07-10.at.15.05.25.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-07-10.at.10.20.48.mp4
MacOS: Desktop
Screen.Recording.2024-07-10.at.10.23.54.mp4