AOSSIE-Org / AOSSIE-Org/EduAid

[ENHANCEMENT]: Add direct numeric input for "Number of Questions"

Open
#647 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
171
Forks
425
PR merge metrics
No merged PRs in 30d

Description

### Feature and its Use Cases

Description:
The current "Number of Questions" control only supports increment and decrement via +/- buttons, with a default value of 10.

This approach becomes inefficient when users need to input larger values, as it requires repeated clicking.

Problem:

Poor scalability of input mechanism
Increased user effort for larger values
No direct input option

### Additional Context

Proposed Solution:
Introduce a numeric input field (input type="number") alongside the existing +/- controls, allowing users to directly enter the desired number of questions.

Expected Behavior:

Users can:
Use +/- buttons (existing behavior), or
Type a number directly into the input field
Input is validated (minimum value = 1)
Invalid or empty input is handled gracefully
Existing functionality remains unchanged

Image

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