-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix recent report is missing from the assignee list #41232
Fix recent report is missing from the assignee list #41232
Conversation
@mananjadhav 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] |
Additional video showing the original issue is still fixed. Screen.Recording.2024-04-30.at.00.47.14.mov |
@bernhardoj Can you fix the lint issues. |
I think I am going to ask @marcochavezf to confirm this. |
|
Then can we treat this as a separate task instead of a regression? @bernhardoj and I can still take this forward, if it works for them. |
After reading through the code, we can fix the This way, we would have the same behavior as the previous one. Anyone agree? |
Why this would not be a regression anymore? |
I think this would work, yep. |
Updated! Please check! |
src/libs/OptionsListUtils.ts
Outdated
} else { | ||
accountIDs = Object.keys(report.participants ?? {}).map(Number); | ||
if (ReportUtils.isOneOnOneChat(report)) { | ||
// For 1:1 chat, we don't want to include currentUser as participants |
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.
// For 1:1 chat, we don't want to include currentUser as participants | |
// For 1:1 chat, we don't want to include currentUser as participants in order to not mark 1:1 chats as having multiple participants |
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.
Updated
src/libs/OptionsListUtils.ts
Outdated
} else { | ||
accountIDs = Object.keys(report.participants ?? {}).map(Number); | ||
if (ReportUtils.isOneOnOneChat(report)) { | ||
// For 1:1 chat, we don't want to include currentUser as participants |
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.
// For 1:1 chat, we don't want to include currentUser as participants | |
// For 1:1 chat, we don't want to include currentUser as participants in order to not mark 1:1 chats as having multiple participants |
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.
LGTM!
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-recent-assignee.movAndroid: mWeb Chromemweb-chrome-recent-assignee.moviOS: Nativeios-recent-assignee.moviOS: mWeb Safarimweb-safari-recent-assignee.movMacOS: Chrome / Safariweb-recent-assignee.movMacOS: Desktopdesktop-recent-assignee.mov |
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.
LGTM, thank you guys!
✋ 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 production by https://github.com/marcaaron in version: 1.4.70-5 🚀
|
Details
A regression from #40271. The recent section is missing.
Fixed Issues
$ #41138
$ #37519
PROPOSAL:
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
MacOS: Desktop