Display the workspace as participant when a request is created#30036
Display the workspace as participant when a request is created#30036marcochavezf wants to merge 3 commits intomainfrom
Conversation
|
@robertKozik 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] |
thienlnam
left a comment
There was a problem hiding this comment.
It looks like we're checking isPolicyExpenseChat twice, instead maybe we could do this?
const participants = useMemo(() => {
return _.chain(props.iou.participants)
.map((participant) => {
const isPolicyExpenseChat = lodashGet(participant, 'isPolicyExpenseChat', false);
const option = isPolicyExpenseChat
? OptionsListUtils.getPolicyExpenseReportOption(participant)
: OptionsListUtils.getParticipantsOption(participant, props.personalDetails);
return { ...option, isPolicyExpenseChat };
})
.filter((option) => option.isPolicyExpenseChat || !!option.login)
.value();
}, [props.iou.participants, props.personalDetails]);
|
Good call updating it |
Deploying with
|
| Latest commit: |
334f8eb
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3c72052a.helpdot.pages.dev |
| Branch Preview URL: | https://marco-checkworkspaceparticip.helpdot.pages.dev |
|
Updated |
thienlnam
left a comment
There was a problem hiding this comment.
Nice, code changes look good - will let the C+ go through the steps
|
Assigning @hoangzinh as C+ reviewer |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
|
hi @marcochavezf @thienlnam I also faced the same bug with the new 1:1 chat. Screen.Recording.2023-10-20.at.06.21.30.mov |
|
Oh checking |
|
This is happening with new contacts created optimistically, right? Because for existing ones seem to be working fine |
|
Oh I'm not able to reproduce it at the moment. I see some users are missing the Screen.Recording.2023-10-19.at.5.49.05.p.m.mov@hoangzinh can you reproduce the error consistently? I will be trying |
|
Also I see that in the second 10 of your video, when you select the user from the search bar, it redirects you to the workspace chat, I wonder if that's another bug. |
|
Trying with a new brand account and no luck 🤔: Screen.Recording.2023-10-19.at.6.01.57.p.m.mov |
Yes, I even tried to re-login again. Or it's only reproducible with non "@expensify.com" emails, isn't it? Screen.Recording.2023-10-20.at.07.02.17.mov |
Oh interesting, yeah I was able to reproduce it with another domain. Checking |
|
Ok, I think it would require a more holistic solution. Meanwhile, I will revert #27547 and close this one |


Details
Check if the participant is a workspace chat to avoid filtering out from the
participantsarray if the login property doesn't exist. cc @thienlnamFixed Issues
$ #30032
Tests
Offline tests
QA Steps
Same as test steps
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 */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)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)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
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2023-10-19.at.4.55.23.p.m.mov
MacOS: Desktop