-
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
[$500] Web - Assigned task title doesn't update when copying after changing it #26571
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Assigned task title not updated when copying after changing title What is the root cause of that problem?Inconsistent between two text, the displayed text is the translated for actionName + task title, but the copied text is the originalMessage html What changes do you think we should make in order to solve the problem?We need to copy the translated for actionName + task title instead of originalMessage html function getTaskStatusMessageText(actionName, reportID) {
let taskStatusText = '';
switch (actionName) {
case CONST.REPORT.ACTIONS.TYPE.TASKCOMPLETED:
taskStatusText = Localize.translateLocal('task.messages.completed');
break;
case CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED:
taskStatusText = Localize.translateLocal('task.messages.canceled');
break;
case CONST.REPORT.ACTIONS.TYPE.TASKREOPENED:
taskStatusText = Localize.translateLocal('task.messages.reopened');
break;
default:
taskStatusText = Localize.translateLocal('task.task');
}
return `${taskStatusText} ${allReports[reportID].reportName}`;
} and use it here onPress: (closePopover, {reportAction, selection, reportID}) => {
// const messageHtml = isTaskAction ? lodashGet(originalMessage, 'html', '') : lodashGet(message, 'html', '');
const messageHtml = isTaskAction ? ReportActionsUtils.getTaskStatusMessageText(reportAction.actionName, reportID) : lodashGet(message, 'html', ''); The function can use also in TaskAction.js What alternative solutions did you explore? (Optional)we can use |
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
I am really swamped right now and have to prep for Saastr keynote day after at some point. So going to rotate this. |
Triggered auto assignment to @lschurr ( |
Job added to Upwork: https://www.upwork.com/jobs/~0156e96662dd576f73 |
Current assignee @lschurr is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
I reported this issue before @tewodrosGirmaA at Aug 25th. |
Updated already |
thank you. @kbecciv |
@parasharrajat, @lschurr Huh... This is 4 days overdue. Who can take care of this? |
@parasharrajat, @lschurr Eep! 4 days overdue now. Issues have feelings too... |
@parasharrajat could you review this one? |
Same RCA and solution, might solve this one. Right, @parasharrajat |
Yes, a thorough solution will solve all such issues in one go. |
@lschurr Forgot to update you. I already reviewed this earlier and found this issue to be a regression from #24569 (comment) Waiting on further instructions. |
Closing since we decided to fix it here: #26753 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The copied title should reflect the updated title when changes are made to the assigned task title.
Actual Result:
The app continues to copy the original title even after the user has updated it for the assigned task.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.62.0
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
screen-capture.-.2023-08-28T055900.826.mp4
Recording.4192.mp4
Expensify/Expensify Issue URL:
Issue reported by: @oleksandr-pantsyr
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693227344359139
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: