lencx / ChatGPT

🔮 ChatGPT Desktop Application (Mac, Windows and Linux)
https://nofwl.com
52.25k stars 5.87k forks source link

[Feature]: Improve Handling of Blank Questions in the Editing Process #1071

Open sanjay78632 opened 1 year ago

sanjay78632 commented 1 year ago

Feature description

Currently, there is a bug in the system that allows users to submit edited questions with blank or empty content, resulting in incomplete and unintended question submissions. This issue occurs when users attempt to edit an existing question, make no changes to the question field, and then save their edits. The system accepts these blank question edits without any validation or error handling, leading to data quality issues and potentially confusing user experiences.

issue

Motivation

Enhanced User Experience: Ensuring that the system handles blank or empty question edits appropriately is essential to providing users with a more user-friendly and intuitive experience. Users should not encounter unexpected behavior or unintentionally submit incomplete questions when editing.

Alternatives

No response

Additional context

Proposed Solution:

To address this bug, it is recommended to implement validation checks during the editing process. Specifically, when a user attempts to save edits with a blank question field, the system should display a clear error message or notification, prompting the user to enter a valid question before allowing the edits to be saved. This will prevent incomplete or empty question submissions and improve the overall data quality and user experience on the platform.