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

Open Beginner friendly
#647 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript
Domain
frontend

Research direction

Locate the existing “Number of Questions” control and its +/- handlers, then read how the current default and minimum behavior are implemented. Add direct numeric entry while preserving the existing controls, validate a minimum of 1, handle empty or invalid input gracefully, and verify that the existing behavior still works.

Written by the indexing model from the issue text.

Description

enhancement
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
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
JavaScript
Stars
172
Forks
423
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/EduAid

All issues in AOSSIE-Org/EduAid

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.