Skip to content

🎨 Palette: Add clear disabled states and tooltips when offline#87

Open
teerthsharma wants to merge 1 commit into
mainfrom
palette/ux-offline-state-clarity-13066326533245901586
Open

🎨 Palette: Add clear disabled states and tooltips when offline#87
teerthsharma wants to merge 1 commit into
mainfrom
palette/ux-offline-state-clarity-13066326533245901586

Conversation

@teerthsharma

Copy link
Copy Markdown
Owner

πŸ’‘ What:
Disabled the chat input and send button when the tunnelStatus is not 'LOCKED' (offline). Updated the input placeholder, button title, and aria-labels dynamically to explain that the kernel is offline and waiting for a connection.

🎯 Why:
Previously, users might try to send messages while the kernel was offline without receiving immediate feedback that their input wouldn't be processed. By visibly disabling the inputs and providing explicit reasons (via placeholders and tooltips) for why they are disabled, we remove confusion and make the system's state much clearer and more intuitive.

πŸ“Έ Before/After:
(Visual change: The input field now reads "Kernel offline. Waiting for connection..." and both the input and button appear grayed-out/disabled when offline instead of looking interactive.)

β™Ώ Accessibility:
Coupled the visual disabled:opacity-50 disabled:cursor-not-allowed styles with dynamic aria-label and title attributes on both the input and submit button. This ensures that screen reader users and mouse users hovering over the elements understand precisely why the interactive elements are currently disabled.


PR created automatically by Jules for task 13066326533245901586 started by @teerthsharma

Disabled the chat input and send button when `tunnelStatus` is not 'LOCKED'. Updated the input placeholder, title, and ARIA labels dynamically to explain to the user why they cannot send messages when the kernel is offline. This provides clear contextual feedback and improves accessibility.

Co-authored-by: teerthsharma <78080953+teerthsharma@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

πŸ‘‹ 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.

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