feat: enforce custom exam total question limit dynamically - #241
Conversation
…in custom exam builder
|
Claude finished @syed-tp's task in 2m 31s —— View job PR Review Summary✅ What's good
🔴 CRITICAL — Must fix before mergeNone found. 🟡 WARNING — Should fix
🔵 SUGGESTION — Nice to have
VerdictAPPROVED |
….minQuestions and clean up exam builder UI logic
|
@claude review |
|
Claude finished @syed-tp's task in 2m 3s —— View job PR Review SummaryRe-reviewed after commit ✅ What's good
🔴 CRITICAL — Must fix before merge
🟡 WARNING — Should fix
🔵 SUGGESTION — Nice to have
VerdictCHANGES REQUESTED — the |
…tom exam specifications and design documentation
…am builder screen
|
@claude review |
|
Claude finished @syed-tp's task in 1m 45s —— View job PR Review SummaryRe-reviewed after commits ✅ What's good
🔴 CRITICAL — Must fix before mergeNone. 🟡 WARNING — Should fix
🔵 SUGGESTION — Nice to haveNone outstanding — previous suggestions (duplicate quota calc, IIFE extraction, shared constant, VerdictAPPROVED — the remaining items are non-blocking (WARNING #1 is a product confirmation, not a code defect; WARNING #2 is test coverage debt). |
Why
The global budget of 200 questions for custom exams was previously not enforced during the builder phase, allowing users to select an invalid number of questions and resulting in a backend error. A proactive UI limitation is required to ensure a smooth, error-free experience.
What
CustomExamBuilderScreento disable the "+ Add Questionnaire" button when the global quota is reached.CustomExamSubjectBottomSheetso users cannot select more questions than the remaining limit allows.