Open synap5e opened 5 years ago
For reference this is implemented on apex-beta as follows
class UserReport extends Error {
constructor(message) {
super(message);
this.name = "<<game key>>";
}
};
function report_issue(){
Sentry.init({
dsn: 'https://3ff0ce0da5ef40c19c6ef3a13a39aea5@sentry.io/1434728',
beforeSend(event, hint) {
Sentry.showReportDialog({
eventId: event.event_id,
labelName: 'Discord Name',
user: {
'name': 'Not Provided',
'email': 'none@example.com'
},
title: 'Report Tracking Issue',
subtitle: 'Please also join the Discord to stay in the loop and provide more feedback if necessary. https://discord.gg/JywstAB',
labelComments: 'What\'s wrong with this game?',
labelSubmit: 'Submit',
});
return event;
}
});
let error = new UserReport('User Reported Issue');
Sentry.captureException(error, {fingerprint: ["<<game key>>"]});
}
As this needs a backend change, assigning it to @synap5e
Here's a fresh DSN for a new sentry project that I created for tracking user feedback.
https://63bf395f7382409dac4f325fb998c914@sentry.io/1450311
I think keep this assigned to me for the meantime though... I'm gonna say this is blocked on me adding overwatch to the v2 tracker, since that will change everything (🙄) so I'm less interested in issues that will be specific to v1.
Add a link on a games page allowing users to report an issue with a game. This would use the javascript sentry module, and show a modal allowing the user to describe the issue. Allowing direct reporting of data issues would streamline the process of having to report in the discord.
This is implemented in the apex-beta site:
This would require a sentry DSN specifically for the reports.