-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Implemented chat type in search #47690
Conversation
What's the status of this PR, I'm asking because my task depends on "chat" filter. |
Waiting on #47753 to merge |
I am not able to figure out the reason for #47690 (comment). @ikevin127 Can you help me here? |
This comment was marked as outdated.
This comment was marked as outdated.
@shubham1206agra ⛏️ Did some digging and it looks like the origin of the issue comes from the
which is passed from here: If the You'll have to figure out how to remove that style only for our specific case. |
@ikevin127 I don't think this is the right reason since we are using Same Anchor Renderer everywhere and it has not affected anything else at all. |
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.
Looking good and tests well. Left a couple of suggestions though.
@ikevin127 could you please prioritize reviewing this PR today? |
Fixed |
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.
LGTM and tests well
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.webmAndroid: mWeb Chromeandroid-mweb.webmiOS: Nativeios.mp4iOS: mWeb Safariios-mweb.mp4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
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.
Thanks for addressing the issues and getting this fixed, looks really good 🚀
Note
Because of the API change and outdated onyx data, first time when I visited Chats on web I was thrown an error something like reportActionItem.message.map is not a function
and app crashed.
This was fixed by Sign Out
which cleared outdated onyx data - NAB but wanted to mention it in case some people might encounter the crash post-merge 👍
Another issue I found is related to the Unread
tab, which currently it does not look like it's working as expected, here's a video of demonstrating having an unread message which doesn't show up in the Unread
tab:
Screen.Recording.2024-09-06.at.13.21.36.mov
Not sure if this is a blocker for this PRs merge or whether it should be handled in this PR or a follow-up, @luacmartins wdyt ?
This shouldn't be an issue since users wouldn't have bad data locally given they didn't have access to this feature. I also have a PR in review that will fix this.
Hmm I tested the unread filter a few times and it worked for me. Either way I don't think that's a blocker for this PR. |
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.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Hey guys, sorry for being late to the party but I didn't see this PR being worked on before, and now that this is merged I noticed some confusion around Chats and existing filters. I can see that possible values for However when working on Advanced Filters We have created 2 specific filters for Chats called: @luacmartins what should be highlighted when user picks for example Also these filters are still not supported by the backend, see here: Right now this issue is not yet visible, because we haven't yet merged this: #48312 which sets filter values from query, so right now you can't choose advanced filters for
What should be the next steps, are we implementing IS and HAS filters on the backend? |
@Kicu I agree that those filters are very similar to the status we have for chats. I was looking at implementing the backend part for them and started running into some issues because of the multi-select case. I think it might make sense to:
|
All great points. Yes, I agree with you Carlos. This design was more aspirational in terms of where we'd like to eventually get with drafts, so let's remove it for now. Equally, anything that already has a status filter shouldn't also show in the advanced filters so let's remove those. One question on removing the |
Discussed this 1:1 with Jason, created an issue here |
thanks for the clarification and issue, someone from SWM will pick this up |
Hey guys, I think this PR caused this bug here. It's an edge case, so I don't think we should block on it, but I'm wondering if I should open it for proposals or assign the original author and reviewer! |
I replied in Slack, but the same issues already exists on production with Expenses |
@@ -55,7 +56,8 @@ function ReportAttachments({route}: ReportAttachmentsProps) { | |||
ComposerFocusManager.setReadyToFocus(); | |||
}} | |||
onCarouselAttachmentChange={onCarouselAttachmentChange} | |||
shouldShowNotFoundPage={!isLoadingApp && !report?.reportID} | |||
shouldShowNotFoundPage={!isLoadingApp && type !== CONST.ATTACHMENT_TYPE.SEARCH && !report?.reportID} | |||
isAuthTokenRequired={type === CONST.ATTACHMENT_TYPE.SEARCH} |
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.
We need to get AuthTokenRequired logic based on the attachment because we also have public resources. Always attaching the auth token could cause this issue.
We need to open room mentions in RHP. |
FYI, this caused the following issue: #48902 |
Details
Fixed Issues
$ #46588
$ #46587
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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