From 2cd3dbabe53dec4ce5705ca126d60c5c1fc10abe Mon Sep 17 00:00:00 2001 From: Chuck Date: Sat, 23 May 2026 12:20:54 -0400 Subject: [PATCH] fix(web-ui): show error toast on non-JSON 4xx/5xx quick-action responses In the catch block of all 11 hx-on:htmx:after-request handlers, check xhr.status >= 400 and downgrade s to 'error' so a failed action that returns an HTML error page (or other non-JSON body) surfaces as an error toast instead of the optimistic 'success'/'info' default. Co-Authored-By: Claude Sonnet 4.6 --- web_interface/templates/v3/index.html | 8 ++++---- web_interface/templates/v3/partials/overview.html | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/web_interface/templates/v3/index.html b/web_interface/templates/v3/index.html index 9f5f3635..c064dfd1 100644 --- a/web_interface/templates/v3/index.html +++ b/web_interface/templates/v3/index.html @@ -73,7 +73,7 @@