-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[CP Staging] Fix workspace chat showing up #61969
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
Conversation
@DylanDylann 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] |
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.
go go "Old Search team" 🚀
@@ -576,7 +576,7 @@ function getReportSections(data: OnyxTypes.SearchResults['data'], metadata: Onyx | |||
|
|||
const reportIDToTransactions: Record<string, ReportListItemType> = {}; | |||
for (const key in data) { | |||
if (isReportEntry(key)) { | |||
if (isReportEntry(key) && (data[key].type === CONST.REPORT.TYPE.IOU || data[key].type === CONST.REPORT.TYPE.EXPENSE || data[key].type === CONST.REPORT.TYPE.INVOICE)) { |
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.
if you wanna be nice and tidy, you could declare at the top of file:
const moneyRequestReportTypes = [....]
then
if (isReportEntry(key) && (data[key].type === CONST.REPORT.TYPE.IOU || data[key].type === CONST.REPORT.TYPE.EXPENSE || data[key].type === CONST.REPORT.TYPE.INVOICE)) { | |
(...) && moneyRequestReportTypes.includes(data[key].type)) |
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.
+1 agreement with this suggestion
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.
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.
It complains about the argument being undefined, but when I explicitly check for that it still results in a type error 🤔
Reviewer Checklist
Screenshots/VideosiOS: HybridAppScreen.Recording.2025-05-14.at.17.27.04.movMacOS: Chrome / SafariScreen.Recording.2025-05-14.at.17.20.18.mov |
@marcochavezf 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] |
Agreed with the suggestion but lets get this out now |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
(cherry picked from commit 21446d9) (cherry-picked to staging by mountiny)
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.1.45-11 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Explanation of Change
Makes sure we only add relevant reports (IOU, expense, invoice) to the reports section.
Fixed Issues
$ #61915
Tests
Offline tests
N/A
QA Steps
Same as steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop