Skip to content

Conversation

@mmeester
Copy link

@mmeester mmeester commented Dec 9, 2025

Summary

Create the ability to use the sentry customer feedback button

Checklist

  • I've ran composer run codestyle
  • I've ran composer run analyse

Resolves #228

@mmeester mmeester force-pushed the feat/user-feedback-button branch from 6097ac3 to 7170ddd Compare December 9, 2025 08:15
@royduin
Copy link
Member

royduin commented Dec 9, 2025

I remember when I used the feedback form I'd to translate everything with:

Sentry.showReportDialog({
    eventId: '{{ Sentry::getLastEventID() }}',
    user: {
        name: '{{ $name }}',
        email: '{{ $email }}',
    },
    lang: '{{ App::getLocale() }}',
    title: '@lang('It looks like we’re having issues.')',
    subtitle: '@lang('Our team has been notified.')',
    subtitle2: '@lang('If you’d like to help, tell us what happened below.')',
    labelName: '@lang('Name')',
    labelEmail: '@lang('Email')',
    labelComments: '@lang('What happened?')',
    labelClose: '@lang('Close')',
    labelSubmit: '@lang('Submit')',
    errorGeneric: '@lang('An unknown error occurred while submitting your report. Please try again.')',
    errorFormEntry: '@lang('Some fields were invalid. Please correct the errors and try again.')',
    successMessage: '@lang('Your feedback has been sent. Thank you!')',
});

(code taken from a Laravel Blade view)

Is that still the case?

@mmeester
Copy link
Author

mmeester commented Dec 9, 2025

@royduin I must say I have been doubting about all these settings if they should be included in the settings, WDYT each setting an admin field or one text area with a reference to the setting page?

@royduin
Copy link
Member

royduin commented Dec 9, 2025

A textarea injected feels a bit hacky but a field for every settings feels bloated. Maybe an additional template partial so it's possible to extend the settings from your own theme? Or maybe make them translatable as in my example? I don't know... @indykoning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[⭐]: Add ability to enable Sentry's User Feedback button

2 participants