Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Report an Issue Interface #19

Closed
wdprice opened this issue Dec 7, 2020 · 6 comments
Closed

Report an Issue Interface #19

wdprice opened this issue Dec 7, 2020 · 6 comments

Comments

@wdprice
Copy link

wdprice commented Dec 7, 2020

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 [email protected] 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.

@wdprice wdprice added the enhancement New feature or request label Dec 7, 2020
@wdprice
Copy link
Author

wdprice commented Jan 21, 2021

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.

@maxceem
Copy link
Contributor

maxceem commented Feb 17, 2021

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

    • If we report team, then title should be: 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:

    • if the request was successful, then close popup and show green toastr with "Report submitted successfully"
    • if the request failed, then show red toast with error from the server, hide the loading indicator, enable buttons and show teaxtarea keeping all the text of the user, so user can try to submit report again.
  • Use API endpoint POST /taas-teams/email:

    • body for team report:
       {
         template: "team-issue-report"
         data: {
           projectName: <TEAM NAME>,
           projected: <TEAM ID>,
           reportText: <REPORT TEXT FROM THE TEXTARE>   
         }
      }
    • body for resource/member report:
       {
         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>)}
    • this is so we don't have to repeat the whole code of the popup on each page again and again.
  • Reuse BaseModal - you may update it if needed. But the correct code which uses BaseModal should still work good.

@sandhiyakavi
Copy link
Collaborator

@maxceem The email send to [email protected] doesn't have body section sent

image (20)

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.

bandicam.2021-02-23.16-10-51-219.mp4

Getting error message in case of failure.

report failed_taas app

@maxceem
Copy link
Contributor

maxceem commented Feb 23, 2021

@sandhiyakavi this is ready for QA now.

We've fixed the email body so now it's shown:

image

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.

@sandhiyakavi
Copy link
Collaborator

Verified on Dev Env. It is working as expected.

image
report failed_taas app

@sandhiyakavi
Copy link
Collaborator

Verified in Prod Env.

bandicam.2021-02-26.20-43-25-529.mp4

Failure message.
image

Separate issue logged for Email template #121

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants