[NO QA]: Add new object to pick assign cards#51791
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] |
|
@mountiny here changes for correct object pick |
mountiny
left a comment
There was a problem hiding this comment.
Can you update the comments to be on one line please?
mountiny
left a comment
There was a problem hiding this comment.
changes look good to me thanks!
Reviewer Checklist
Screenshots/Videos |
|
@narefyev91 Should we update other places that are using cardFeeds?.settings?.companyCards to remove ExpensifyCard |
|
I think we should do it all for consistency. But this seems to be an urgent PR, we can merge it immediately @mountiny Leave your final decision |
|
I think we can handle that later if it will cause confusion or problems |
|
✋ 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.57-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.57-10 🚀
|








Explanation of Change
For Feed V1 we should pick available account cards from
cardListobject. For Feed V2 - when we introduce bank connections - we should pick all available card accounts from new API object -oAuthAccountDetails. Under this object user will have available accounts based on selected feed (Ex.oauth.chase.com).Currently we will support both approaches in one component.
Fixed Issues
$ #51726
PROPOSAL: https://callstack-hq.slack.com/archives/C06ML6X0W9L/p1730279280761759?thread_ts=1729596921.819569&cid=C06ML6X0W9L
Tests
Use Onyx.set with mock data:
useEffect(() => { Onyx.set(${ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_DOMAIN_MEMBER}${workspaceAccountID}, { settings: { accountManager: 9666036, accountManagerAssignmentDate: '2023-11-02 14:17:44', companyCardNicknames: { 'ofx.chase.com': '', }, companyCards: { 'Expensify Card': { asrEnabled: false, forceReimbursable: 'force_no', liabilityType: 'personal', preferredPolicy: '', reportTitleFormat: '', statementPeriodEndDay: 1, uploadLayoutSettings: null, }, 'oauth.chase.com': { asrEnabled: false, forceReimbursable: 'force_no', liabilityType: 'personal', preferredPolicy: '', reportTitleFormat: '', statementPeriodEndDay: 1, uploadLayoutSettings: null, }, }, oAuthAccountDetails: { 'oauth.chase.com': { accountList: ['C. DUNBAR...0546', 'J. HAYES...4754', 'K. BAACK...8211', 'L. BORGNINO...9008', 'C. MILES...4129', 'J. BRUSH...8303'], credentials: 'ASDF', expiration: 1730127183, }, }, technicalContactEmail: 'brad.sandt@k12itc.com', twoFactorAuthExemptEmails: ['christi.orem@k12itc.com'], useTechnicalContactBillingCard: true, }, }); }, [workspaceAccountID]);Offline tests
Nothing changed here
QA Steps
No QA needed
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
MacOS: Desktop