Sentry + Nuxt upgrade & (#738)

Implement Enhanced Validation Logging in UserFormRequest

- Added a `failedValidation` method in `UserFormRequest` to log validation errors, including request data and user information, to the combined log channel and Slack.
- Updated `nuxt.config.ts` to integrate the latest Sentry module and adjusted configurations for improved error tracking.
- Refactored the `FeatureBase.vue` component to include error handling during user setup.
- Removed the deprecated Sentry plugin and replaced it with the new Sentry Nuxt integration for better performance and maintainability.

These changes aim to enhance error tracking and improve the overall robustness of form validation and user experience.
This commit is contained in:
Chirag Chhatrala
2025-04-01 21:11:10 +05:30
committed by GitHub
parent 3dd3147b19
commit 7efa8ed9cb
8 changed files with 6482 additions and 5267 deletions

View File

@@ -68,14 +68,22 @@ onMounted(() => {
if (!user.value) return
loadScript()
setupForUser()
try {
setupForUser()
} catch (error) {
console.error(error)
}
})
watch(user, (val) => {
if (import.meta.server || !val) return
loadScript()
setupForUser()
try {
setupForUser()
} catch (error) {
console.error(error)
}
})
</script>