AOSSIE-Org / AOSSIE-Org/EduAid

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

未关闭
#647 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
JavaScript
星标
171
派生
425
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。