l-min-components 1.7.1426 → 1.7.1428
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/package.json +1 -1
- package/src/components/reportsComponents/fullAnalysis/components/Grammar.jsx +7 -2
- package/src/components/reportsComponents/fullAnalysis/components/SpeechAnalysis.jsx +18 -3
- package/src/components/reportsComponents/fullAnalysis/data.jsx +86 -30408
- package/src/components/reportsComponents/hooks/useRreportUtils.jsx +41 -35
- package/src/components/reportsComponents/reportQuestions/components/comment.jsx +1 -1
package/package.json
CHANGED
|
@@ -34,6 +34,8 @@ const Grammar = ({ Aidata }) => {
|
|
|
34
34
|
feedbacks
|
|
35
35
|
);
|
|
36
36
|
|
|
37
|
+
console.log(JSON.stringify(wordsFeedback));
|
|
38
|
+
|
|
37
39
|
const sentenceParts = renderCorrectedSentence(wordsFeedback);
|
|
38
40
|
|
|
39
41
|
useEffect(() => {
|
|
@@ -71,7 +73,9 @@ const Grammar = ({ Aidata }) => {
|
|
|
71
73
|
}}
|
|
72
74
|
>
|
|
73
75
|
{/* This will only be true for words with a correction (and a position) */}
|
|
74
|
-
{word?.
|
|
76
|
+
{word?.feedbackPosition && (
|
|
77
|
+
<span>{word?.feedbackPosition}</span>
|
|
78
|
+
)}
|
|
75
79
|
{word?.text}
|
|
76
80
|
</span>
|
|
77
81
|
))}
|
|
@@ -102,7 +106,8 @@ const Grammar = ({ Aidata }) => {
|
|
|
102
106
|
<div className="failed">
|
|
103
107
|
<RedX />
|
|
104
108
|
<span>
|
|
105
|
-
<span>{selectedWord?.
|
|
109
|
+
<span>{selectedWord?.feedbackPosition}</span>{" "}
|
|
110
|
+
{selectedWord?.text}
|
|
106
111
|
</span>
|
|
107
112
|
</div>
|
|
108
113
|
<div className="correct">
|
|
@@ -217,9 +217,24 @@ const SpeechAnalysis = ({
|
|
|
217
217
|
</p>
|
|
218
218
|
|
|
219
219
|
{isExcellent ? (
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
item?.["Phoneme Feedback Summary"] &&
|
|
221
|
+
item?.["Phoneme Feedback"] ? (
|
|
222
|
+
<div className="feedback">
|
|
223
|
+
<div className="feedback_header">
|
|
224
|
+
<div className="feedback_header-content">
|
|
225
|
+
{item?.["Phoneme Feedback Summary"] || ""}
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
<InlineClampedText
|
|
229
|
+
key={item?.id}
|
|
230
|
+
text={item?.["Phoneme Feedback"] || ""}
|
|
231
|
+
/>
|
|
232
|
+
</div>
|
|
233
|
+
) : (
|
|
234
|
+
<p className="good">
|
|
235
|
+
Perfect! you pronounced this sound correctly
|
|
236
|
+
</p>
|
|
237
|
+
)
|
|
223
238
|
) : (
|
|
224
239
|
<div className="feedback">
|
|
225
240
|
<div className="feedback_header">
|