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
Refactor NewQuestionForm and optimize views for better performance (#80)
* Refactor NewQuestionForm and optimize views for better performance
- Refactored NewQuestionForm to dynamically populate category choices directly from the database, improving efficiency and user experience.
- Simplified the handling of minute and second values during form initialization to ensure proper preservation across submissions.
- Optimized the home and questions views by reducing unnecessary queries and improving pagination logic.
- Enhanced the rendering of questions by caching usernames to minimize database lookups.
* Enhance new-question template and form handling
- Updated the new-question template to conditionally render alert classes based on message tags, improving user feedback.
- Modified the NewQuestionForm to dynamically enable or disable minute and second range fields based on category selection, ensuring a better user experience.
- Ensured that minute and second values are preserved across form submissions, enhancing form usability.
---------
Co-authored-by: ankitamk14 <ankitamk@gmail.com>
0 commit comments