From 8db9382c1c029b201934d23523db5bdb0b66a97f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 20:19:37 +0000 Subject: [PATCH] feat(ux): replace loading overlay with contextual button spinner Replaces the disruptive full-screen loading overlay with a contextual loading spinner inside the "Generate Poster" button. This improves the user experience by providing immediate, non-blocking feedback directly on the interactive element. The implementation includes: - A new loading state for the primary button with a spinner. - Updated JavaScript to manage the button's disabled, loading, and accessible states. - Removal of the old, redundant loading overlay element and styles. Accessibility is addressed by dynamically updating the button's text and `aria-label` to "Generating..." and "Generating poster, please wait." respectively, ensuring screen reader users are informed of the ongoing action. --- web_app/static/index.html | 9 ++++----- web_app/static/script.js | 23 ++++++++++++++++++----- web_app/static/style.css | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 10 deletions(-) diff --git a/web_app/static/index.html b/web_app/static/index.html index 0d56371..b3084d0 100644 --- a/web_app/static/index.html +++ b/web_app/static/index.html @@ -116,7 +116,10 @@