Repository navigation
SimulAI v1.1
Version Changelog - Bug Fixes & Security Update
This update focuses on fixing critical JavaScript syntax errors that prevented the application from running correctly and enhances data security with updated Firestore rules.
🐛 Fixes
- Initialization Syntax Fix: Fixed a syntax error in the
initializeUserfunction that prevented the creation of the Firestore history collection reference. The collection path now correctly uses a template literal (backticks`). innerHTMLAssignment Fix: Fixed a syntax error in all functions that dynamically generate HTML (displayQuiz,evaluateQuiz,loadHistory). Multi-line HTML strings were not enclosed in backticks, which was causing anUncaught SyntaxError.querySelectorSelector Fix: Fixed a syntax error in theevaluateQuizfunction where dynamic element selectors were not properly quoted as strings, which prevented the application from finding user answers.- Improved Variable Declaration: The
userIdandhistoryCollectionRefvariables have been moved to the main module scope to ensure they are accessible by all functions that use them, preventing potential reference errors. - Error Message Fix: Fixed a syntax error in the
console.errorcall within theparseQuestionBlockfunction.
🔒 Security
- Firestore Security Rules: Updated Firestore rules to ensure that authenticated users can only read and write their own documents in the
simulai_historycollection. This prevents any user from accessing or modifying another user's data.