Skip to content

🎨 Palette: [UX improvement] Accessible realtime connection states - #49

Merged
pakorn269 merged 1 commit into
mainfrom
palette/accessible-connection-states-10184444376421016414
Mar 25, 2026
Merged

pakorn269 merged 1 commit into
mainfrom
palette/accessible-connection-states-10184444376421016414

Conversation

@pakorn269

Copy link
Copy Markdown
Owner

💡 What: Added real-time visual and accessible feedback for the WebSocket connection state on the brainstorming server's companion window. The UI now visually displays when it is "Connected", "Connecting...", or "Disconnected" instead of appearing frozen when connection drops. It also includes an accessible loading spinner for the initial empty state.
🎯 Why: Connection drops created a confusing "frozen" state for users, and screen reader users were not notified when the connection restored or dropped. The empty state was also visually unpolished.
📸 Before/After: The waiting screen now has a loading spinner. The top-right corner now dynamically reflects connection status and uses aria-live="polite".
♿ Accessibility: Added aria-live="polite" to the status container so screen readers will announce connection lifecycle changes, and added aria-hidden="true" to the CSS spinner.


PR created automatically by Jules for task 10184444376421016414 started by @pakorn269

- Added a visually appealing empty state with an accessible loading spinner to `server.cjs` waiting page.
- Added dynamic connection state styling (transitions, text, and `aria-live` region) to `frame-template.html` and `helper.js`.
- Fixed an outdated string assertion in `server.test.js`.
- Documented learning in `.Jules/palette.md`.

Co-authored-by: pakorn269 <[email protected]>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@pakorn269
pakorn269 merged commit 7b5db13 into main Mar 25, 2026
@pakorn269
pakorn269 deleted the palette/accessible-connection-states-10184444376421016414 branch March 27, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant