AOSSIE-Org / AOSSIE-Org/EduAid

Missing frontend feedback and validation when MCQ generation from PDFs returns fewer or incomplete questions

Open
#443 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
171
Forks
423
PR merge metrics
No merged PRs in 30d

Description

### Bug Description

When generating MCQs from PDF inputs, the frontend does not provide clear feedback
if fewer questions are generated than requested. In some cases, incomplete MCQs
(e.g., missing options or incorrect context) are displayed without any warning.

This behavior can confuse users and make it difficult to distinguish between
backend limitations and frontend handling issues.

### Steps to Reproduce

1. Upload a PDF file with sufficient textual content
2. Select a page range (e.g., 10–15)
3. Choose the PDF input option
4. Request generation of 10 MCQs
5. Observe the generated output

### Logs and Screenshots

No frontend console errors observed.
Issue appears to be related to frontend handling of API responses.

(Attach screenshots showing:
- Requested MCQ count vs generated count
- Incomplete MCQs if visible)

### Environment Details

OS: Windows / Linux / macOS
Browser: Chrome / Firefox
Frontend: React
Project: EduAid

### Impact

High – major functionality broken

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.