Skip to content

Conversation

@bashSunny101
Copy link

@bashSunny101 bashSunny101 commented Oct 2, 2025

Current Behavior:

  • Users could submit quizzes without prerequisites being completed.
  • Backend would reject submissions after answers were already filled, causing frustration.

Fix:

  • Added client-side prerequisite check before allowing quiz submission.
  • Users are now prompted to complete missing prerequisites before submitting answers.
  • Ensures a smoother user experience and prevents unnecessary time waste.

Notes for Reviewers

This PR fixes #122

Signed commits

  • Yes, I signed my commits.

Current Behavior:
- Users could submit quizzes without prerequisites being completed.
- Backend would reject submissions after answers were already filled, causing frustration.

Fix:
- Added client-side prerequisite check before allowing quiz submission.
- Users are now prompted to complete missing prerequisites before submitting answers.
- Ensures a smoother user experience and prevents unnecessary time waste.

Signed-off-by: Sunny <[email protected]>
@bashSunny101 bashSunny101 force-pushed the fix-quiz-prerequisites branch from 3377f1d to c5190b3 Compare October 2, 2025 10:40
@bashSunny101
Copy link
Author

bashSunny101 commented Oct 3, 2025

Hi @saurabhraghuvanshii

This PR addresses the quiz submission issue and fixes the submission flow. Could you please review it when you get a chance and merge if it looks good?

Thanks!

@bashSunny101 bashSunny101 reopened this Oct 3, 2025
@bashSunny101
Copy link
Author

Hi @saurabhraghuvanshii ,

This PR (fix: quiz submission before prerequisites #135) is still awaiting review. Since it is participating in Hacktoberfest 2025, I kindly request your attention to review and merge it at the earliest convenience. Your feedback or approval would be greatly appreciated .

Thanks in advance!

@saurabhraghuvanshii
Copy link
Contributor

@bashSunny101 please be patient and wait we can't merge pr directly.


// Check for existing submission
const existingGradeResult = window.academyContext?.progressTracker?.progress?.grades[testId] || null;

Copy link
Member

@RanitMukherjee RanitMukherjee Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems unnecessary

Copy link
Member

@RanitMukherjee RanitMukherjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work 🚀 , LGTM as far as the code is concerned!

@saurabhraghuvanshii saurabhraghuvanshii requested review from Vincamine and removed request for ARYANSHAH1567 October 8, 2025 18:33
@bashSunny101
Copy link
Author

Kindly let me know if any changes are to be made😊

@bashSunny101
Copy link
Author

Hi,
As my pr has got an approval, kindly merge it with a hacktoberfest-accepted label.
I would be really thankful.

@saurabhraghuvanshii
Copy link
Contributor

@bashSunny101 please message on slack for it. I don't have access.

@aabidsofi19
Copy link
Collaborator

@bashSunny101 the issue has already been fixed in a separate pr and released . We can close this pr . Don't feel disheartened there are more issues than we can count ..

@bashSunny101
Copy link
Author

Thanks for the update. I just wanted to clarify — I had opened this PR earlier and have been actively following up with comments and feedback. I didn’t notice any other PR addressing the same issue before mine.

Could you please confirm which PR fixed it? It’ll help me understand the changes better and avoid overlaps in the future.

Either way, I really appreciate the feedback and will definitely look for more issues to contribute to! 😊

@bashSunny101 bashSunny101 deleted the fix-quiz-prerequisites branch October 10, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve user experience by checking prerequisites before starting a quiz

4 participants