-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework selection inclusion; new Send button UX #905
Conversation
254f917
to
b2b2395
Compare
bbbe15e
to
917e871
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update the text and screenshots in the user docs to reflect this new UI?
Since this is a fairly significant change to the UX, I'm leaving this PR open for a few more days to allow other contributors to review, test, and offer feedback here. @JasonWeill I'll update the docs after this PR is approved and merged, since the UI may change as others offer feedback. |
👍 For context, on GitHub pressing either |
45671b1
to
b983640
Compare
All comments addressed! This PR is ready for another round of review. @JasonWeill I've just pushed a commit that allows the Send button dropdown menu to be opened with either the Space or Enter key. Thanks for catching that! 👍 |
@JasonWeill Good catch, thanks! Fixed in the latest revision. Screen.Recording.2024-07-29.at.2.29.41.PM.mov |
@JasonWeill OK, I've re-enabled auto focusing for the first item. I had it disabled because I thought it looked ugly, but I'm willing to re-enable it for keyboard accessibility. |
This allows chat handlers to distinguish between the message prompt, selection, and body (prompt + selection). - The backend builds the message body from each `ChatRequest`, which consists of a `prompt` and a `selection`. - The body will be used by most chat handlers, and will be used to render the messages in the UI. - `/fix` uses `prompt` and `selection` separately as it does additional processing on each component. `/fix` does not use `body`.
6d6f67a
to
b678b66
Compare
* remove include selection checkbox * add new selection types to backend * add new TooltippedButton component * add `prompt` field to `HumanChatMessage` This allows chat handlers to distinguish between the message prompt, selection, and body (prompt + selection). - The backend builds the message body from each `ChatRequest`, which consists of a `prompt` and a `selection`. - The body will be used by most chat handlers, and will be used to render the messages in the UI. - `/fix` uses `prompt` and `selection` separately as it does additional processing on each component. `/fix` does not use `body`. * add new include selection icon * implement new send button * pre-commit * fix unit tests * pre-commit * edit cell selection tooltip to indicate output is not included * allow Enter to open dropdown menu * fix double-send bug when using keyboard * re-enable auto focus for first item
Description
/fix
is the current slash command, "Send message with selection" does the same thing as the default "Send message" button, since both of them should always include a code cell w/ error output when/fix
is being called.Demo
Screen.Recording.2024-07-23.at.10.49.29.AM.mov