-
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
Make sure that archived reports are shown properly in the LHN and the search options #11725
Conversation
|
src/libs/OptionsListUtils.js
Outdated
result.text = reportName; | ||
result.searchText = getSearchText(report, reportName, personalDetailList, result.isChatRoom || result.isPolicyExpenseChat); | ||
result.icons = ReportUtils.getIcons(report, personalDetails, policies, personalDetail.avatar); | ||
result.subtitle = subtitle; |
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.
NAB, but I would this above line 307
. 307-337 is a huge block that is dedicated to figuring out the alternateText.
Nitpicky i know, but seems strange to have all this after that.
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.
Yeah, this actually broke some of the unit tests and some other code. I've gone and reverted this change. Good catch!
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.
Looks good!
|
@ctkochan22 looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
Checklists were all completed |
Make sure that archived reports are shown properly in the LHN and the search options (cherry picked from commit 9090055)
…-11725 🍒 Cherry pick PR #11725 to staging 🍒
🚀 Deployed to production by @AndrewGable in version: 1.2.12-4 🚀
|
🚀 Cherry-picked to staging by @ctkochan22 in version: 1.2.12-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
…ering Make sure that archived reports are shown properly in the LHN and the search options
🚀 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. |
Fixed Issues
$ #11685
$ #11686
Tests
Testing that policy rooms show up properly
#focus
most recent
Testing that archived rooms show up properly
#focus
most recent
Testing that an invited user gets access to workspace chats
#announce
room for that workspacePR 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 */
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)QA Steps
Same as all the tests written in the test section
Screenshots
Web screenhots
Mobile Web - Chrome screenhots
focus mode: ![image](https://user-images.githubusercontent.com/1228807/195188346-fa6f092a-4147-4821-ab44-6379fcbde999.png) ![image](https://user-images.githubusercontent.com/1228807/195188370-68de012c-d255-459c-b796-07cc44187de0.png)most recent mode:
Mobile Web - Safari screenhots
focus mode: ![image](https://user-images.githubusercontent.com/1228807/195189359-8448dbb0-820f-44db-ac53-87f4d962b334.png) ![image](https://user-images.githubusercontent.com/1228807/195189379-76c3d99a-64a5-47b2-8ad4-675dcdb7fbea.png)most recent mode:
Desktop screenhots
iOS screenhots
Focus mode: ![image](https://user-images.githubusercontent.com/1228807/195188755-b1410b4f-fac4-4029-913a-17c13dae0b4c.png) ![image](https://user-images.githubusercontent.com/1228807/195188792-7df74b6a-dd1a-4a42-9442-ad91f500190b.png)most recent mode:
Android screenhots
focus mode:
most recent mode: