-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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]: Company card details #48491
Conversation
@allroundexperts 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] |
# Conflicts: # src/components/Icon/Illustrations.ts
Let us know when you got some screenshots and we'll do a design review 😄 |
@dubielzyk-expensify here we go: Seems like we do not have correct icon for Unassign user - could you please provide it. Thanks! |
Yup, agree with Danny here! |
What Danny said and otherwise this is looking good to me 👍 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-09.at.11.08.44.PM.movAndroid: mWeb ChromeScreen.Recording.2024-09-09.at.11.07.00.PM.moviOS: NativeScreen.Recording.2024-09-09.at.11.03.02.PM.moviOS: mWeb SafariScreen.Recording.2024-09-09.at.11.04.49.PM.movMacOS: Chrome / SafariScreen.Recording.2024-09-09.at.10.53.55.PM.movMacOS: DesktopScreen.Recording.2024-09-09.at.11.00.49.PM.mov |
@narefyev91 Can you please finish the checklist and make sure that the lint errors are resolved? |
# Conflicts: # src/ROUTES.ts # src/libs/Navigation/linkingConfig/FULL_SCREEN_TO_RHP_MAPPING.ts # src/libs/actions/Policy/Policy.ts
@narefyev91 Can I please have testing steps? |
@narefyev91 On the following screen size, the buttons are stacked too close to each other. The settings button also seems to be clipped. |
# Conflicts: # src/CONST.ts # src/components/Icon/Illustrations.ts # src/libs/Navigation/AppNavigator/ModalStackNavigators/index.tsx # src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx
@narefyev91 Is this ready for review again? |
Yeah - just pushing latest changes for offline support - which was approved yesterday |
# Conflicts: # src/libs/API/parameters/index.ts # src/libs/API/types.ts # src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx # src/types/form/index.ts
@allroundexperts Hey! Can you please review again? Thanks! |
Sure. Will review again today! |
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.
Looks good!
Friendly bump on this one @yuwenmemon, Thanks! |
Thanks! |
✋ 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/yuwenmemon in version: 9.0.35-0 🚀
|
🚀 Deployed to production by https://github.com/grgia in version: 9.0.35-7 🚀
|
Just saw a log error making the call to SetCardExportAccount fail:
How are we sending |
@@ -0,0 +1,6 @@ | |||
type UpdateCompanyCard = { | |||
authToken?: string | null; | |||
cardID: string; |
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.
cardID
was supposed to be of type number
, this caused #51895
); | ||
|
||
return ( | ||
<SelectionScreen |
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.
We didn't not include a search option like we do in other places in the app when the number of options is more than 8, this caused #51884
/> | ||
<MenuItemWithTopDescription | ||
description={translate('workspace.moreFeatures.companyCards.transactionStartDate')} | ||
title={card?.startDate ? format(card.startDate, CONST.DATE.FNS_FORMAT_STRING) : ''} |
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.
It was causing this issue. More explained here
/> | ||
<MenuItemWithTopDescription | ||
description={translate('workspace.moreFeatures.companyCards.cardNumber')} | ||
title={CardUtils.maskCard(card?.lastFourPAN)} |
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.
It caused this issue, we need to mask the card name to display 6 first numbers and 4 last numbers
@@ -4610,6 +4612,242 @@ function deleteWorkspaceCompanyCardFeed(policyID: string, workspaceAccountID: nu | |||
API.write(WRITE_COMMANDS.DELETE_COMPANY_CARD_FEED, parameters, onyxData); | |||
} | |||
|
|||
function unassignWorkspaceCompanyCard(workspaceAccountID: number, cardID: string, bankName: string) { |
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.
We missed to update the optimistic data to apply online pattern B on this action
Details
Company Card details page
Fixed Issues
$ #47377, #48425, #47379
PROPOSAL:
Preconditions:
We need to add mock information for card in Onyx - i added them inside src/pages/workspace/companyCards/WorkspaceCompanyCardsPage.tsx - just uncomment useEffect
We adding as well some mock data to test export cards account - i used quickbooks online for mock data
Tests
Offline tests
QA Steps
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
Android: Native
android1.mov
android2.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
Screen.Recording.2024-09-10.at.16.04.33.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web1.mov
web2.mov
MacOS: Desktop
desktop.mov