@magmamath/students-features 1.3.16 → 1.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/config/dataTestIDs.js +80 -0
- package/dist/commonjs/config/dataTestIDs.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/Chat/Chat.js +2 -0
- package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js +2 -0
- package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js +2 -0
- package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +2 -0
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +3 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +2 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +2 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +2 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +2 -0
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +3 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +2 -0
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +2 -0
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +2 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js +3 -0
- package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +2 -0
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js +4 -0
- package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +3 -0
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +3 -0
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +4 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -3
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js +2 -0
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -0
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +2 -0
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +2 -0
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +2 -0
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -1
- package/dist/commonjs/features/feedback/components/EmptyComment.js +2 -0
- package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
- package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js +2 -0
- package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js.map +1 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton.js +3 -0
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton.js.map +1 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +2 -0
- package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
- package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js +2 -0
- package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +2 -0
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js +2 -0
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +2 -0
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +9 -4
- package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js +15 -11
- package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +2 -0
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -0
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js +2 -0
- package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js +2 -0
- package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +2 -0
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +9 -4
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -0
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js +2 -0
- package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -1
- package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js +2 -0
- package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/header/NextUp.js +2 -0
- package/dist/commonjs/features/pmProgress/components/header/NextUp.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js +5 -1
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js +2 -0
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +11 -5
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js +3 -1
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js +4 -1
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js +3 -1
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +4 -1
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +5 -1
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js +2 -0
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +2 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js +2 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js.map +1 -1
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +5 -1
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +4 -0
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +4 -0
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
- package/dist/commonjs/index.js +8 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/components/PlayButton.js.map +1 -1
- package/dist/module/config/dataTestIDs.js +77 -0
- package/dist/module/config/dataTestIDs.js.map +1 -0
- package/dist/module/features/chatbot/components/Chat/Chat.js +2 -0
- package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -1
- package/dist/module/features/chatbot/components/Chat/ChatIcon.js +2 -0
- package/dist/module/features/chatbot/components/Chat/ChatIcon.js.map +1 -1
- package/dist/module/features/chatbot/components/Chat/CloseButton.js +2 -0
- package/dist/module/features/chatbot/components/Chat/CloseButton.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +2 -0
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +3 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +2 -0
- package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +2 -0
- package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +2 -0
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +2 -0
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +3 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +2 -0
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +2 -0
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +2 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js +3 -0
- package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +2 -0
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js +4 -0
- package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +3 -0
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +3 -0
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/Modal/Modal.js +4 -1
- package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -3
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButton.js +2 -0
- package/dist/module/features/endOfAssignment/ui/PracticeButton.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -0
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +2 -0
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/module/features/exampleSolution/components/QuestionSection.js +2 -0
- package/dist/module/features/exampleSolution/components/QuestionSection.js.map +1 -1
- package/dist/module/features/exampleSolution/components/SolutionSection.js +2 -0
- package/dist/module/features/exampleSolution/components/SolutionSection.js.map +1 -1
- package/dist/module/features/feedback/components/EmptyComment.js +2 -0
- package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
- package/dist/module/features/feedback/components/ListCardCommentsCount.js +2 -0
- package/dist/module/features/feedback/components/ListCardCommentsCount.js.map +1 -1
- package/dist/module/features/feedback/components/TeacherFeedbackButton.js +3 -0
- package/dist/module/features/feedback/components/TeacherFeedbackButton.js.map +1 -1
- package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +2 -0
- package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
- package/dist/module/features/feedback/components/UnreadMessagesBadge.js +2 -0
- package/dist/module/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
- package/dist/module/features/formulaSheet/components/FormulaSheet.js +2 -0
- package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +2 -0
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +2 -0
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +9 -4
- package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js +16 -12
- package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +2 -0
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -0
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +2 -0
- package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/module/features/keyboard/components/MainLayout/MainLayout.js +2 -0
- package/dist/module/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/Numpad/Numpad.js +2 -0
- package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +9 -4
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -0
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js +2 -0
- package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -1
- package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js +2 -0
- package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
- package/dist/module/features/pmProgress/components/header/NextUp.js +2 -0
- package/dist/module/features/pmProgress/components/header/NextUp.js.map +1 -1
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js +5 -1
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js.map +1 -1
- package/dist/module/features/pmProgress/components/header/StartButton.js +2 -0
- package/dist/module/features/pmProgress/components/header/StartButton.js.map +1 -1
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +11 -5
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -1
- package/dist/module/features/pmProgress/components/insights/StatsCard.js +3 -1
- package/dist/module/features/pmProgress/components/insights/StatsCard.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/ListCard.js +4 -1
- package/dist/module/features/pmProgress/components/list/ListCard.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/ListItem.js +3 -1
- package/dist/module/features/pmProgress/components/list/ListItem.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/PmDomainList.js +4 -1
- package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +1 -1
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +5 -1
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +2 -0
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js +2 -0
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -0
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordTimer.js +2 -0
- package/dist/module/features/voice/recording/components/VoiceRecordTimer.js.map +1 -1
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +5 -1
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +4 -0
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +4 -0
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/components/PlayButton.js.map +1 -1
- package/dist/typescript/commonjs/config/dataTestIDs.d.ts +75 -0
- package/dist/typescript/commonjs/config/dataTestIDs.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/ChatIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/EmptyComment.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/header/NextUp.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts +2 -1
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts +3 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +2 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +3 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +1 -0
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts +1 -1
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/components/PlayButton.d.ts +1 -0
- package/dist/typescript/commonjs/shared/components/PlayButton.d.ts.map +1 -1
- package/dist/typescript/module/config/dataTestIDs.d.ts +75 -0
- package/dist/typescript/module/config/dataTestIDs.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chat/ChatIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/EmptyComment.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -1
- package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/header/NextUp.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts +2 -1
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts +3 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +2 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -1
- package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +3 -1
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +1 -0
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/lib/helpers/helpers.d.ts +1 -1
- package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/components/PlayButton.d.ts +1 -0
- package/dist/typescript/module/shared/components/PlayButton.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/config/dataTestIDs.ts +81 -0
- package/src/features/chatbot/components/Chat/Chat.tsx +2 -1
- package/src/features/chatbot/components/Chat/ChatIcon.tsx +2 -1
- package/src/features/chatbot/components/Chat/CloseButton.tsx +2 -0
- package/src/features/chatbot/components/ChatControls/ChatControls.tsx +2 -0
- package/src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx +2 -0
- package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +2 -1
- package/src/features/chatbot/components/ChatInput/FreeText/SendMessageButton.tsx +2 -0
- package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +2 -0
- package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +3 -2
- package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +2 -0
- package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +2 -1
- package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +2 -0
- package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +2 -0
- package/src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx +3 -1
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +2 -0
- package/src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx +4 -1
- package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +3 -1
- package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +3 -1
- package/src/features/endOfAssignment/components/Modal/Modal.tsx +6 -1
- package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +6 -1
- package/src/features/endOfAssignment/ui/PracticeButton.tsx +2 -0
- package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +2 -0
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +2 -0
- package/src/features/exampleSolution/components/QuestionSection.tsx +2 -1
- package/src/features/exampleSolution/components/SolutionSection.tsx +5 -1
- package/src/features/feedback/components/EmptyComment.tsx +2 -1
- package/src/features/feedback/components/ListCardCommentsCount.tsx +2 -1
- package/src/features/feedback/components/TeacherFeedbackButton.tsx +3 -0
- package/src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx +2 -1
- package/src/features/feedback/components/UnreadMessagesBadge.tsx +2 -0
- package/src/features/formulaSheet/components/FormulaSheet.tsx +2 -0
- package/src/features/formulaSheet/components/FormulaSheetModal.tsx +2 -1
- package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +2 -1
- package/src/features/keyboard/components/BasicLayout/CurrencyBasicLayout.tsx +5 -1
- package/src/features/keyboard/components/BasicLayout/TimeBasicLayout.tsx +16 -13
- package/src/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.tsx +2 -1
- package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +2 -1
- package/src/features/keyboard/components/Keyboard.tsx +2 -0
- package/src/features/keyboard/components/MainLayout/MainLayout.tsx +5 -1
- package/src/features/keyboard/components/Numpad/Numpad.tsx +2 -1
- package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +9 -1
- package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +2 -1
- package/src/features/openEnded/components/OpenEndedAttemptsLimit.tsx +2 -1
- package/src/features/openEnded/components/OpenEndedScoreLabel.tsx +2 -1
- package/src/features/pmProgress/components/header/NextUp.tsx +2 -1
- package/src/features/pmProgress/components/header/PmProgressHeader.tsx +4 -0
- package/src/features/pmProgress/components/header/StartButton.tsx +2 -0
- package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +6 -3
- package/src/features/pmProgress/components/insights/StatsCard.tsx +3 -2
- package/src/features/pmProgress/components/list/ListCard.tsx +5 -0
- package/src/features/pmProgress/components/list/ListItem.tsx +3 -0
- package/src/features/pmProgress/components/list/PmDomainList.tsx +7 -1
- package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +4 -0
- package/src/features/problemSelector/components/ProblemSelectorButton.tsx +2 -0
- package/src/features/voice/recording/components/VoiceRecordButton.tsx +2 -0
- package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +2 -1
- package/src/features/voice/recording/components/VoiceRecordTimer.tsx +2 -1
- package/src/features/voice/recording/modal/ModalFooterButtons.tsx +6 -0
- package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +4 -0
- package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +4 -0
- package/src/index.ts +1 -0
- package/src/shared/components/PlayButton.tsx +1 -0
- package/src/i18n/.generated/schema.json +0 -90
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
3
|
import { BORDER_RADIUS, COLORS, Loader, LoaderColor } from '@magmamath/react-native-ui'
|
|
4
4
|
import { SPACING } from '@magmamath/react-native-ui'
|
|
5
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
5
6
|
|
|
6
7
|
type MessageLoaderProps = {
|
|
7
8
|
isLoading?: boolean
|
|
@@ -11,7 +12,7 @@ export const MessageLoader = ({ isLoading }: MessageLoaderProps) => {
|
|
|
11
12
|
if (!isLoading) return null
|
|
12
13
|
|
|
13
14
|
return (
|
|
14
|
-
<View style={styles.loader}>
|
|
15
|
+
<View style={styles.loader} testID={TEST_IDS.CHAT_MESSAGE_LOADER}>
|
|
15
16
|
<Loader color={LoaderColor.GRAY} />
|
|
16
17
|
</View>
|
|
17
18
|
)
|
|
@@ -6,6 +6,7 @@ import { ConversationMessage } from '../../types/units.types'
|
|
|
6
6
|
import { MessageVariant } from '../../types/model.types'
|
|
7
7
|
import { ColorScheme } from '../../types/style.types'
|
|
8
8
|
import { MESSAGE_COLORS_MAP } from '../../constants'
|
|
9
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
9
10
|
|
|
10
11
|
type MessageTextToSpeechProps = {
|
|
11
12
|
state: T2SState
|
|
@@ -34,6 +35,7 @@ export const MessageTextToSpeech = ({
|
|
|
34
35
|
colorScheme={MESSAGE_COLORS_MAP[colorScheme][variant].icon}
|
|
35
36
|
state={state}
|
|
36
37
|
onPress={play}
|
|
38
|
+
testID={TEST_IDS.CHAT_TTS_BUTTON}
|
|
37
39
|
/>
|
|
38
40
|
)
|
|
39
41
|
}
|
|
@@ -7,6 +7,7 @@ import { ColorScheme } from '../../types/style.types'
|
|
|
7
7
|
import { MessageVariant } from '../../types/model.types'
|
|
8
8
|
import { VariantProps } from './ChatMessage'
|
|
9
9
|
import { MessageContent } from './MessageContent'
|
|
10
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
10
11
|
|
|
11
12
|
export const ReceivedMessage = ({
|
|
12
13
|
message,
|
|
@@ -21,7 +22,7 @@ export const ReceivedMessage = ({
|
|
|
21
22
|
const text = isTranslated ? message.translatedMessage : message.message
|
|
22
23
|
|
|
23
24
|
return (
|
|
24
|
-
<View style={styles.container}>
|
|
25
|
+
<View style={styles.container} testID={TEST_IDS.CHAT_MESSAGE_RECEIVED}>
|
|
25
26
|
<View style={[styles.iconWrapper, { opacity: withIcon ? 1 : 0 }]}>
|
|
26
27
|
<ChatbotIcon width={CHATBOT_ICON_SIZE.width} height={CHATBOT_ICON_SIZE.height} />
|
|
27
28
|
</View>
|
|
@@ -7,6 +7,7 @@ import { VariantProps } from './ChatMessage'
|
|
|
7
7
|
import { MESSAGE_COLORS_MAP } from '../../constants'
|
|
8
8
|
import { ColorScheme } from '../../types/style.types'
|
|
9
9
|
import { MessageVariant } from '../../types/model.types'
|
|
10
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
10
11
|
|
|
11
12
|
export const SentMessage = React.memo(
|
|
12
13
|
({ message, isTranslated, colorScheme = ColorScheme.Blue }: VariantProps) => {
|
|
@@ -14,6 +15,7 @@ export const SentMessage = React.memo(
|
|
|
14
15
|
|
|
15
16
|
return (
|
|
16
17
|
<View
|
|
18
|
+
testID={TEST_IDS.CHAT_MESSAGE_SENT}
|
|
17
19
|
style={[
|
|
18
20
|
styles.container,
|
|
19
21
|
{ backgroundColor: MESSAGE_COLORS_MAP[colorScheme][MessageVariant.SENT].background },
|
|
@@ -5,6 +5,7 @@ import { useStoreMap, useUnit } from 'effector-react'
|
|
|
5
5
|
import { StyleSheet } from 'react-native'
|
|
6
6
|
import { HighlighterIcon } from '../../../shared/icons/HighlighterIcon'
|
|
7
7
|
import { ConversationMessage } from '../types/units.types'
|
|
8
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
8
9
|
import { useText } from '../../../i18n/i18n'
|
|
9
10
|
|
|
10
11
|
type ErrorSpottingButtonProps = {
|
|
@@ -32,6 +33,7 @@ export const ErrorSpottingButton = ({ contextMessage }: ErrorSpottingButtonProps
|
|
|
32
33
|
variant={'secondary'}
|
|
33
34
|
colorScheme={'blue'}
|
|
34
35
|
size={'small'}
|
|
36
|
+
testID={TEST_IDS.CHAT_ERROR_SPOTTING_BUTTON}
|
|
35
37
|
onPress={() => {
|
|
36
38
|
model.errorSpotting.errorSpottingPressed({ message: contextMessage })
|
|
37
39
|
}}
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
import { EOAModalContentProps } from '../../types'
|
|
14
14
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
15
15
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
16
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
16
17
|
|
|
17
18
|
export const CheatDetected = ({ textContent, model }: EOAModalContentProps) => {
|
|
18
19
|
useKeyBoard({
|
|
@@ -24,7 +25,7 @@ export const CheatDetected = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
24
25
|
})
|
|
25
26
|
|
|
26
27
|
return (
|
|
27
|
-
<View style={styles.container}>
|
|
28
|
+
<View style={styles.container} testID={TEST_IDS.EOA_CHEAT_DETECTED}>
|
|
28
29
|
<Typography variant="h2" style={styles.title}>
|
|
29
30
|
{textContent.title}
|
|
30
31
|
</Typography>
|
|
@@ -39,6 +40,7 @@ export const CheatDetected = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
39
40
|
size={ButtonSize.LARGE}
|
|
40
41
|
style={{ text: styles.buttonText }}
|
|
41
42
|
onPress={model.hidePopUpAndLeave}
|
|
43
|
+
testID={TEST_IDS.EOA_LEAVE_BUTTON}
|
|
42
44
|
>
|
|
43
45
|
{textContent.leftButtonText}
|
|
44
46
|
</Button>
|
|
@@ -12,6 +12,7 @@ import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
|
12
12
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
13
13
|
import { getEoaButtonColor } from '../../helpers'
|
|
14
14
|
import { AssessmentScoreCard } from '../AssessmentScoreCard/AssessmentScoreCard'
|
|
15
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
15
16
|
|
|
16
17
|
export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalContentProps) => {
|
|
17
18
|
const popUpData = useUnit(model.$popUpData)
|
|
@@ -59,6 +60,7 @@ export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalC
|
|
|
59
60
|
|
|
60
61
|
return (
|
|
61
62
|
<View
|
|
63
|
+
testID={TEST_IDS.EOA_WITH_CORRECT_ANSWER}
|
|
62
64
|
style={[
|
|
63
65
|
styles.wrapper,
|
|
64
66
|
modalVariant !== EOAModalVariant.HAS_GOOD_DRAWING && { alignItems: 'center' },
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
import { EOAModalContentProps } from '../../types'
|
|
14
14
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
15
15
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
16
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
16
17
|
|
|
17
18
|
export const ExamLeave = ({ textContent, model }: EOAModalContentProps) => {
|
|
18
19
|
const handleDismiss = () => model.hidePopUp()
|
|
@@ -26,7 +27,7 @@ export const ExamLeave = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
26
27
|
})
|
|
27
28
|
|
|
28
29
|
return (
|
|
29
|
-
<View style={styles.container}>
|
|
30
|
+
<View style={styles.container} testID={TEST_IDS.EOA_EXAM_LEAVE}>
|
|
30
31
|
<Typography variant="h1" style={styles.description}>
|
|
31
32
|
{textContent.description}
|
|
32
33
|
</Typography>
|
|
@@ -37,6 +38,7 @@ export const ExamLeave = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
37
38
|
size={ButtonSize.LARGE}
|
|
38
39
|
style={{ text: styles.buttonText }}
|
|
39
40
|
onPress={handleDismiss}
|
|
41
|
+
testID={TEST_IDS.EOA_EXAM_STAY_BUTTON}
|
|
40
42
|
>
|
|
41
43
|
{textContent.leftButtonText}
|
|
42
44
|
</Button>
|
|
@@ -47,6 +49,7 @@ export const ExamLeave = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
47
49
|
size={ButtonSize.LARGE}
|
|
48
50
|
style={{ text: styles.buttonText }}
|
|
49
51
|
onPress={model.hidePopUpAndLeave}
|
|
52
|
+
testID={TEST_IDS.EOA_LEAVE_BUTTON}
|
|
50
53
|
>
|
|
51
54
|
{textContent.rightButtonText}
|
|
52
55
|
</Button>
|
|
@@ -15,6 +15,7 @@ import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
|
15
15
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
16
16
|
import { getEoaButtonColor } from '../../helpers'
|
|
17
17
|
import { useUnit } from 'effector-react'
|
|
18
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
18
19
|
|
|
19
20
|
export const ExamPaused = ({ textContent, model }: EOAModalContentProps) => {
|
|
20
21
|
const popUpData = useUnit(model.$popUpData)
|
|
@@ -28,7 +29,7 @@ export const ExamPaused = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
28
29
|
})
|
|
29
30
|
|
|
30
31
|
return (
|
|
31
|
-
<View style={styles.container}>
|
|
32
|
+
<View style={styles.container} testID={TEST_IDS.EOA_EXAM_PAUSED}>
|
|
32
33
|
<Typography variant="h2" style={styles.title}>
|
|
33
34
|
{textContent.title}
|
|
34
35
|
</Typography>
|
|
@@ -43,6 +44,7 @@ export const ExamPaused = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
43
44
|
size={ButtonSize.LARGE}
|
|
44
45
|
style={{ text: styles.buttonText }}
|
|
45
46
|
onPress={model.hidePopUpAndLeave}
|
|
47
|
+
testID={TEST_IDS.EOA_LEAVE_BUTTON}
|
|
46
48
|
>
|
|
47
49
|
{textContent.leftButtonText}
|
|
48
50
|
</Button>
|
|
@@ -18,6 +18,7 @@ import { PracticeButton } from '../../ui/PracticeButton'
|
|
|
18
18
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
19
19
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
20
20
|
import { getEoaButtonColor } from '../../helpers'
|
|
21
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
21
22
|
|
|
22
23
|
export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalContentProps) => {
|
|
23
24
|
const popUpData = useUnit(model.$popUpData)
|
|
@@ -41,7 +42,7 @@ export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalCont
|
|
|
41
42
|
})
|
|
42
43
|
|
|
43
44
|
return (
|
|
44
|
-
<View style={styles.container}>
|
|
45
|
+
<View style={styles.container} testID={TEST_IDS.EOA_EXAM}>
|
|
45
46
|
<View style={styles.contentBackground}>
|
|
46
47
|
{IS_MOBILE ? (
|
|
47
48
|
<Image source={require('./blurred-card.png')} />
|
|
@@ -63,6 +64,7 @@ export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalCont
|
|
|
63
64
|
colorScheme={getEoaButtonColor(popUpData)}
|
|
64
65
|
style={{ text: { textTransform: 'uppercase' } }}
|
|
65
66
|
onPress={model.hidePopUpAndLeave}
|
|
67
|
+
testID={TEST_IDS.EOA_LEAVE_BUTTON}
|
|
66
68
|
>
|
|
67
69
|
{textContent.leftButtonText ?? ''}
|
|
68
70
|
</Button>
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
|
|
24
24
|
import { ModalModel } from './model'
|
|
25
25
|
import { ModalBackground } from './ModalBackground'
|
|
26
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
26
27
|
|
|
27
28
|
const stopPropagation = {
|
|
28
29
|
onTouchStart: (event: GestureResponderEvent) => {
|
|
@@ -71,7 +72,10 @@ export const Modal = ({
|
|
|
71
72
|
if (!isVisible) return null
|
|
72
73
|
return (
|
|
73
74
|
<TouchableWithoutFeedback onPress={() => isDismissable && onClose?.()}>
|
|
74
|
-
<Animated.View
|
|
75
|
+
<Animated.View
|
|
76
|
+
style={[styles.overlay, style?.overlay, modalModel.animatedStyle]}
|
|
77
|
+
testID={TEST_IDS.EOA_MODAL}
|
|
78
|
+
>
|
|
75
79
|
<TouchableWithoutFeedback {...stopPropagation}>
|
|
76
80
|
<View style={[styles.container, style?.container]}>
|
|
77
81
|
{withBackground && <View style={styles.backgroundWrapper}>{<ModalBackground />}</View>}
|
|
@@ -81,6 +85,7 @@ export const Modal = ({
|
|
|
81
85
|
variant={ButtonVariant.TERTIARY}
|
|
82
86
|
icon={<CrossIcon size={18} color={COLORS.NEUTRAL_7} />}
|
|
83
87
|
onPress={onClose}
|
|
88
|
+
testID={TEST_IDS.EOA_MODAL_CLOSE_BUTTON}
|
|
84
89
|
/>
|
|
85
90
|
</View>
|
|
86
91
|
)}
|
|
@@ -18,6 +18,7 @@ import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
|
18
18
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
19
19
|
import { getEoaButtonColor } from '../../helpers'
|
|
20
20
|
import { AssessmentScoreCard } from '../AssessmentScoreCard/AssessmentScoreCard'
|
|
21
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
21
22
|
|
|
22
23
|
export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalContentProps) => {
|
|
23
24
|
const popUpData = useUnit(model.$popUpData)
|
|
@@ -30,6 +31,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
|
|
|
30
31
|
text: textContent.leftButtonText ?? '',
|
|
31
32
|
colorScheme: getEoaButtonColor(popUpData),
|
|
32
33
|
onPress: () => model.hidePopUpAndLeave(),
|
|
34
|
+
testID: TEST_IDS.EOA_LEAVE_BUTTON as string | undefined,
|
|
33
35
|
},
|
|
34
36
|
]
|
|
35
37
|
|
|
@@ -41,6 +43,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
|
|
|
41
43
|
model.goToFirstProblemPressed()
|
|
42
44
|
model.hidePopUp()
|
|
43
45
|
},
|
|
46
|
+
testID: TEST_IDS.EOA_GO_TO_PROBLEM_ONE_BUTTON,
|
|
44
47
|
})
|
|
45
48
|
return buttons
|
|
46
49
|
}
|
|
@@ -55,6 +58,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
|
|
|
55
58
|
onPracticePress?.()
|
|
56
59
|
model.hidePopUp()
|
|
57
60
|
},
|
|
61
|
+
testID: TEST_IDS.EOA_PRACTICE_BUTTON,
|
|
58
62
|
})
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -73,7 +77,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
|
|
|
73
77
|
})
|
|
74
78
|
|
|
75
79
|
return (
|
|
76
|
-
<View style={styles.container}>
|
|
80
|
+
<View style={styles.container} testID={TEST_IDS.EOA_WITH_NO_CORRECT_ANSWER}>
|
|
77
81
|
<View style={styles.textContainer}>
|
|
78
82
|
{!!textContent.title && (
|
|
79
83
|
<Typography variant="h2" style={styles.title}>
|
|
@@ -108,6 +112,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
|
|
|
108
112
|
colorScheme={button.colorScheme}
|
|
109
113
|
style={{ text: { textTransform: 'uppercase' } }}
|
|
110
114
|
onPress={button.onPress}
|
|
115
|
+
testID={button.testID}
|
|
111
116
|
>
|
|
112
117
|
{button.text}
|
|
113
118
|
</Button>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
3
|
import { Button, ButtonColor } from '@magmamath/react-native-ui'
|
|
4
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
4
5
|
|
|
5
6
|
type PracticeButtonProps = {
|
|
6
7
|
onPress: () => void
|
|
@@ -20,6 +21,7 @@ export const PracticeButton = ({
|
|
|
20
21
|
size="large"
|
|
21
22
|
style={{ text: { textTransform: 'uppercase' } }}
|
|
22
23
|
onPress={onPress}
|
|
24
|
+
testID={TEST_IDS.EOA_PRACTICE_BUTTON}
|
|
23
25
|
>
|
|
24
26
|
{text}
|
|
25
27
|
</Button>
|
|
@@ -11,6 +11,7 @@ import Animated, {
|
|
|
11
11
|
import { ButtonVariant, SPACING, Button, ButtonSize, ButtonColor } from '@magmamath/react-native-ui'
|
|
12
12
|
|
|
13
13
|
import { PracticeButton } from './PracticeButton'
|
|
14
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
14
15
|
|
|
15
16
|
type PracticeButtonGroupProps = {
|
|
16
17
|
textContent: { leftButtonText?: string; rightButtonText?: string }
|
|
@@ -50,6 +51,7 @@ export const PracticeButtonGroup = ({
|
|
|
50
51
|
colorScheme={buttonColor}
|
|
51
52
|
style={{ text: { textTransform: 'uppercase' } }}
|
|
52
53
|
onPress={onLeftButtonPress}
|
|
54
|
+
testID={TEST_IDS.EOA_LEAVE_BUTTON}
|
|
53
55
|
>
|
|
54
56
|
{textContent.leftButtonText}
|
|
55
57
|
</Button>
|
|
@@ -5,6 +5,7 @@ import { ExampleSolutionModalParams } from '../types'
|
|
|
5
5
|
import { QuestionSection } from './QuestionSection'
|
|
6
6
|
import { SolutionSection } from './SolutionSection'
|
|
7
7
|
import { useExampleSolution } from '../hooks/useExampleSolution'
|
|
8
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
8
9
|
import { useText } from '../../../i18n/i18n'
|
|
9
10
|
|
|
10
11
|
type ExampleSolutionModalContentProps = {
|
|
@@ -21,6 +22,7 @@ export const ExampleSolutionModalContent = ({
|
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
24
|
<View
|
|
25
|
+
testID={TEST_IDS.EXAMPLE_SOLUTION_MODAL}
|
|
24
26
|
style={[
|
|
25
27
|
styles.container,
|
|
26
28
|
IS_WEB ? { maxHeight: CONTAINER_HEIGHT } : { height: CONTAINER_HEIGHT },
|
|
@@ -3,6 +3,7 @@ import React from 'react'
|
|
|
3
3
|
import { COLORS, Loader, LoaderColor, SPACING } from '@magmamath/react-native-ui'
|
|
4
4
|
import Animated, { FadeOut } from 'react-native-reanimated'
|
|
5
5
|
import { ExampleSolutionStatuses } from '../constants'
|
|
6
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
6
7
|
|
|
7
8
|
type QuestionSectionProps = {
|
|
8
9
|
question?: string
|
|
@@ -16,7 +17,7 @@ export const QuestionSection = ({
|
|
|
16
17
|
renderKatexComponent,
|
|
17
18
|
}: QuestionSectionProps) => {
|
|
18
19
|
return (
|
|
19
|
-
<View style={styles.container}>
|
|
20
|
+
<View style={styles.container} testID={TEST_IDS.EXAMPLE_SOLUTION_QUESTION_SECTION}>
|
|
20
21
|
{question && <View style={styles.katexContainer}>{renderKatexComponent(question)}</View>}
|
|
21
22
|
{status === ExampleSolutionStatuses.LOADING && (
|
|
22
23
|
<Animated.View exiting={FadeOut} style={styles.loaderContainer}>
|
|
@@ -11,6 +11,7 @@ import { COLORS, IS_WEB, SPACING } from '@magmamath/react-native-ui'
|
|
|
11
11
|
import Animated, { FadeIn } from 'react-native-reanimated'
|
|
12
12
|
import { ExampleSolutionStatuses } from '../constants'
|
|
13
13
|
import gridImage from '../assets/grid.webp'
|
|
14
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
14
15
|
|
|
15
16
|
type SolutionSectionProps = {
|
|
16
17
|
answer?: string
|
|
@@ -34,7 +35,10 @@ export const SolutionSection = ({ answer, status }: SolutionSectionProps) => {
|
|
|
34
35
|
(status === ExampleSolutionStatuses.DONE_DATA || status === ExampleSolutionStatuses.CACHE)
|
|
35
36
|
|
|
36
37
|
return (
|
|
37
|
-
<View
|
|
38
|
+
<View
|
|
39
|
+
style={[styles.container, IS_WEB && { maxHeight: height - CONTAINER_HEIGHT_OFFSET }]}
|
|
40
|
+
testID={TEST_IDS.EXAMPLE_SOLUTION_SOLUTION_SECTION}
|
|
41
|
+
>
|
|
38
42
|
<ScrollView
|
|
39
43
|
style={styles.solutionScroll}
|
|
40
44
|
contentContainerStyle={styles.solutionScrollContent}
|
|
@@ -2,12 +2,13 @@ import React from 'react'
|
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native'
|
|
3
3
|
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
4
|
import { BUENOS_AIRES_FONT } from '../constants'
|
|
5
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
5
6
|
import { useText } from '../../../i18n/i18n'
|
|
6
7
|
|
|
7
8
|
export const EmptyComment = () => {
|
|
8
9
|
const t = useText()
|
|
9
10
|
return (
|
|
10
|
-
<View style={styles.container}>
|
|
11
|
+
<View style={styles.container} testID={TEST_IDS.NO_COMMENTS_PLACEHOLDER}>
|
|
11
12
|
<Text style={styles.text}>{t('teacherFeedback.noComments')}</Text>
|
|
12
13
|
</View>
|
|
13
14
|
)
|
|
@@ -3,6 +3,7 @@ import { Text, View, StyleSheet } from 'react-native'
|
|
|
3
3
|
import { MessageBubbleIcon } from '../../../shared/icons/MessageBubbleIcon'
|
|
4
4
|
import { COLORS } from '@magmamath/react-native-ui'
|
|
5
5
|
import { BUENOS_AIRES_FONT } from '../constants'
|
|
6
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
6
7
|
|
|
7
8
|
type ListCardCommentsCountProps = {
|
|
8
9
|
count: number
|
|
@@ -10,7 +11,7 @@ type ListCardCommentsCountProps = {
|
|
|
10
11
|
|
|
11
12
|
export const ListCardCommentsCount = ({ count }: ListCardCommentsCountProps) => {
|
|
12
13
|
return (
|
|
13
|
-
<View style={styles.container}>
|
|
14
|
+
<View style={styles.container} testID={TEST_IDS.EXERCISE_CARD_COMMENTS_COUNT}>
|
|
14
15
|
<MessageBubbleIcon size={23} color={COLORS.NEUTRAL_7} />
|
|
15
16
|
<Text style={styles.text}>{count}</Text>
|
|
16
17
|
</View>
|
|
@@ -5,6 +5,7 @@ import { UnreadMessagesBadge } from './UnreadMessagesBadge'
|
|
|
5
5
|
import { MessageBubbleIcon } from '../../../shared/icons/MessageBubbleIcon'
|
|
6
6
|
import { XCloseIcon } from '../../../shared/icons/XCloseIcon'
|
|
7
7
|
import { FeedbackButtonSize, TEACHER_FEEDBACK_BUTTON_ID } from '../constants'
|
|
8
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
8
9
|
|
|
9
10
|
const ICON_SIZES = {
|
|
10
11
|
[FeedbackButtonSize.LARGE]: 37,
|
|
@@ -36,6 +37,7 @@ export const TeacherFeedbackButton = ({
|
|
|
36
37
|
return (
|
|
37
38
|
<Button
|
|
38
39
|
id={TEACHER_FEEDBACK_BUTTON_ID}
|
|
40
|
+
testID={TEST_IDS.TEACHER_COMMENTS_BUTTON}
|
|
39
41
|
onPress={onPress}
|
|
40
42
|
size="large"
|
|
41
43
|
variant="primary"
|
|
@@ -54,6 +56,7 @@ export const TeacherFeedbackButton = ({
|
|
|
54
56
|
return (
|
|
55
57
|
<Button
|
|
56
58
|
id={TEACHER_FEEDBACK_BUTTON_ID}
|
|
59
|
+
testID={TEST_IDS.TEACHER_COMMENTS_BUTTON}
|
|
57
60
|
onPress={onPress}
|
|
58
61
|
size="large"
|
|
59
62
|
variant="primary"
|
|
@@ -4,6 +4,7 @@ import { COLORS } from '@magmamath/react-native-ui'
|
|
|
4
4
|
import { BUENOS_AIRES_FONT } from '../../constants'
|
|
5
5
|
import { getRelativeTimeText } from '../../../../lib/helpers/helpers'
|
|
6
6
|
import { TeacherComment as TeacherCommentEntity } from '../../types'
|
|
7
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
7
8
|
|
|
8
9
|
type TeacherCommentProps = {
|
|
9
10
|
comment: TeacherCommentEntity
|
|
@@ -12,7 +13,7 @@ type TeacherCommentProps = {
|
|
|
12
13
|
|
|
13
14
|
export const TeacherComment = ({ comment, style }: TeacherCommentProps) => {
|
|
14
15
|
return (
|
|
15
|
-
<View style={style}>
|
|
16
|
+
<View style={style} testID={TEST_IDS.TEACHER_COMMENT}>
|
|
16
17
|
<View style={styles.authorInfo}>
|
|
17
18
|
<Text style={styles.teacherName} numberOfLines={1}>
|
|
18
19
|
{comment.teacherName}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Text, View, StyleSheet, Platform, StyleProp, ViewStyle, TextStyle } from 'react-native'
|
|
3
3
|
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
4
5
|
|
|
5
6
|
type UnreadMessagesBadgeProps = {
|
|
6
7
|
badgeContent?: number
|
|
@@ -17,6 +18,7 @@ export const UnreadMessagesBadge = ({
|
|
|
17
18
|
}: UnreadMessagesBadgeProps) => {
|
|
18
19
|
return (
|
|
19
20
|
<View
|
|
21
|
+
testID={TEST_IDS.UNREAD_COMMENTS_BADGE}
|
|
20
22
|
style={[
|
|
21
23
|
styles.container,
|
|
22
24
|
style,
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
} from '@magmamath/react-native-ui'
|
|
14
14
|
import { FormulaSheetModel } from '../model/model'
|
|
15
15
|
import { FormulaSheetModal } from './FormulaSheetModal'
|
|
16
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
16
17
|
|
|
17
18
|
type FormulaSheetProps = {
|
|
18
19
|
model: FormulaSheetModel
|
|
@@ -56,6 +57,7 @@ export const FormulaSheet = forwardRef<ButtonRef | null, FormulaSheetProps>(
|
|
|
56
57
|
<>
|
|
57
58
|
<Button
|
|
58
59
|
ref={ref}
|
|
60
|
+
testID={TEST_IDS.FORMULA_SHEET_BUTTON}
|
|
59
61
|
size={buttonSize}
|
|
60
62
|
variant={ButtonVariant.SECONDARY}
|
|
61
63
|
colorScheme={buttonColor}
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
LoaderType,
|
|
11
11
|
SPACING,
|
|
12
12
|
} from '@magmamath/react-native-ui'
|
|
13
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
13
14
|
|
|
14
15
|
type FormulaSheetModalProps = {
|
|
15
16
|
isLoading: boolean
|
|
@@ -39,7 +40,7 @@ export const FormulaSheetModal = ({
|
|
|
39
40
|
<TouchableWithoutFeedback onPress={onClose}>
|
|
40
41
|
<View style={styles.container}>
|
|
41
42
|
<TouchableWithoutFeedback onPress={(event) => event.stopPropagation()}>
|
|
42
|
-
<View style={styles.content}>
|
|
43
|
+
<View testID={TEST_IDS.FORMULA_SHEET_MODAL} style={styles.content}>
|
|
43
44
|
{isLoading ? (
|
|
44
45
|
<Loader type={LoaderType.PRIMARY} color={loaderColor} size={LoaderSize.LARGE} />
|
|
45
46
|
) : (
|
|
@@ -5,6 +5,7 @@ import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
|
|
|
5
5
|
import { IS_MOBILE } from '@magmamath/react-native-ui'
|
|
6
6
|
import { KEYBOARD_LAYOUTS } from '../../constants/keyboardLayouts'
|
|
7
7
|
import { getMainKeyboardGroup } from '../../helpers'
|
|
8
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
8
9
|
|
|
9
10
|
export const BasicLayout = ({ keys, ...props }: KeyboardLayoutProps & PropsWithChildren) => {
|
|
10
11
|
const keysByLocale = getMainKeyboardGroup(keys, KeyboardType.Basic)
|
|
@@ -18,7 +19,7 @@ export const BasicLayout = ({ keys, ...props }: KeyboardLayoutProps & PropsWithC
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
|
-
<View style={styles.container}>
|
|
22
|
+
<View style={styles.container} testID={TEST_IDS.KEYBOARD_BASIC_LAYOUT}>
|
|
22
23
|
<KeysList keys={keysToShow} numOfRows={2} {...props} />
|
|
23
24
|
{props.children || null}
|
|
24
25
|
</View>
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { View } from 'react-native'
|
|
2
3
|
import { KeysList } from '../KeysList/KeysList'
|
|
3
4
|
import { BasicLayout } from './BasicLayout'
|
|
4
5
|
import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
|
|
5
6
|
import { getMainKeyboardGroup } from '../../helpers'
|
|
7
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
6
8
|
|
|
7
9
|
export const CurrencyBasicLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
|
|
8
10
|
const keysGroup = getMainKeyboardGroup(keys, KeyboardType.BasicCurrency)
|
|
9
11
|
|
|
10
12
|
return (
|
|
11
13
|
<BasicLayout keys={keys} {...props}>
|
|
12
|
-
<
|
|
14
|
+
<View testID={TEST_IDS.KEYBOARD_CURRENCY_KEYS}>
|
|
15
|
+
<KeysList keys={keysGroup.keys} numOfRows={keysGroup.keys.length} {...props} />
|
|
16
|
+
</View>
|
|
13
17
|
</BasicLayout>
|
|
14
18
|
)
|
|
15
19
|
}
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { KeysList } from '../KeysList/KeysList'
|
|
3
|
-
import { StyleSheet } from 'react-native'
|
|
3
|
+
import { StyleSheet, View } from 'react-native'
|
|
4
4
|
import { BasicLayout } from './BasicLayout'
|
|
5
5
|
import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
|
|
6
6
|
import { getMainKeyboardGroup } from '../../helpers'
|
|
7
7
|
import { IS_MOBILE } from '@magmamath/react-native-ui'
|
|
8
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
8
9
|
|
|
9
10
|
export const TimeBasicLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
|
|
10
11
|
const keysGroup = getMainKeyboardGroup(keys, KeyboardType.BasicTime)
|
|
11
12
|
|
|
12
13
|
return (
|
|
13
14
|
<BasicLayout keys={keys} {...props}>
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
<View testID={TEST_IDS.KEYBOARD_TIME_KEYS}>
|
|
16
|
+
<KeysList
|
|
17
|
+
keys={keysGroup.keys}
|
|
18
|
+
numOfRows={keysGroup.numOfRows || keysGroup.keys.length}
|
|
19
|
+
style={{
|
|
20
|
+
option: {
|
|
21
|
+
text: styles.text,
|
|
22
|
+
button: styles.button,
|
|
23
|
+
container: styles.container,
|
|
24
|
+
},
|
|
25
|
+
}}
|
|
26
|
+
{...props}
|
|
27
|
+
/>
|
|
28
|
+
</View>
|
|
26
29
|
</BasicLayout>
|
|
27
30
|
)
|
|
28
31
|
}
|
|
@@ -5,6 +5,7 @@ import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
|
|
|
5
5
|
import { getMainKeyboardGroup } from '../../helpers'
|
|
6
6
|
import { MOBILE_LAYOUT_WIDTH } from '../../constants/keyboard.constants'
|
|
7
7
|
import { IS_MOBILE } from '@magmamath/react-native-ui'
|
|
8
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
8
9
|
|
|
9
10
|
export const BasicPlusLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
|
|
10
11
|
const { width } = useWindowDimensions()
|
|
@@ -16,7 +17,7 @@ export const BasicPlusLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
|
|
|
16
17
|
)
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
|
-
<View style={styles.container}>
|
|
20
|
+
<View style={styles.container} testID={TEST_IDS.KEYBOARD_BASIC_PLUS_LAYOUT}>
|
|
20
21
|
<KeysList keys={keysGroup.keys} numOfRows={3} {...props} />
|
|
21
22
|
</View>
|
|
22
23
|
)
|
|
@@ -5,6 +5,7 @@ import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
|
|
|
5
5
|
import { getMainKeyboardGroup } from '../../helpers'
|
|
6
6
|
import { IS_MOBILE } from '@magmamath/react-native-ui'
|
|
7
7
|
import { KEYBOARD_LAYOUTS } from '../../constants/keyboardLayouts'
|
|
8
|
+
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
8
9
|
|
|
9
10
|
export const BasicPlusPlusLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
|
|
10
11
|
const { width } = useWindowDimensions()
|
|
@@ -18,7 +19,7 @@ export const BasicPlusPlusLayout = ({ keys, ...props }: KeyboardLayoutProps) =>
|
|
|
18
19
|
)
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
|
-
<View style={styles.container}>
|
|
22
|
+
<View style={styles.container} testID={TEST_IDS.KEYBOARD_BASIC_PLUS_PLUS_LAYOUT}>
|
|
22
23
|
<KeysList keys={keysGroup.keys} numOfRows={3} {...props} />
|
|
23
24
|
</View>
|
|
24
25
|
)
|
|
@@ -12,6 +12,7 @@ import { isMobileWidth } from '../helpers'
|
|
|
12
12
|
import { KeyboardConfig } from '@magmamath/frontend-config'
|
|
13
13
|
import { KeyboardKey, KeyboardKeyValue } from '../types/types'
|
|
14
14
|
import { resolveKeyboard } from '../constants/keyboard.helpers'
|
|
15
|
+
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
15
16
|
|
|
16
17
|
type KeyboardProps = {
|
|
17
18
|
onKeyPress: (key: KeyboardKeyValue) => void
|
|
@@ -56,6 +57,7 @@ export const Keyboard = ({
|
|
|
56
57
|
|
|
57
58
|
return (
|
|
58
59
|
<Animated.View
|
|
60
|
+
testID={TEST_IDS.KEYBOARD}
|
|
59
61
|
style={[
|
|
60
62
|
styles.container,
|
|
61
63
|
style,
|