-
Notifications
You must be signed in to change notification settings - Fork 40
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
OpenAI Prompt History #780
base: main
Are you sure you want to change the base?
Conversation
Use the following command to run this PR with Docker at http://localhost:3000:
|
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.
Aside from some minor nits, LGTM! Nice work! 👍
Co-authored-by: Adam Yeats <16296989+adamyeats@users.noreply.github.com>
Co-authored-by: Adam Yeats <16296989+adamyeats@users.noreply.github.com>
Co-authored-by: Adam Yeats <16296989+adamyeats@users.noreply.github.com>
<div style={{ display: 'flex' }}> | ||
<div style={{ display: 'flex', justifyContent: 'flex-start', margin: '0 10px 0 5px'}}> | ||
<Tooltip | ||
content={'View past generated prompts that are stored on your local browser.'} |
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.
content={'View past generated prompts that are stored on your local browser.'} | |
content={'View previously generated prompts.'} |
variant="secondary" | ||
size="sm" | ||
> | ||
Use this prompt |
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.
Use this prompt | |
Use prompt |
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.
Excellent work @alyssabull! Once this has some tests it'll be ready for merging 😊
This PR builds on the LLM integrations that were completed in #577 and #757 by adding a toggle in the OpenAI Editor that allows a user to view their previously generated prompts. The prompts are stored utilizing
localStorage
and can be easily reused by clicking on theUse this prompt
button or deleted by clicking on the trash can icon. A warning will show if there are no prompts saved and give instructions on how prompts can be saved.Testing still needs to be added but feedback on the UI/UX is welcome while those are being added.
Closes #583