From 6c38af1507e96834eb31d657558dccbf84c48340 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 12 Aug 2025 22:13:23 -0700 Subject: [PATCH] feat: implement global error handling with Alpine.js and HTMX toast notifications - Added Alpine.js store for managing error toast state - Implemented server error toast notifications for 5xx errors - Replaced manual JavaScript error handling with Alpine.js implementation - Updated body tag to use HTMX response error event listener - Improved error display with better styling and user experience This change provides a consistent way to show server errors to users across the application using HTMX and Alpine.js, making error handling more maintainable and reusable. --- app/templates/base.html | 75 ++++++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 34 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 9d0eca0..c80308c 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -13,6 +13,37 @@ + {% block head %}{% endblock %} - + {% block header %}{% endblock %} {% block content %}{% endblock %} {% block modal %}{% endblock %} - - - -