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

🐛 Bug Report: Last saved Prompt remains on "Add Prompt" #1351

Open
2 tasks done
lakshmi930 opened this issue Oct 21, 2024 · 1 comment
Open
2 tasks done

🐛 Bug Report: Last saved Prompt remains on "Add Prompt" #1351

lakshmi930 opened this issue Oct 21, 2024 · 1 comment
Assignees

Comments

@lakshmi930
Copy link
Contributor

lakshmi930 commented Oct 21, 2024

📜 Description

  1. Clicking on "Add Prompt" button on Settings page, retains the last created Prompt on the session and have to be manually cleared. Either we can fix that the modal is fresh everytime or we can have the input fields to have some clear button.

  2. We can create prompts with same names, even as those of default ones and we can't edit the default ones (even though edit button is accessible but save is not). Not sure if this is intended.

  3. Another bug that could be fixed with the same modal is that we can save a prompt without any details (title, prompt etc.). This might be misused I'm not sure, but definitely looks bad as the name on dropdown is undefined.

👟 Reproduction steps

  1. Go to Settings page
  2. Click on the "Add New" button below the Active Prompt section
image
  1. Fill the Prompt section
  2. Click "Save"
  3. Click the "Add New" button again
  4. The Prompt modal opens again

👍 Expected behavior

Expected an empty modal to open

👎 Actual Behavior with Screenshots

It actually opened with the last custom prompt that the user created or edited in the session.

Screen.Recording.2024-10-21.at.01.29.11.mov

Screenshot for Prompt saved without title/details in the dropdown:
image

💻 Operating system

MacOS

What browsers are you seeing the problem on?

No response

🤖 What development environment are you experiencing this bug on?

Docker

🔒 Did you set the correct environment variables in the right path? List the environment variable names (not values please!)

No response

📃 Provide any additional context for the Bug.

I am checking this on production.

📖 Relevant log output

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🔗 Are you willing to submit PR?

Yes, I am willing to submit a PR!

🧑‍⚖️ Code of Conduct

  • I agree to follow this project's Code of Conduct
@mas-who
Copy link

mas-who commented Nov 13, 2024

Hi! I have created PR #1435 addressing the bugs mentioned in the issue description 🙂 let me know what you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants