From 2f3811d7c102e0d4c4f6973c16167db6582cf8f7 Mon Sep 17 00:00:00 2001 From: Jez Date: Sat, 8 Nov 2025 15:47:40 +1100 Subject: [PATCH] feat: add loading indicator for image uploads in todo form - Add spinning loader icon to submit button during submission - Show specific text when image is being uploaded: - 'Creating with image...' for new todos with images - 'Updating with image...' for editing todos with images - Generic 'Creating...' / 'Updating...' when no image - Disable cancel button during submission - Visual feedback improves UX during potentially slow image uploads Users now see clear indication that image upload is in progress. --- src/modules/todos/components/todo-form.tsx | 43 ++++++++++++++++++---- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/src/modules/todos/components/todo-form.tsx b/src/modules/todos/components/todo-form.tsx index d26d514..e0a4c8a 100644 --- a/src/modules/todos/components/todo-form.tsx +++ b/src/modules/todos/components/todo-form.tsx @@ -499,17 +499,46 @@ export function TodoForm({ type="button" variant="outline" onClick={() => window.history.back()} + disabled={isPending} > Cancel