Skip to content

🎨 Palette: Disable chat input during offline state#70

Open
teerthsharma wants to merge 1 commit into
mainfrom
palette-offline-ux-1595535961094237573
Open

🎨 Palette: Disable chat input during offline state#70
teerthsharma wants to merge 1 commit into
mainfrom
palette-offline-ux-1595535961094237573

Conversation

@teerthsharma

Copy link
Copy Markdown
Owner

πŸ’‘ What

Disables the chat input and send button in the ChatInterface component whenever the DSP Downlink is offline (i.e. tunnelStatus !== 'LOCKED').

🎯 Why

Previously, the input remained active during disconnects, leading to ghost interactions where the user could try to send a message to a severed downlink. This UX enhancement ensures the system state is accurately reflected in the user's controls, preventing confusion.

πŸ“Έ Before/After

  • Before: Input accepts text and the button is clickable, but nothing happens if the WASM bus is disconnected.
  • After: Input placeholder reads "Downlink offline...", the text input and send button are disabled, cursor changes to not-allowed, and opacity drops by 50%.

β™Ώ Accessibility

Added explicit aria-labels and title tags that dynamically update to explain why the input is disabled (e.g. "Input disabled while offline", "System offline"), improving context for screen reader users and those navigating via keyboard.


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

Extracts `tunnelStatus` from `useApeiron` and updates the chat interface to cleanly disable the input field and send button when the system is offline (`tunnelStatus !== 'LOCKED'`). Also provides comprehensive accessibility labeling and dynamic placeholder text to indicate the disabled reason.

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