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 2024-01-18] [$500] Add markdown syntax for creating a new task #32864
Please re-state the problem that we are trying to solve in this issue.
Add markdown syntax for creating a new task
What is the root cause of that problem?
New feature
What changes do you think we should make in order to solve the problem?
At function onSubmitComment on ReportScreen we will check if content match with task regex we will create a new task otherwise keep current behavior
constallPersonalDetails=usePersonalDetails();constonSubmitComment=useCallback((text)=>{consttaskRegex=/^\[\](?:\s+@([^\s@]+@[\w.-]+))?\s+(.+)/;constmatch=text.match(taskRegex);if(match){constemail=match[1] ? match[1].trim() : undefined;// Email might be undefined if not capturedconsttitle=match[2];letassignee={};if(email){assignee=_.find(_.values(allPersonalDetails),(p)=>p.login===email)||{};}Task.createTaskAndNavigate(getReportID(route),title,'',assignee.login,assignee.accountID,assignee.assigneeChatReport,report.policyID);}else{Report.addComment(getReportID(route),text);}// We need to scroll to the bottom of the list after the comment is addedconstrefID=setTimeout(()=>{flatListRef.current.scrollToOffset({animated: false,offset: 0});},10);return()=>clearTimeout(refID);},[route],);
POC
32864_POC.mp4
What alternative solutions did you explore? (Optional)
1. Open any chat
2. Send a message in the format `[] @exampleemail@address.com exampletitle` replacing the email with a user email.
3. Verify a task is created and assigned to the entered user, with the entered task title.
Activity
[-]Add markdown syntax for creating a new task[/-][+][$500] Add markdown syntax for creating a new task[/+]melvin-bot commentedon Dec 11, 2023
Job added to Upwork: https://www.upwork.com/jobs/~013d0a874d62f021b7
melvin-bot commentedon Dec 11, 2023
Triggered auto assignment to @bfitzexpensify (
NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details.melvin-bot commentedon Dec 11, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws (
External)suneox commentedon Dec 12, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Add markdown syntax for creating a new task
What is the root cause of that problem?
New feature
What changes do you think we should make in order to solve the problem?
At function
onSubmitCommentonReportScreenwe will check if content match with task regex we will create a new task otherwise keep current behaviorPOC
32864_POC.mp4
What alternative solutions did you explore? (Optional)
47 remaining items
Ollyws commentedon Jan 22, 2024
Regression Test Proposal
Do we agree 👍 or 👎
iwiznia commentedon Jan 22, 2024
Looks good to me
anmurali commentedon Jan 22, 2024
@Ollyws - the previously issued offer expired. So I had to reissue an offer to pay you. It is here
@suneox is paid
iwiznia commentedon Jan 29, 2024
@anmurali can we close this then?
Ollyws commentedon Jan 29, 2024
Still awaiting payment on this one.
iwiznia commentedon Jan 29, 2024
@anmurali can you pay then?
anmurali commentedon Jan 30, 2024
Paid @Ollyws now.