π¨ Palette: Disable chat input during offline state#70
Conversation
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>
|
π 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
π‘ What
Disables the chat input and send button in the
ChatInterfacecomponent 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
not-allowed, and opacity drops by 50%.βΏ Accessibility
Added explicit
aria-labels andtitletags 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