Prevent Loading Without Input and Add Alert for Missing Data #142
Open
Description
Description:
Current Behavior:
The "Next" button initiates the loading process even when no input (text, file, or URL) is provided.
Expected Behavior:
The "Next" button should validate the input fields and:
- Display an alert if no input is provided.
- Prevent the loading process from starting until valid input is given.
Proposed Solution:
- Add a validation check to ensure input is provided in one of the fields (text, file, or URL).
- Display a concise alert: "Please provide input (text, file, or URL) to generate your quiz."
Stop execution and prevent loading if validation fails.
Pros of the Fix:
- Improves User Experience:
-Prevents confusion by guiding the user to provide necessary input.
- Enhances Validation:
-Reduces unnecessary backend requests, optimizing system performance.
- Error Prevention:
-Eliminates the risk of sending empty data to the backend.
- Professional Workflow:
-Aligns the application behavior with expected user interaction patterns.
- Efficiency:
-Saves user time by clearly communicating the issue upfront.
Metadata
Assignees
Labels
No labels