AndrewVeee / nucleo-ai

An AI assistant beyond the chat box.
Apache License 2.0
315 stars 29 forks source link

Add Send Button for Improved Message Sending Experience #14

Open TanmayDhobale opened 8 months ago

TanmayDhobale commented 8 months ago

Issue Description: Currently, users face inconvenience when trying to send messages consisting of multiple lines in the chat interface. Upon selecting multiple lines of text and hitting enter, the message input field moves to a new line instead of sending the message. This behavior interrupts the flow of communication and requires additional steps to send the message, leading to a suboptimal user experience.

Proposed Solution: To address this issue and enhance the message sending experience, I propose adding a send button adjacent to the chat input field. The send button will provide users with a convenient way to send messages after composing them, irrespective of whether the message spans multiple lines. Users will have the option to either hit enter or click the send button to transmit their messages, providing flexibility and improving usability.

Expected Behavior:

  1. A send button will be displayed next to the chat input field.
  2. Users can compose messages in the input field, including multi-line messages.
  3. After composing the message, users can click the send button to transmit the message.
  4. Clicking the send button will send the entire message, regardless of whether it spans multiple lines.
  5. The send button will complement the existing functionality of hitting enter to send messages, providing users with an alternative method for message transmission.

Benefits:

Implementation Details:

Screenshot 2567-03-07 at 11 20 07 PM
AndrewVeee commented 8 months ago

Thanks for the detailed post!

I removed some helper text that mentions Shift+Enter sends the message in multi-line mode. Is that why it's annoying right now?

Either way, I think you're right that a send button should be there. Maybe just a small button with an icon that has the same height as the text field.

TanmayDhobale commented 8 months ago

its annoying bcs if i select an option multiline then how can send the chat directly ? ive have to again click on the multiline off btn then only i can send the chat so its little annoying , if its not annoying for others then its completely fine

AndrewVeee commented 8 months ago

Sorry if it's not clear. You should be able to use shift+enter to send text in multi line mode.

I would like to know if that isn't working, but I still want to add a button.

TanmayDhobale commented 8 months ago

@AndrewVeee got it go it !!!! my bad