[No QA] Feat/47377 multiple card feeds#49148
Conversation
…/47377-multiple-card-feeds
|
@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] |
|
@allroundexperts ready for you! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-18.at.1.21.55.PM.movAndroid: mWeb ChromeScreen.Recording.2024-09-18.at.1.19.53.PM.moviOS: NativeScreen.Recording.2024-09-18.at.1.03.16.PM.moviOS: mWeb SafariScreen.Recording.2024-09-18.at.1.02.19.PM.movMacOS: Chrome / SafariScreen.Recording.2024-09-18.at.12.53.58.PM.movMacOS: DesktopScreen.Recording.2024-09-18.at.12.59.32.PM.mov |
|
BUG The selected card option does not reset when assigning the card to a member again. Screen.Recording.2024-09-18.at.1.28.16.PM.mov |
|
BUG Animation is in a wrong direction when selecting the card, and the back button redirects to an incorrect place as well. Screen.Recording.2024-09-18.at.1.28.30.PM.mov |
|
@allroundexperts thanks for the review! I guess I need to create a page instead of a modal for the selector. I'll let you know when I fix this |
|
@allroundexperts ready for re-review Screen.Recording.2024-09-19.at.21.24.36.mp4 |
|
Looks good to me. The card images are wrong, but I think we're replacing those in a different PR |
|
@dubielzyk-expensify yes, probably we will replace them later - but could you please elaborate more on what's not ok with them? |
|
We're looking to use these icons instead #48489 (comment) |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #47379 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
aldo-expensify
left a comment
There was a problem hiding this comment.
Looks good to me, but will leave it to @robertjchen to approve/merge since he has more context about this feature
robertjchen
left a comment
There was a problem hiding this comment.
Looks good to me as well, we'll make more updates as we complete out the flows 💯
|
✋ 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/robertjchen in version: 9.0.40-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.40-6 🚀
|
| }, | ||
| isEditing: false, | ||
| }); | ||
| Navigation.navigate(ROUTES.WORKSPACE_EXPENSIFY_CARD_ISSUE_NEW.getRoute(policyID, activeRoute)); |
There was a problem hiding this comment.
This caused #50243 – we've ended up navigating to WORKSPACE_MEMBER_DETAILS instead of the activeRoute.
| const feeds = workspaceAccountID | ||
| ? [ | ||
| ...companyCardFeeds, |
There was a problem hiding this comment.
along with workspaceAccountID we should had also checked if the expensify cards toggle was enabled or not. This caused #52552 as we aren't supposed to show the expensify card in selector if it is not enabled
| ), | ||
| })); | ||
|
|
||
| const feeds = workspaceAccountID |
There was a problem hiding this comment.
This caused this bug. We need to use paymentBankAccountID
Details
For now we're mocking the data - the user will have all the feeds in the feed selector displayed, Expensify Card will be shown when it's enabled for the workspace.
Fixed Issues
$ #47379
PROPOSAL:
Tests
PREREQUISITES: Company Cards enabled. You can have Expensify Card enabled too. For now showing multiple feeds, even if they are not enabled
Offline tests
QA Steps
n/a
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-16.at.16.46.40.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-09-13.at.15.44.01.mp4
MacOS: Desktop