-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
cody: new chat ui with stop generating button #53332
Conversation
client/cody/webviews/Chat.module.css
Outdated
} | ||
|
||
.submit-button-disabled { | ||
cursor: not-allowed; |
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.
show the button with not-allowed
cursor to address feedback from users where they thought the button is clickable when it's not
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.
Ideally it would visually change too, but this works in a pinch.
I really like ChatGPT mobile’s interface, with the button transitioning to the stop button. I think that actually might be the better way for where we take this in the future.
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.
Yea i totally agree. I thought about updating that but i feel like i should do that in a different PR like you said in the future ;)
I checked it out, and I really like where you've put the feedback and edit buttons. They look great! Let's position the Stop Generating button fixed to the bottom, above the compose box: Screen.Recording.2023-06-16.at.11.46.09.am.movI've transitioned the button in with a fade and small slide up, and a straight fade out to transition out. Let me know if you want me to help work on the transitions. Here's the Figma (with clickable prototype): (While I was here, I also designing the "..." animation. Maybe we can do that in a follow up? I can help with the CSS animations there too) |
@abeatrix are all the background shades okay to you? If there's any inconsistencies in the Figma to how we're using the VS Code theme color variables, let me know… because there's a good chance it was an accident/oversight, not by design. Same for the "Stop Generating" button colours there… I used the small Figma VS Code button component, but the color and hover color etc should be the standard secondary one we're using. |
If we update the position of the button in the shared package, I think I will also need to update the button styles in the web client since it behaves differently than the editor one right now ( see video below, you needs to chase the button to stop it before the request is done :P). What do you think? Cody.AI.Chat.Web.Stop.Generating.Example.mp4 |
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.
Nice!
I think we don't want people to be chasing buttons 😂 |
The gradient border on the left side on web looks a bit odd to me, given it will be of variable length. @almeidapaulooliveira can give approval from design side regarding this. Otherwise LGTM. |
@thenamankumar Thanks for doing all the work for web and for letting me copy your homework 🥹 |
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.
@abeatrix I'm thinking that inline fixups, non-stop fixups will need a signal when the response is cancelled so that they don't sit around spinning forever or try to respin something that the user cancelled. (What happens when you hit cancel on them today?)
@dominiccooney I totally forgot about them 😅 I've updated so that Here is how it looks like when users click on the abort button when running the fixups: https://www.loom.com/share/9431081714d448e8a022032bfcc61aed?sid=ae1bc365-d1b5-425b-b19b-5a9fd98f1c0b |
@toolmantim @almeidapaulooliveira Can i get your review for the Pending UI Review please? |
Thanks @toolmantim ❤️ |
I gave the web styles a bit more of a thorough test, as I wanted to follow up on @thenamankumar’s comment above. And I've just pushed fixes for how it applies to Cody web.
|
Close #53364 & #50058
Demo
cody.stop.gen.mp4
Test plan
UI updated. Current tests are still passing:
cd client/cody pnpm test:e2e
VS Code
Abort.Button.in.VS.Code.mp4
When Fixup is running
Cody.VS.Code_.Abort.button.for.Inline.and.Nonstop.fixups.mp4
Web
Cody.AI.Chat.-.dev.Sourcegraph.-.16.June.2023.mp4