You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 2025-01-09 I provided Gemini 2.0 Flash (https://aistudio.google.com/prompts/) all the .py and .html files from the PDG and used the following prompt:
The following files are from a project that works but is incomplete.
Review the code and provide suggestions of what the most
important tasks are to work on next.
The most important task according to Gemini's assessment would be to improve User Input Validation and feedback.
Gemini says
Problem: The app currently relies on basic validators in Flask-WTF and catching exceptions, but more fine-grained control and specific messages for users are needed. The web forms are not catching bad input. Action:
* Improved Form Validation: For every Flask-WTF form, add more custom validators (as functions) to catch edge cases, and invalid inputs.
* Consistent Error Messages: Ensure that errors detected in Python (e.g. during saving files, communicating with Neo4j, or processing Latex) provide a user-friendly message, rather than crashing the web app. All messages need to be a string, not objects.
* Clear HTML feedback: Ensure that all forms have their HTML counterparts updated when the Python code of the Flask-WTF form has been modified.
* Javascript validation: Validate user input in the browser.
* Sanitize before display: Sanitize any data before displaying in the HTML.
Why this is High Priority: A good user experience is dependent on users being shown how to fix their input problems. Unhandled issues or uninformative errors can lead to frustration and make the system hard to use.
I agree with Gemini's assessment about the importance of addressing this to improve usability of the web interface.
A more specific critique I'll add is the issue of invalid Latex being passed to the backend.
The text was updated successfully, but these errors were encountered:
On 2025-01-09 I provided Gemini 2.0 Flash (https://aistudio.google.com/prompts/) all the .py and .html files from the PDG and used the following prompt:
The most important task according to Gemini's assessment would be to improve User Input Validation and feedback.
Gemini says
I agree with Gemini's assessment about the importance of addressing this to improve usability of the web interface.
A more specific critique I'll add is the issue of invalid Latex being passed to the backend.
The text was updated successfully, but these errors were encountered: