From 06e8de800aa0657d4100c647b62816bd83c174dc Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 20 May 2026 21:53:44 +0000 Subject: [PATCH] feat: add ErrorNotification component and API error handling in Nuisance form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add ts/rmo/components/ErrorNotification.vue — reusable error alert with dismiss support, accessible markup, and configurable message - Replace inline error div in Nuisance.vue with ErrorNotification - Add resp.ok check in doSubmit() so HTTP error responses are caught and the workflow stops instead of proceeding to /submitted - Fix typo: borwser → browser Issue: #8 --- ts/rmo/components/ErrorNotification.vue | 81 +++++++++++++++++++++++++ ts/rmo/content/Nuisance.vue | 15 +++-- 2 files changed, 92 insertions(+), 4 deletions(-) create mode 100644 ts/rmo/components/ErrorNotification.vue diff --git a/ts/rmo/components/ErrorNotification.vue b/ts/rmo/components/ErrorNotification.vue new file mode 100644 index 00000000..0ebec4e9 --- /dev/null +++ b/ts/rmo/components/ErrorNotification.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/ts/rmo/content/Nuisance.vue b/ts/rmo/content/Nuisance.vue index ca283deb..4350de40 100644 --- a/ts/rmo/content/Nuisance.vue +++ b/ts/rmo/content/Nuisance.vue @@ -444,9 +444,11 @@ select.tall {

-
- ✗ {{ errorMessage }} -
+