-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionDailyKSv2KSv2NewFeatureSomething to build that is a new item.Something to build that is a new item.ReviewingHas a PR in reviewHas a PR in review
Description
Part of the Cross compatible Corporate Cards project
Main issue: https://github.com/Expensify/Expensify/issues/467915
Doc section: https://docs.google.com/document/d/1KHrQgvdZWvCwUkptjjW_oqnl0umyVNiPe7KIHCD1pBA/edit?tab=t.0#heading=h.hn90zqqqm7w9
Feature Description
Let's update the Third Party Company Cards page of the workspace editor to display domain feeds as described in the doc here.
To do this we will need to:
- Support showing domain third party card feeds when the current workspace is set as the primary policy for the feed. We will know this is the case if the Expensify Card settings in Onyx have the current workspace set as the
preferredPolicylike below on the domain_member nvp data. - We should show only the domain feed if there is no workspace feed set up
- We should show the feed selector, if there is a workspace feed and some amount of domain feeds. Or if there are multiple domain feeds
- Everything else should work just like it currently does
Onyx shape:
{
"onyxData": [
{
"key": "sharedNVP_private_domain_member_19527211",
"onyxMethod": "set",
"value": {
"settings": {
"discover.com": {
"asrEnabled": false,
"forceReimbursable": "force_no",
"liabilityType": "corporate",
"preferredPolicy": "8548D13C46AEFD4B",
"reportTitleFormat": "",
"shouldApplyCashbackToBill": true,
"statementPeriodEndDay": 1,
"uploadLayoutSettings": []
}
}
}
}
]
}
Manual Test Steps
- Create an account that is an admin on domainA and policyB
- Add an third party domain feed to domainA and set policyB as the preferred policy
- Open policyB in NewDot and go to the Company Cards page
- Make sure the feed shows up and you can assign cards, edit the settings, etc
- Create a new domainC same account as admin on the domain
- Add an third party domain feed to domainC and set policyB as the preferred policy
- Open policyB in NewDot and go to the Company Cards page
- Make sure both feeds shows up and you can assign cards, edit the settings, etc
- Add a workspace third party feed to policyB
- Open policyB in NewDot and go to the Company Cards page
- Make sure all three feeds shows up and you can assign cards, edit the settings, etc
Automated Tests
tbd
Issue Owner
Current Issue Owner: @maddylewisReactions are currently unavailable
Metadata
Metadata
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionDailyKSv2KSv2NewFeatureSomething to build that is a new item.Something to build that is a new item.ReviewingHas a PR in reviewHas a PR in review
Type
Projects
Status
Done