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
There's two main places in the app where the user is prompted to report an error: In unexpected error dialogs and in the Settings sidebar. For these two locations, we should allow the system admin to configure what this link does. This allows the admin to have the user notify them through email (or elsewhere) instead of having them be sent over to GitHub (where they might not have an account / aren't familiar).
The configuration should be done in Project Settings. The entered string will be used in the href for the report error buttons. This allows mailto: and other app links to be used as well. The field should accept a template string that's rendered with micromustache. The variables that should be available in the context of the template are:
error: The Error object that caused the error dialog
route: The current vue-router context
user: Current user (from the userStore)
role: Current role (from the roleStore)
navigator: Browser's navigator object
This would allow the template to be something like https://example.com/report?ua={{navigator.userAgent}}&page={{route.fullPath}}&error={{error}}
Currently this "Report Error" button opens up an issue on the Directus repo.
Could it rather be configurable such that it opens an issue on the project's repo first, such that it could first be debugged there before involving and burdening the Directus Team with all such (possibly minor) issues?
The text was updated successfully, but these errors were encountered:
There's two main places in the app where the user is prompted to report an error: In unexpected error dialogs and in the Settings sidebar. For these two locations, we should allow the system admin to configure what this link does. This allows the admin to have the user notify them through email (or elsewhere) instead of having them be sent over to GitHub (where they might not have an account / aren't familiar).
The configuration should be done in Project Settings. The entered string will be used in the
href
for the report error buttons. This allowsmailto:
and other app links to be used as well. The field should accept a template string that's rendered with micromustache. The variables that should be available in the context of the template are:error
: TheError
object that caused the error dialogroute
: The current vue-router contextuser
: Current user (from the userStore)role
: Current role (from the roleStore)navigator
: Browser'snavigator
objectThis would allow the template to be something like
https://example.com/report?ua={{navigator.userAgent}}&page={{route.fullPath}}&error={{error}}
Discussed in #17259
Originally posted by u12206050 January 21, 2023
Currently this "Report Error" button opens up an issue on the Directus repo.
Could it rather be configurable such that it opens an issue on the project's repo first, such that it could first be debugged there before involving and burdening the Directus Team with all such (possibly minor) issues?
The text was updated successfully, but these errors were encountered: