Skip to content
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

feat(opentrons-ai-client): add prompt button #14970

Merged
merged 16 commits into from
Apr 23, 2024
Merged

feat(opentrons-ai-client): add prompt button #14970

merged 16 commits into from
Apr 23, 2024

Conversation

koji
Copy link
Contributor

@koji koji commented Apr 21, 2024

Overview

add prompt button component and use it in InputPrompt component.

Textarea's CSS will be updated in a following PR

Screen.Recording.2024-04-23.at.8.54.41.AM.mov

close AUTH-334

Test Plan

  • make -C opentrons-ai-client dev and localhost:5173
  • make -C components dev and PromptButton

Changelog

  • add PromptButton component, test, its storybook(not working now)

Review requests

Risk assessment

low

add prompt button component

close AUTH-
@koji koji requested review from ncdiehl11 and jerader April 21, 2024 15:48
@koji
Copy link
Contributor Author

koji commented Apr 21, 2024

  • add tests
  • add stories

@koji koji marked this pull request as ready for review April 22, 2024 19:54
@koji koji requested a review from a team as a code owner April 22, 2024 19:54
@koji koji removed the request for review from a team April 22, 2024 19:54
@ncdiehl11
Copy link
Collaborator

Looks good, just a note that when 100% zoomed on Chrome, the text area appears to be cut off a bit. Also just confirming that the intended behavior is for the clicked prompt button is to remain darker after click
Screenshot 2024-04-23 at 9 43 57 AM

@koji
Copy link
Contributor Author

koji commented Apr 23, 2024

Looks good, just a note that when 100% zoomed on Chrome, the text area appears to be cut off a bit. Also just confirming that the intended behavior is for the clicked prompt button is to remain darker after click Screenshot 2024-04-23 at 9 43 57 AM

yeah, that happens because the height of SidePanel and this is a known issue.
Sue will update the entire application design after the external beta.

Oh thanks, the button's behavior you mentioned isn't expected. I will fix it.

setPrompt(prompt)
}, [setPrompt, buttonText])

return <PromptBtn onClick={handleClick}>{buttonText}</PromptBtn>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once the clicked style of PromptBtn is fixed! 👍

@koji koji merged commit 4c89730 into edge Apr 23, 2024
8 checks passed
@koji koji deleted the feat_add-prompt-button branch April 23, 2024 18:18
Carlos-fernandez pushed a commit that referenced this pull request May 20, 2024
* feat(opentrons-ai-client): add prompt button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants