-
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
[$250] [Search v2.2] – All messages from pinned chat are displayed in search pinned section #49570
Comments
Triggered auto assignment to @JmillsExpensify ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @nkuoch ( |
We think that this bug might be related to #wave-control |
I don't think this is a deploy blocker. All messages showing up is the expected behavior. Only thing that needs to be fixed is the unread marker jumping around. |
I can take this issue as part of the Search project |
Job added to Upwork: https://www.upwork.com/jobs/~021838084013513034465 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Looking for proposals! |
Hi team, I'm a bit confused about this point:
As far as I know, we don't have the ability to pin individual messages in a chat; we can only pin the entire chat/report itself. Do you mean that when a user pins a chat, only one entry (the pinned chat) should appear in the Pinned section? And when clicking on it, it should simply open the chat thread with all its messages? |
@abzokhattab as I mentioned here, that part is expected. We should only fix the unread marker jumping around. |
@wildan-m Are you interested in looking into this issue? |
@rayane-djouah sure. Thanks for mentioning that @QichenZhu |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?We are not updating unread marker time when the last unread report action deleted What changes do you think we should make in order to solve the problem?We can update unread marker time when some of the report actions deleted, we can add new condition to indicate some report action deleted add this condition: Change this code to: const mostRecentReportActionCreated = sortedVisibleReportActions[0]?.created ?? '';
const prevMostRecentReportActionCreated = usePrevious(mostRecentReportActionCreated);
useEffect(() => {
if (unreadMarkerReportActionID) {
return;
}
if (mostRecentReportActionCreated <= unreadMarkerTime && mostRecentReportActionCreated >= prevMostRecentReportActionCreated) {
return;
}
setUnreadMarkerTime(mostRecentReportActionCreated); What alternative solutions did you explore? (Optional)To maintain the unread marker visible after repeated search clicks, Also wrap const [unreadMarkerTime, setUnreadMarkerTime] = useState(report.lastReadTime ?? '');
const setUnreadMarkerTimeIfNotSearchReport = (lastReadTime: string) => {
if(route.name === SCREENS.SEARCH.REPORT_RHP)
{
return;
}
setUnreadMarkerTime(lastReadTime)
}
|
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@rayane-djouah let me know what you think of the updated proposal #49570 (comment) |
@luacmartins This bug is no longer reproducible because it was caused by PR #48445, which was reverted in PR #49770. I think we can close this issue. @IuliiaHerets Could you please retest and confirm whether this issue is no longer reproducible? Screen.Recording.2024-10-02.at.3.06.19.PM.mov |
Cool, I agree. Let's close this out once @IuliiaHerets confirms. |
@luacmartins This bug report contains two issues.
Recording.4219.mp4 |
Thanks for confirming!
Yes, this is expected |
Cool, seems like the issue here is resolved. Closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.39-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Issue was found when executing this PR: #49186
Email or phone of affected tester (no customers): gocemate+a2244@gmail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Pinned chat should be present in Pinned section and when open a message green line should remain on the first unread message
Actual Result:
All messages between users from pinned chat are displayed in search pinned section. When open few messages green line change it's position
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6610298_1726863372004.Recording__4010.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @s77rtThe text was updated successfully, but these errors were encountered: