You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2025-02-05] [$250] Actionable whisper: the "New message" floating button appears when it shouldn't #49824
What changes do you think we should make in order to solve the problem?
Instead of manually return null when the whisper action is resolved, we should filter it out early here by including it in shouldReportActionBeVisible.
changed the title [-] Actionable whisper: the "New message" floating button appears when it shouldn't[/-][+][$250] Actionable whisper: the "New message" floating button appears when it shouldn't[/+]on Sep 27, 2024
@paultsimura is not actually due any payment here, we have a bug where we put the person who reported the bug in the list of people who need to be paid.
Ah, sorry @bernhardoj and thanks for the clarification! @ishpaul777 - please finish the BZ checklist so I can complete the payment and close the issue.
Contributor: @bernhardoj $250, please request via NewDot
Contributor+: @ishpaul777 $250, we will complete the Upwork contract payment once the BZ checklist is complete. Paid via Upwork
Ah, sorry @bernhardoj and thanks for the clarification! @ishpaul777 - please finish the BZ checklist so I can complete the payment and close the issue.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not criitcal
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. - Yes
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Create a room;
Mention a user that is not a member of this room using the @{user} syntax;
Notice the actionable whisper "Heads up, {user} isn't a member of this room" message appears;
Click "Do nothing"
verify The "New messages" floating button does not appears.
Activity
melvin-bot commentedon Sep 26, 2024
Triggered auto assignment to @sakluger (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.bernhardoj commentedon Sep 27, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The New message shows after selecting Do nothing of an actionable mention whisper
What is the root cause of that problem?
In this issue, the New message shows because
hasNewestReportActionis false.App/src/pages/home/report/ReportActionsList.tsx
Lines 627 to 631 in 33818a9
hasNewestReportActioncompares if the reportlastVisibileActionCreatedequals the newest actioncreated.App/src/pages/home/report/ReportActionsList.tsx
Line 282 in 33818a9
When we resolve the actionable mention whisper, we optimistically update the report
lastVisibleActionCreatedto the previous actioncreated.App/src/libs/actions/Report.ts
Line 3815 in 33818a9
However, the
sortedVisibleReportActionshere still contains the resolved actionable mention whisper.App/src/pages/home/report/ReportActionsList.tsx
Line 282 in 33818a9
We already filter here to filter out any action that shouldn't be visible, but the resolved whisper is not included.
App/src/pages/home/report/ReportActionsList.tsx
Lines 191 to 198 in 33818a9
The reason the resolved whisper is not shown in the chat is because we manually return null if it's resolved.
App/src/pages/home/report/ReportActionItem.tsx
Lines 875 to 878 in 33818a9
What changes do you think we should make in order to solve the problem?
Instead of manually return null when the whisper action is resolved, we should filter it out early here by including it in
shouldReportActionBeVisible.App/src/pages/home/report/ReportActionsList.tsx
Lines 191 to 198 in 4c76858
[-] Actionable whisper: the "New message" floating button appears when it shouldn't[/-][+][$250] Actionable whisper: the "New message" floating button appears when it shouldn't[/+]melvin-bot commentedon Sep 27, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021839703879939232277
melvin-bot commentedon Sep 27, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 (
External)ishpaul777 commentedon Sep 27, 2024
Reviewing 👀
ishpaul777 commentedon Sep 27, 2024
@bernhardoj's Proposal makes sense 👍 and works well
🎀 👀 🎀 C+ reviewed
Screen.Recording.2024-09-27.at.10.32.32.PM.mov
ishpaul777 commentedon Sep 27, 2024
🎀 👀 🎀 C+ reviewed ^
44 remaining items
sakluger commentedon Feb 4, 2025
@paultsimura is not actually due any payment here, we have a bug where we put the person who reported the bug in the list of people who need to be paid.
sakluger commentedon Feb 4, 2025
@bernhardoj please complete the BZ checklist before the payment due date tommorrow. Thanks!
bernhardoj commentedon Feb 5, 2025
@ishpaul777 is the C+ here
sakluger commentedon Feb 5, 2025
Ah, sorry @bernhardoj and thanks for the clarification! @ishpaul777 - please finish the BZ checklist so I can complete the payment and close the issue.
sakluger commentedon Feb 5, 2025
Summarizing payment on this issue:
Contributor: @bernhardoj $250, please request via NewDot
Contributor+: @ishpaul777 $250,
we will complete the Upwork contract payment once the BZ checklist is complete.Paid via Upworkishpaul777 commentedon Feb 5, 2025
will do In few mins!
ishpaul777 commentedon Feb 5, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/34560/files#r1943636054
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not criitcal
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. - Yes
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Do we agree 👍 or 👎
ishpaul777 commentedon Feb 5, 2025
I have been paid already, see - #49824 (comment)
sakluger commentedon Feb 5, 2025
Thanks @ishpaul777, I missed that comment! Appreciate you calling it out.
sakluger commentedon Feb 5, 2025
Thanks everyone!
bernhardoj commentedon Feb 6, 2025
Requested in ND.
JmillsExpensify commentedon Feb 10, 2025
$250 approved for @bernhardoj