Sentry User Feedback
Sentry User Feedback integration.
Author:
Martin Petričko
Documentation
Filament Sentry Feedback integrates the Sentry User Feedback widget with FilamentPHP.
#Installation
You can install the package via composer:
composer require martinpetricko/filament-sentry-feedback
If you'd like to customize the translations used by the package, you can publish the language files:
php artisan vendor:publish --tag="filament-sentry-feedback-translations"
Optionally, publish the config file:
php artisan vendor:publish --tag="filament-sentry-feedback-config"
These are the contents of the published config file:
return [
/**
* https://docs.sentry.io/concepts/key-terms/dsn-explainer/#where-to-find-your-data-source-name-dsn
*/
'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')),
/**
* https://docs.sentry.io/platforms/javascript/user-feedback/configuration/
*/
'widget' => [
'element_id' => 'sentry-feedback',
'color_scheme' => ColorScheme::Auto,
'show_branding' => false,
'show_name' => true,
'is_name_required' => false,
'show_email' => true,
'is_email_required' => true,
'enable_screenshot' => true,
],
];
Set your Sentry DSN in the .env file:
SENTRY_LARAVEL_DSN=https://examplePublicKey@o0.ingest.sentry.io/0
Register the plugin in your Filament panel:
->plugins([
\MartinPetricko\FilamentSentryFeedback\FilamentSentryFeedbackPlugin::make(),
])
You can preload authenticated user data for Sentry Feedback widget by defining SentryUser entity:
->plugins([
\MartinPetricko\FilamentSentryFeedback\FilamentSentryFeedbackPlugin::make()
->sentryUser(function (): ?SentryUser {
return new SentryUser(auth()->user()->name, auth()->user()->email);
}),
])
You can override the global config per panel:
->plugins([
\MartinPetricko\FilamentSentryFeedback\FilamentSentryFeedbackPlugin::make()
->dsn('https://examplePublicKey@o0.ingest.sentry.io/0')
->elementId('sentry-feedback')
->colorScheme(ColorScheme::Auto)
->showBranding(true)
->showName(true)
->isNameRequired(true)
->showEmail(true)
->isEmailRequired(true)
->enableScreenshot(true),
])
#CSS Customization
To customize the appearance of the feedback widget:
- Create a custom theme for your panel.
- Override the Sentry Feedback widget's CSS variables
#Testing
composer test
#Contributing
Please see CONTRIBUTING for details.
#Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
I began my programming journey in elementary school as a hobby, which grew into a passion. Since then, I have consistently pursued growth and creating effective solutions. Specializing in back-end development, I prioritize writing clean, maintainable, and standards-compliant code.
From the same author
Restore or Create
Restore or Create is a plugin that helps prevent duplicate records by detecting and restoring soft-deleted models when similar data is submitted via a create form.
Author:
Martin Petričko
Database Mail
Are you tired of writing email templates in laravel, managing all translations and editing them always when something changes? Well not anymore! Let your clients manage them in filament panel and call it a feature!
Author:
Martin Petričko
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Custom Fields
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Relaticle
Data Lens
Advanced Data Visualization for Laravel Filament - a premium reporting solution enabling custom column creation, sophisticated filtering, and enterprise-grade data insights within admin panels.
Padmission