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
[$500] Delete request confirmation modal has Delete comment as the title #28861
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
Hover over the request > click the trash icon on the comment action menu
Observe the title of the modal reads Delete comment
Expected Result:
The delete confirmation modal should read Delete request
Actual Result:
The delete confirmation modal reads Delete comment
Workaround:
N/A
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number:v1.3.77-5 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
changed the title [-]Delete request confirmation modal has `Delete comment` as the title [/-][+][$500] Delete request confirmation modal has `Delete comment` as the title [/+]on Oct 4, 2023
The ConfirmModal title passes empty object reportAction to the reportActionContextMenu.deleteAction translate function which causes the function to render 'comment' because action value is false:
What changes do you think we should make in order to solve the problem?
Within the PopoverReportActionContextMenu.js component pass the correct title by passing {action: reportAction} like it is passed below for the prompt:
The title in video says Delete request (as expected?) 🤔
Ah, you're looking at the second place in the video you can see this same modal where it is indeed correct. Look at the first one shown at 0.10s where it's incorrect.
@OlimpiaZurek@aimane-chnaif this is on prod, so I'm really not sure what happened there. @aimane-chnaif confirming you require payment of $500 for the PR review correct?
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
Activity
melvin-bot commentedon Oct 4, 2023
Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new.
[-]Delete request confirmation modal has `Delete comment` as the title [/-][+][$500] Delete request confirmation modal has `Delete comment` as the title [/+]melvin-bot commentedon Oct 4, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01677c1677ad8e585b
melvin-bot commentedon Oct 4, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Oct 4, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (
External)neonbhai commentedon Oct 4, 2023
The title in video says
Delete request(as expected?) 🤔ikevin127 commentedon Oct 4, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue
The delete confirmation modal reads Delete comment.
What is the root cause of that problem?
The problem is that within the
PopoverReportActionContextMenu.jscomponent:https://github.com/Expensify/App/blob/ef3073066be6855bed47088b29e99a405e1d0feb/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js#L318C1-L333C7
The
ConfirmModaltitle passes empty objectreportActionto thereportActionContextMenu.deleteActiontranslate function which causes the function to render 'comment' because action value is false:https://github.com/Expensify/App/blob/ef3073066be6855bed47088b29e99a405e1d0feb/src/languages/en.ts#L403C1-L403C141
What changes do you think we should make in order to solve the problem?
Within the
PopoverReportActionContextMenu.jscomponent pass the correcttitleby passing{action: reportAction}like it is passed below for the prompt:What alternative solutions did you explore? (Optional)
N/A
Videos
web.mp4
trjExpensify commentedon Oct 4, 2023
Ah, you're looking at the second place in the video you can see this same modal where it is indeed correct. Look at the first one shown at 0.10s where it's incorrect.
PiyushChandra17 commentedon Oct 5, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Delete request confirmation modal has Delete comment as the title
What is the root cause of that problem?
"action"
keyis missing in title prop ofConfirmModal, hereApp/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js
Line 319 in 5e4550b
What changes do you think we should make in order to solve the problem?
We need to add action key here,
title={translate('reportActionContextMenu.deleteAction', {action: reportAction})}as we have specified inpromptpropWhat alternative solutions did you explore? (Optional)
NA
Result:
Screen.Recording.2023-10-05.at.11.37.39.AM.mov
DylanDylann commentedon Oct 5, 2023
This is regression from #27221
11 remaining items
trjExpensify commentedon Oct 16, 2023
Let's make sure we add the reviewing label if it's missing.
melvin-bot commentedon Oct 23, 2023
@trjExpensify, @OlimpiaZurek, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick!
trjExpensify commentedon Oct 23, 2023
Is something wrong with the PR here. It went to staging two weeks ago apparently, but no melvin notice for prod? 🤔
melvin-bot commentedon Oct 31, 2023
@trjExpensify, @OlimpiaZurek, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
trjExpensify commentedon Oct 31, 2023
Bump on the Q above. :)
melvin-bot commentedon Nov 7, 2023
@trjExpensify, @OlimpiaZurek, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick!
trjExpensify commentedon Nov 9, 2023
@OlimpiaZurek @aimane-chnaif this is on prod, so I'm really not sure what happened there. @aimane-chnaif confirming you require payment of $500 for the PR review correct?
aimane-chnaif commentedon Nov 9, 2023
Correct. Not sure what's happening too. There was similar case at that moment. I believe this is on prod as well.
trjExpensify commentedon Nov 9, 2023
Okay offer has been sent. 👍
trjExpensify commentedon Nov 9, 2023
Settled up!