From fcd6fcf0919fcfc6823e9ffb69d88d1b3fb387f9 Mon Sep 17 00:00:00 2001 From: ggq-admin Date: Mon, 20 Oct 2025 01:55:28 +0200 Subject: [PATCH] Add toast notification system and improve error handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Created useToast composable with success/error/warning/info methods - Added ToastContainer component with animations and colors - Integrated toast notifications throughout the app: * Upload success/failure feedback * OCR completion/failure notifications * Replaced alert() with toast messages - Fixed HTML validation warning (div inside p tag) - Added automatic toast notifications on job status changes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- client/src/App.vue | 2 + client/src/components/ToastContainer.vue | 86 ++++++++++++++++++++++++ client/src/components/UploadModal.vue | 8 ++- client/src/composables/useJobPolling.js | 13 ++++ client/src/composables/useToast.js | 64 ++++++++++++++++++ 5 files changed, 170 insertions(+), 3 deletions(-) create mode 100644 client/src/components/ToastContainer.vue create mode 100644 client/src/composables/useToast.js diff --git a/client/src/App.vue b/client/src/App.vue index b7ce5da..dbeeab0 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,9 +1,11 @@ diff --git a/client/src/components/ToastContainer.vue b/client/src/components/ToastContainer.vue new file mode 100644 index 0000000..9a3418a --- /dev/null +++ b/client/src/components/ToastContainer.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/client/src/components/UploadModal.vue b/client/src/components/UploadModal.vue index 18cf257..1ea1504 100644 --- a/client/src/components/UploadModal.vue +++ b/client/src/components/UploadModal.vue @@ -57,10 +57,10 @@

{{ selectedFile.name }}

{{ formatFileSize(selectedFile.size) }}

-

+

Extracting metadata from first page... -

+