Repository navigation
[CP Staging] [NO QA]: Add bank urls to Company Card flow - #51384
Conversation
|
@allgandalf 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] |
| BILLABLE: 'billable', | ||
| NON_BILLABLE: 'nonBillable', | ||
| }, | ||
| COMPANY_CARD_DOMAIN_NAME: 'expensify-policyABASDASDASDASDFASD.exfy', |
There was a problem hiding this comment.
where did you take this value from ?
There was a problem hiding this comment.
tagged you in thread as well
There was a problem hiding this comment.
This was just a format example, the policyID has to be the policyID of the policy to which you trying to connect the bank :D
| @@ -180,6 +180,7 @@ const CONST = { | |||
| BILLABLE: 'billable', | |||
There was a problem hiding this comment.
Looks good, did you test atleast on one platform ?
There was a problem hiding this comment.
yeah
Screen.Recording.2024-10-24.at.11.44.11.mov
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2024-10-24.at.2.43.24.PM.mov |
allgandalf
left a comment
There was a problem hiding this comment.
code cleanup, looks great, thanks @narefyev91 !
mountiny
left a comment
There was a problem hiding this comment.
The domain name has to be dynamic to the policy you trying to connect the bank to
| BILLABLE: 'billable', | ||
| NON_BILLABLE: 'nonBillable', | ||
| }, | ||
| COMPANY_CARD_DOMAIN_NAME: 'expensify-policyABASDASDASDASDFASD.exfy', |
There was a problem hiding this comment.
This was just a format example, the policyID has to be the policyID of the policy to which you trying to connect the bank :D
allgandalf
left a comment
There was a problem hiding this comment.
small change, but i think we should stay consistent across our codebase
| import ONYXKEYS from '@src/ONYXKEYS'; | ||
|
|
||
| function BankConnection() { | ||
| const params = useRoute().params as Record<string, string>; |
There was a problem hiding this comment.
This is not really the way we get route params, can you please update this , i can attach the pattern we follow below:
There was a problem hiding this comment.
yeah but it's not a navigation page - it's just a component
There was a problem hiding this comment.
ummm, can't we then just pass the prop down to the component then? do we do the same thing in other component pages ? just that i saw this pattern for the first time
There was a problem hiding this comment.
updated - passed inside AddNewCardPage
allgandalf
left a comment
There was a problem hiding this comment.
Okay the policyId are dynamic now, thanks for the quick change @narefyev91
| export default function getPolicyDomainName(policyID: string): string { | ||
| return `expensify-policy${policyID}.exfy`; | ||
| } |
There was a problem hiding this comment.
NAB: but in future PR can you please move this to the existing policy utils file?
| @@ -0,0 +1,3 @@ | |||
| export default function getPolicyDomainName(policyID: string): string { | |||
| return `expensify-policy${policyID}.exfy`; | |||
There was a problem hiding this comment.
@narefyev91 actually relaized, this has to be lowercase, can you make sure the returned string is made lowercase?
There was a problem hiding this comment.
Yeah the entire thing but the policyID in there would be passed as uppercase
There was a problem hiding this comment.
yeah i found already existed util function for that
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
tests were passing |
[CP Staging] [NO QA]: Add bank urls to Company Card flow (cherry picked from commit 7e5910e) (CP triggered by mountiny)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.53-1 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.53-1 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.53-1 🚀
|


Details
Add correct redirect urls for Bank connection
Fixed Issues
$ #50448
PROPOSAL:
Tests
It's just polish to remove test code
Offline tests
It's just polish to remove test code
QA Steps
It's just polish to remove test code
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-10-24.at.11.44.11.mov
MacOS: Desktop