-
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
[Due for payment 2025-03-05] [$250] Track expense - Wrong position of the "New Message" line when track expense offline #55560
Comments
Triggered auto assignment to @slafortune ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-01-21 22:01:06 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Track expense - Wrong position of the "New Message" line when track expense offline What is the root cause of that problem?logic is not couting for offline case What changes do you think we should make in order to solve the problem?add check for offline :
or don't show UnreadActionIndicator for
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?UI issue What alternative solutions did you explore? (Optional)another solution is filter out whisper actions in reportActionsList :
and replace them here :
|
🚨 Edited by proposal-police: This proposal was edited at 2025-01-22 03:01:37 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The new message marker position is shown on the track expense actionable whisper. What is the root cause of that problem?The actionable whisper is detected as a message that is received while the user is offline. App/src/pages/home/report/ReportActionsList.tsx Lines 281 to 285 in 0190b0a
This is the logic to decide whether the message is received while offline or not. App/src/pages/home/report/ReportActionsList.tsx Lines 250 to 254 in 0190b0a
App/src/libs/ReportActionsUtils.ts Lines 1862 to 1887 in 0190b0a
The logic was added in #49480 to show a new message marker when the user receives a message from another user/actor while offline. In our case, the actor of the actionable whisper is concierge. The problem is, in App/src/libs/ReportActionsUtils.ts Lines 1873 to 1883 in 0190b0a
Based on the logic above, this can only happens if an optimistic action was added while the user is offline. What changes do you think we should make in order to solve the problem?I don't think we want to mark an optimistic action as unread even when it's not from the current user, so I suggest to remove the App/src/libs/ReportActionsUtils.ts Lines 1880 to 1883 in 0190b0a
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can add a new test to UnreadIndicatorsTest to make sure there is no unread marker line when tracking an expense. |
@slafortune Eep! 4 days overdue now. Issues have feelings too... |
Job added to Upwork: https://www.upwork.com/jobs/~021884333549452358300 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
@slafortune, @rayane-djouah Eep! 4 days overdue now. Issues have feelings too... |
Sorry for the delay; I was sick at the end of last week. I'll review the issue today. |
@slafortune @rayane-d this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
ty @rayane-d! Let's try and get next steps actioned today/tomorrow at latest! |
I think the expected behavior is to not display the new message line at all in offline mode, consistent with the behavior in online mode (where no "New Message" marker appears). |
@bernhardoj's proposal looks good to me 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
kind bump @lakchote |
@slafortune, @lakchote, @rayane-d Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@bernhardoj's proposal LGTM |
📣 @rayane-d 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @rayane-d |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.5-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-03-05. 🎊 For reference, here are some details about the assignees on this issue:
|
@rayane-d @slafortune @rayane-d The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
I will request on NewDot once the summary is posted |
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: v9.0.88-4
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: Mac 15.2
App Component: Chat Report View
Action Performed:
Expected Result:
The "New Message" line is displayed above the created track expense and actionable whisper menu while offline or no "New Message" marker appears
Actual Result:
The "New Message" line is displayed under the created track expense while offline
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @slafortuneThe text was updated successfully, but these errors were encountered: