Closed wdprice closed 3 years ago
Our goal will be to integrate w/ SFDC to create an escalation record in place of sending an email to customer success. More details to come as we solution w/ the SFDC team.
Email will be fallback plan.
Sum up:
User can send a report for the whole team by clicking "Report Issue" on the team list page (screenshot) or on the Team Detail page (screenshot)
Or we can send a report for a particular resource (screenshot)
At the moment we just directly open the email client so user can send the email. Instead of this, we would like to implement UI for sending reports and connect it to the API. Remove the current logic which is not used anymore including email configs.
When we click the "Report Issue" button in any of these places, we have to show the popup https://marvelapp.com/prototype/921gg0f/screen/75360462/handoff
Issue Report - <TEAM NAME>
. If we report resource, then the title should be Issue Report - <TEAM NAME> - <RESOURCE HANDLE>
User should be able to enter any text inside the report and click "Submit" (disabled if no text).
When the user clicks "Submit" we should disable buttons, show the loading indicator like during member deleting (see video) and send a request to the API endpoint:
Use API endpoint POST /taas-teams/email
:
{
template: "team-issue-report"
data: {
projectName: <TEAM NAME>,
projected: <TEAM ID>,
reportText: <REPORT TEXT FROM THE TEXTARE>
}
}
{
template: "member-issue-report"
data: {
projectName: <TEAM NAME>,
projected: <TEAM ID>,
reportText: <REPORT TEXT FROM THE TEXTARE>,
userHandle: <HANDLE OF THE REPORTED USER>,
}
}
❗ Note, that we would like to show this report popup on 2 pages: Team List and Team Details. We would like to be able to open this popup by a single method, like
import { showReportPopup } from 'components/ReportPopup'
// somewhere in the code
onClick={() => showReportPopup(<TEAM NAME>, <TEAM ID>, <HANDLE>)}
Reuse BaseModal - you may update it if needed. But the correct code which uses BaseModal
should still work good.
@maxceem The email send to customersuccess@topcoder-dev.com doesn't have body section sent
Other than that ,everything is working fine
Getting success message for Report send from Team listings, Team details page and Report send for particular resource.
Getting error message in case of failure.
@sandhiyakavi this is ready for QA now.
We've fixed the email body so now it's shown:
I’ve tried to improve formatting, but it appears hard to do without changing the email template. So I guess we have to release with such formatting for now and we would have to improve the email template after.
Verified on Dev Env. It is working as expected.
Verified in Prod Env.
Failure message.
Separate issue logged for Email template https://github.com/topcoder-platform/taas-app/issues/121
Implement a modal (or equivalent) to appear when the user clicks on the "Report an Issue" button on the MyTeams page. Same Modal should be used when a user clicks the "Report an Issue" in the actions menu on a particular resource.
Model should include a Subject Line(non-editable) and Body labeled as "Describe your issue" (editable).
Subject Line (Team level): Issue Report - TEAM NAME Subject Line (resourceBooking level): Issue Report - TEAM NAME - RESOURCE HANDLE
Body should be a text area.
On submission of the form, send an email to
customersuccess@topcoder.com
with the Subject Line defined above and the body as defined by the user. Append a link to the corresponding team detail page at the end of the email body.