AOSSIE-Org / AOSSIE-Org/EduAid

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

Aperta
#647 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
JavaScript
Stelle
171
Fork
425
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.