-
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
[HOLD for payment 2023-09-29] [$1000] Show different UI for a cancelled task #19504
Comments
Triggered auto assignment to @shawnborton ( |
Can you start a Slack discussion for this? I think the strikethrough might not be a good idea because that's an offline pattern to indicate that something would be deleted cc @JmillsExpensify @trjExpensify Also, I'm curious why a task can even be cancelled in the first place? Why not just delete it? |
Started thread here: https://expensify.slack.com/archives/C04QEB4MJEQ/p1685984349292879 Seems like what we need to do here is: |
Job added to Upwork: https://www.upwork.com/jobs/~01fbfabca6cddecf7f |
Triggered auto assignment to @greg-schroeder ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Current assignee @thienlnam is eligible for the External assigner, not assigning anyone new. |
how to create a task? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Show different UI for a cancelled task What is the root cause of that problem?We use this to show cancel task - What changes do you think we should make in order to solve the problem?Change the UI for cancelled task to this
What alternative solutions did you explore? (Optional)If we want to hide the task title, we can hide the title when task is deleted - {props.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKCANCELED && <Text style={[styles.chatItemMessage]}>{` ${taskReportName}`}</Text>} |
ProposalPlease re-state the problem that we are trying to solve in this issue.Show different UI for a cancelled task What is the root cause of that problem?Not a bug, its enchantment. What changes do you think we should make in order to solve the problem?For achieving this result. we need to refactor TaskPreview.js childTaskReport:{
key:({childReportID})=> `${ONYXKEYS.COLLECTION.REPORT}${childReportID}`,
} then we can update component to check if task is cancelled or not. const isTaskCancelled = props.childTaskReport.stateNum === CONST.REPORT.STATE_NUM.SUBMITTED && props.childTaskReport.statusNum === CONST.REPORT.STATUS.CLOSED
if(isTaskCancelled) {
return <Text>{props.translate('task.messages.deleted')}</Text>
}
// other code
return (
...
) and we need to pass App/src/pages/home/report/ReportActionItem.js Lines 239 to 245 in f104baa
we can update this to: <TaskPreview
taskReportID={props.action.originalMessage.taskReportID.toString()}
childReportID={props.action.childReportID.toString()}
action={props.action}
isHovered={hovered}
/> VideosScreen.Recording.2023-06-06.at.12.45.12.AM.movWhat alternative solutions did you explore? (Optional)None |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Hey @thienlnam is this issue complete? It seems the PR was deployed to Prod... and also seems like maybe it was 100% Internal? |
The issue requires BE and FE changes - I'm currently working on the App (FE) changes in #24137 Mostly internal, but we'll still need to pay C+ for reviewing the App PR when it is ready |
Gotcha 👍 |
Draft PR continues to be worked on |
Heads down in wave 5 this week so haven't been able to get around to this |
Sounds like Jack will get to this soon! |
Sorry - can you help me understand where we're at on this one @thienlnam? |
App PR in review! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 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 2023-09-29. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
This is internal and there's no issue reporter. So only @mollfpr requires payment. Looks like that'll be $1,000 - you can make a manual request! |
I don't think we need the traditional C+ checklist for this, but please let me know if you disagree. Closing this out as payment will be handled via NewDot. |
$1,000 payment approved for @mollfpr based on comment above. |
Right now, when a task is cancelled nothing about the task preview changes
Updates:
The task report is no longer archived. We will adjust the UI if a task parentReportID is deleted.
TODO:
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: