Repository navigation
Conversation
|
@DylanDylann 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] |
| const filteredCardList = CardUtils.getFilteredCardList(list); | ||
| const [list] = useOnyx(`${ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST}${workspaceAccountID}_${feed}`); | ||
| const [cardFeeds] = useOnyx(`${ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_DOMAIN_MEMBER}${workspaceAccountID}`); | ||
| const filteredCardList = CardUtils.getFilteredCardList(list, cardFeeds?.settings?.oAuthAccountDetails?.[feed]); |
There was a problem hiding this comment.
@VickyStash I think we should pass workspaceAccountID and feed to getFilteredCardList function and we will get Onyx data on it. And make workspaceAccountID and feed param as required
There was a problem hiding this comment.
Discussed in the slack.
Overall with this approach we can met unexpected issues, cause CardUtils.getFilteredCardList function wan't be re-triggered inside the component when card list is updated
|
Note for testing if anyone needed: Mock Direct feed |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-27.at.21.26.21.movAndroid: mWeb ChromeScreen.Recording.2024-11-27.at.21.22.57.moviOS: NativeScreen.Recording.2024-11-27.at.21.22.45.moviOS: mWeb SafariScreen.Recording.2024-11-27.at.21.21.40.movMacOS: Chrome / SafariScreen.Recording.2024-11-27.at.20.44.56.movMacOS: DesktopScreen.Recording.2024-11-27.at.21.10.32.mov |
…ed-card-assignment # Conflicts: # src/pages/workspace/companyCards/WorkspaceCompanyCardsListHeaderButtons.tsx
|
✋ 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.68-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.68-7 🚀
|
Not working. Will bring to slack. |
I think this is intended to be that we select assignee (as there are multiple), but skip card selection. Tested with that in mind. Works for both direct and custom feeds! |
Works for both direct and custom feeds! |
I think this is intended to say no steps are skipped. Tested as such. Custom feed case works here. I don't have a direct feed with multiple cards. |
Explanation of Change
Follow-up of #52871: Improve getFilteredCardList function
Fixed Issues
$ #52820
PROPOSAL: N/A
Tests
Workspace A - 1 member, multiple cards to assign
Workspace B - several members, 1 card to assign (if you don't have a workspace with only 1 card you can change this code from)
Workspace C - 1 member, 1 card to assign
Workspace D - several members, several cards to assign
Make sure to check both - custom and direct feeds.
Workspace A
Workspace B
Workspace C
Workspace D
Offline tests
Same, as in the
Testssection.QA Steps
Same, as in the
Testssection.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso 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
MacOS: Chrome / Safari
Case.A.mp4
Case.B.mp4
Case.C.mp4
Case.D.mp4