-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Show empty policyExpenseChats in LHN just like defaultRooms #8476
Conversation
@neil-marcellini oh nice Neil you have some context on this already since you made the original change where this happens for defaultRooms. |
Hold on, I realize now I gotta rework these tests a little bit. |
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.
QA and tests pass. The changes look good, thanks.
Ah ok, I'll review again later. |
bcb7b7d
to
5bbe670
Compare
Ok @neil-marcellini this should be good to review now, I've made the tests separate from the general report tests in OptionListUtilsTest.js since they aren't relevant to testing empty policyExpenseChats or defaultRooms in the sidebar. |
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.
The tests still pass, and they look more thorough.
✋ 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 @neil-marcellini in version: 1.1.56-0 🚀
|
🚀 Deployed to production by @francoisl in version: 1.1.56-0 🚀
|
@neil-marcellini, please review when you get the chance
Details
Fixed Issues
Related to https://github.com/Expensify/Expensify/issues/201621
and follow up slack discussion here
Tests
Same as Web QA but done locally
Added tests to
tests/unit/OptionsListUtilsTest.js
to verify the latest changes to this logic works.PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
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)QA Steps
This should be done on staging. No failure case needed since this is in beta, if this is not working let @TomatoToaster know so it can be fixed in a followup PR
Screenshots
Web
Mobile Web
Desktop
(Looks same as Web)
iOS
(ignore the missing images in some workspace chats that's buggy and will be resolved with this issue)

Android