AOSSIE-Org / AOSSIE-Org/EduAid

[FEATURE]: Add Quiz Review & Confirmation Step Before Generation

Đang mở
#515 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
JavaScript
Star
171
Fork
425
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Feature: Add Quiz Review & Confirmation Step Before Generation

---

## What is the feature?

Introduce an intermediate "Review & Confirm" step before triggering quiz generation.

Currently, once a user selects:

- Input source (text / PDF / URL)
- Number of questions
- Difficulty level
- Question type
- Wikipedia toggle

Clicking “Next” directly calls the backend to generate the quiz.

This enhancement proposes adding a confirmation step where users can review their selections before the generation request is made.

---

## How would users benefit from it?

- Prevent accidental quiz generation
- Reduce unnecessary backend calls
- Improve clarity and confidence before generation
- Provide a more structured and professional workflow
- Improve perceived quality of the application

---

## What scenarios would this feature address?

- User accidentally selecting incorrect difficulty
- Wrong number of questions chosen
- Incorrect question type selected
- Wikipedia toggle enabled unintentionally
- Large input submitted without reviewing settings

Instead of restarting the entire flow, users can easily go back and edit their configuration before confirming generation.

---

## Proposed Enhancement

Add a dedicated "Review & Confirm" page between the configuration step and the generation request.

This page would display a summary card including:

- Input source type (Text / PDF / URL)
- Number of questions
- Selected difficulty
- Question type
- Wikipedia toggle status

Buttons:

- Back (Edit configuration)
- Confirm & Generate (Triggers backend request)

---

## Scope

- Frontend-only changes (`eduaid_web`)
- No backend API modifications
- No changes to generation logic
- Routing/state management update only
- Minimal styling adjustments

---

## Additional Context

Affected areas may include:

- `Text_Input.jsx`
- `question-type` page
- Routing configuration
- A new component such as `ReviewSummary.jsx`

This enhancement focuses on improving workflow clarity and preventing unintended backend requests.

---
- I would be happy to work on implementing this enhancement if it aligns with the maintainers’ direction.

### 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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.