-
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
[NoQA] Integrate OpenPolicyExpensifyCardsPage API call #47064
[NoQA] Integrate OpenPolicyExpensifyCardsPage API call #47064
Conversation
…instead of policyID in cards_ and sharedNVP_private_expensifyCardSettings_ onyx keys; TS fixes
…CardsPage-integration # Conflicts: # src/pages/workspace/WorkspaceMoreFeaturesPage.tsx # src/pages/workspace/expensifyCard/WorkspaceEditCardLimitTypePage.tsx # src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx # src/pages/workspace/expensifyCard/WorkspaceSettlementAccountPage.tsx
…CardsPage-integration # Conflicts: # src/libs/actions/Card.ts # src/pages/workspace/WorkspaceMoreFeaturesPage.tsx # src/pages/workspace/accounting/reconciliation/CardReconciliationPage.tsx # src/pages/workspace/accounting/reconciliation/ReconciliationAccountSettingsPage.tsx # src/pages/workspace/expensifyCard/WorkspaceCardListHeader.tsx # src/pages/workspace/expensifyCard/WorkspaceCardSettingsPage.tsx # src/pages/workspace/expensifyCard/WorkspaceEditCardLimitPage.tsx # src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPage.tsx # src/pages/workspace/expensifyCard/WorkspaceSettlementAccountPage.tsx # src/pages/workspace/expensifyCard/WorkspaceSettlementFrequencyPage.tsx
@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] |
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.
No major changes required, @VickyStash can you address those please really minor
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2024-08-13.at.4.35.49.PM.movMacOS: DesktopScreen.Recording.2024-08-13.at.4.38.52.PM.movAndroid: NativeScreen.Recording.2024-08-13.at.4.53.18.PM.movAndroid: mWeb ChromeScreen.Recording.2024-08-13.at.4.55.23.PM.moviOS: NativeScreen.Recording.2024-08-13.at.4.49.46.PM.moviOS: mWeb SafariScreen.Recording.2024-08-13.at.4.48.27.PM.mov |
@VickyStash , can you mark this as no QA please, they won't be able to test it |
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.
Test conditions look good on all platfomrs
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.
Great work everyone
const userA = personalDetails?.[cardA.accountID ?? '-1'] ?? {}; | ||
const userB = personalDetails?.[cardB.accountID ?? '-1'] ?? {}; | ||
const aName = PersonalDetailsUtils.getDisplayNameOrDefault(userA); | ||
const bName = PersonalDetailsUtils.getDisplayNameOrDefault(userB); |
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.
NAB, it might be nice to have some helper method sort by name of cardholder
@@ -9,7 +9,7 @@ type ExpensifyCardSettings = OnyxCommon.OnyxValueWithOfflineFeedback<{ | |||
remainingLimit: number; | |||
|
|||
/** The total amount of cash back earned thus far */ | |||
cashBack: number; | |||
earnedCashback: number; |
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.
This should be optional same as remainingLimit
and currentBalance
earnedCashback: number; | |
earnedCashback?: number; |
✋ 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.20-0 🚀
|
FYI I believe this was deployed to prod yesterday, from this checklist - #47356 |
Details
This PR enables OpenPolicyExpensifyCardsPage API call and makes sure all of the relevant data is used correctly by the app.
Fixed Issues
$ #44310
PROPOSAL: N/A
Tests
Pre-steps:
Offline tests
Same as in the Tests section.
QA Steps
Same as in the Tests section.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
MacOS: Chrome / Safari