-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: remove shouldAdminsRoomBeVisible #59293
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: remove shouldAdminsRoomBeVisible #59293
Conversation
@mjasikowski 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] |
Going to run a build (only for Web). I want to test the empty chat case on sign-up with someone who doesn't get a guide. |
🚧 @trjExpensify has triggered a test app build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
yoo, went through the slack convo, would be happy to review this one if it requires a C+ review |
@allgandalf thanks! Autoassigner on the issue selected @s77rt though so they will have preference |
@allgandalf Feel free to review this. Thanks! |
thanks @hannojg when can you make this one ready for review? |
Hey guys, I'm William from Margelo and i'll be taking over this task |
src/libs/ReportUtils.ts
Outdated
@@ -7471,7 +7451,7 @@ function reasonForReportToBeInOptionList({ | |||
} | |||
|
|||
// Hide chats between two users that haven't been commented on from the LNH | |||
if (excludeEmptyChats && isEmptyChat && isChatReport(report) && !isChatRoom(report) && !isPolicyExpenseChat(report) && !isSystemChat(report) && !isGroupChat(report) && canHideReport) { | |||
if (excludeEmptyChats && isEmptyChat && isChatReport(report) && !isPolicyExpenseChat(report) && !isSystemChat(report) && !isGroupChat(report) && canHideReport) { |
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.
I think we would also remove the check for the group chat so its all same behaviour for those types of chats
if (excludeEmptyChats && isEmptyChat && isChatReport(report) && !isPolicyExpenseChat(report) && !isSystemChat(report) && !isGroupChat(report) && canHideReport) { | |
if (excludeEmptyChats && isEmptyChat && isChatReport(report) && !isPolicyExpenseChat(report) && !isSystemChat(report) && canHideReport) { |
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.
done!
b981d45
to
0bfb85b
Compare
Since i'm not being able to edit the PR, here goes some more test videos Androidandroid.movAndroid Chromeandroid.chrome.moviOSios.moviOS Safariios.safari.movand some numbered tests:
|
@hannojg @mountiny @allgandalf im also not able to put it as ready for review, please do so if you can :) |
@@ -22,7 +22,7 @@ import { | |||
orderOptions, | |||
orderWorkspaceOptions, | |||
} from '@src/libs/OptionsListUtils'; |
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.
great job with the tests!
@hannojg @wgsquayson is this ready for review or is it still a draft PR? Getting mixed messages here. |
@mjasikowski it is ready for review, but I'm not being able to edit the PR as stated previously |
@allgandalf are you able to complete the checklist please? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-08.at.10.02.39.AM.movAndroid: mWeb ChromeScreen.Recording.2025-04-08.at.10.04.06.AM.moviOS: NativeScreen.Recording.2025-04-08.at.10.05.37.AM.moviOS: mWeb SafariScreen.Recording.2025-04-08.at.10.05.05.AM.movMacOS: Chrome / SafariScreen.Recording.2025-04-08.at.10.00.44.AM.movMacOS: DesktopScreen.Recording.2025-04-08.at.10.07.00.AM.mov |
LGTM! @mountiny over to you for one final looksie and let's merge |
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.
Lets try this out, changes look good to me, there might be some blockers raised though due to change in the behaviour
✋ 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.1.25-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.25-4 🚀
|
Explanation of Change
This removes the option to filter out admin rooms, as discussed here:
See discussion: https://margelo.slack.com/archives/C05LX9D6E07/p1743159521199569?thread_ts=1743103075.594299&cid=C05LX9D6E07
This will make admin rooms show up in search + LHN (if no other rule filters it out).
Fixed Issues
$ #59314
PROPOSAL:
Tests
Offline tests
Same as testing
QA Steps
Same as testing
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Sorry, I only had time to test on web. This change shouldn't cause any differences on the other platforms. To my C+ reviewer, could you help me please with creating the remaining test screenshots? Thank you so much in advance! 🫶
Android: Native
android.mov
Android: mWeb Chrome
android.chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios.safari.mov
MacOS: Chrome / Safari
MacOS: Desktop