-
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
Only show reports without comments if they are non-archived policy rooms #11634
Conversation
|
cc @tgolen since I think you've been editing similar logic and files recently |
|
||
// isUserCreatedPolicyRoom, isUnread |
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.
isUserCreatedPolicyRoom should always show, regardless of if there's no message if they aren't archived, so this fixes that
|
Unit tests passed! |
@tgolen looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
Only show reports without comments if they are non-archived policy rooms (cherry picked from commit bc5ceff)
…-11634 🍒 Cherry pick PR #11634 to staging 🍒
🚀 Cherry-picked to staging by @tgolen in version: 1.2.12-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by @AndrewGable in version: 1.2.12-4 🚀
|
…-reports Only show reports without comments if they are non-archived policy rooms
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Details
This fixes part of the refactor done
https://github.com/Expensify/App/blob/8203e1a1bfcadc5ebc1891d5848e317cfec4fbd3/src/libs/ReportUtils.js#L941
where the logic changed as part of the boolean reworkFixed Issues
$ #11633
Tests
Most Recent
PR Review Checklist
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
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** 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
Most Recent
Screenshots
Web
Screen.Recording.2022-10-06.at.2.17.33.PM.mov
Mobile Web - Chrome
Screen.Recording.2022-10-06.at.3.10.29.PM.mov
Mobile Web - Safari
Screen.Recording.2022-10-06.at.2.49.44.PM.mov
Desktop
Screen.Recording.2022-10-06.at.2.29.34.PM.mov
iOS
Screen.Recording.2022-10-06.at.2.46.24.PM.mov
Android
Screen.Recording.2022-10-06.at.3.04.51.PM.mov