-
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
Display the workspace as participant when a request is created #30036
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] |
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 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 Cloudflare Pages
|
Updated |
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.
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
participants
array if the login property doesn't exist. cc @thienlnamFixed Issues
$ #30032
Tests
Offline tests
QA Steps
Same as test steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
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