Repository navigation
fix(web): add input validation and fix infinite loading in Text_Input… - #682
yashinrush wants to merge 1 commit into
Conversation
…AOSSIE-Org#608) - Validate educational content and doc URL before setting loading state - Ensure setLoading(false) is always executed via try/finally - Display user-friendly error notifications on validation or API failures - Enforce question counter lower bound of 1 - Add paste handler for textarea clipboard button
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Tip 🎯 Customize your risk assessments
✅ Automatic approvals, with your rules
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Link your account with GitcordThanks for opening this PR, @yashinrush! To receive Discord notifications and contributor tracking for this organization:
Once linked, Gitcord can notify you about reviews, merges, and more. — Posted by Gitcord |
Summary of Changes:
Fixes an issue where submitting without input triggered an infinite loading state that froze the UI, and adds proper input validation and user feedback.
text.trim()anddocUrl.trim()before triggering loading state; shows user-friendly error notification if both are missing.try ... finallyblocks to ensuresetLoading(false)is always reached.numQuestionsfrom decrementing below1.navigator.clipboard.readText().Addressed Issues:
Fixes #608
AI Usage Disclosure:
I have used the following AI models and tools: Google Gemini (Antigravity)
Checklist: