[Fix]: Number of announce room members does not update when remove workspace members due to pendingAction#39796
Conversation
|
@rayane-djouah 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] |
|
Lint and perf-tests checks are failing |
Reviewer Checklist
Screenshots/VideosAndroid: NativeRecording.2024-04-12.203347.mp4Android: mWeb ChromeRecording.2024-04-12.195605.mp4iOS: NativeRecording.2024-04-12.194418.mp4iOS: mWeb SafariRecording.2024-04-12.194801.mp4MacOS: Chrome / SafariRecording.2024-04-12.193942.mp4MacOS: DesktopRecording.2024-04-12.194159.mp4 |
|
Please complete the Screenshots/Videos section. |
|
sorry, upgraded my system, will put up the changes and the videos by tomorrow, will setup the system today thanks :) |
|
Finally was able to setup for all platforms (the recent changes in architecture made android fail), will implement these changes in few hours |
|
@rayane-djouah , PR ready for your review, can you tick the checklist please ;) thanks |
|
Please complete Screenshots/Videos section for all platforms. Thanks! |
|
Added all video @rayane-djouah , also please check comments |
Co-authored-by: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com>
Co-authored-by: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com>
rayane-d
left a comment
There was a problem hiding this comment.
Please resolve merge conflicts correctly
|
ahh, I fixed them locally but somehow it failed to get pushed, lol, my bad |
|
✋ 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/jasperhuangg in version: 1.4.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
| const pendingMember = report?.pendingChatMembers?.findLast((member) => member.accountID === accountID.toString()); | ||
| return !pendingMember || pendingMember.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ? accountID : []; | ||
| }); |
There was a problem hiding this comment.
We do not filter out the accountID that is not available in the personalDetails object. This resulted in #46670
| @@ -140,7 +146,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD | |||
| key: CONST.REPORT_DETAILS_MENU_ITEM.MEMBERS, | |||
There was a problem hiding this comment.
We need to check for activeChatMembers length before rendering members subitem. More details here. #61588
Details
There was a mismatch in the number of participant count shown on report details page, this was because we used to count members in the pending state as well
Fixed Issues
$ #39446
PROPOSAL: #39446 (comment)
Tests
Same as QA
Offline tests
Same as QA
QA Steps
Note
The expected result is that the number of participants when we click on participants and the count on the previous screen should match
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Screen.Recording.2024-04-11.at.5.27.05.AM.mov
MacOS: Desktop
Screen.Recording.2024-04-11.at.5.43.39.AM.mov
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-11.at.05.48.37.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-11.at.23.09.50.mp4
Android: Native
Screen_recording_20240411_221001.webm
Android: mWeb Chrome
Screen_recording_20240411_221001.webm