OpenFn / lightning

OpenFn/Lightning ⚡️ is the newest version of the OpenFn DPG and provides a web UI to visually manage complex workflow automation projects.
https://openfn.github.io/lightning/
GNU Lesser General Public License v3.0
123 stars 33 forks source link

AI assistant: ctrl + enter should send message #2406

Open josephjclark opened 3 weeks ago

josephjclark commented 3 weeks ago

When typing a question to the AI assistant, at the moment I have to click the send button to actually send the message.

This is annoying UX. I just want to hit ctrl + enter to send the message.

Obviously this conflicts with ctrl + enter to run a workflow. To mitigate this I suggest:

1: Make sure the focus on the chat window is super clear (I think it's good now tbh?) 2: Maybe some indicator on the Send button. Perhaps it's a bolder colour whilethe text input has focus, and it fades a bit when focus is off 3: Perhaps also grey out the Create New Work Order button, or fade it slightly or de-emphasise it, when the AI editor has focus

Can I also recommend that you can't send a message when there's no text?

josephjclark commented 3 weeks ago

In fact when I'm trying to use the AI agent and I hit ctrl + enter, and the workflkow is primed with some input, it'll actually run the workflow.

This is DEFINITELY not what I want. At the very least here, ctrl + enter should NOT run a workflow if the assistant chat window has focus