From ad3e1794479e3b3ad9b1f9bb961eae75426f41c8 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Thu, 15 Jan 2026 20:35:49 +0000
Subject: [PATCH] feat(ux): add loading state to generate button
Adds a loading spinner and disabled state to the "Generate Poster" button to provide immediate feedback during an asynchronous operation.
This change improves the user experience by:
- Replacing a disruptive full-screen overlay with a localized spinner.
- Preventing multiple clicks by disabling the button during generation.
- Improving accessibility by adding an `aria-label` to inform screen reader users of the loading state.
---
web_app/static/index.html | 5 ++++-
web_app/static/script.js | 19 ++++++++++++++++---
web_app/static/style.css | 13 +++++++++++++
3 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/web_app/static/index.html b/web_app/static/index.html
index 0d56371..69569a5 100644
--- a/web_app/static/index.html
+++ b/web_app/static/index.html
@@ -116,7 +116,10 @@