-
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
[NO QA]: Add new object to pick assign cards #51791
[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 |
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.
Can you update the comments to be on one line please?
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.
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
cardList
object. 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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 and/or tagged@Expensify/design
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop