l-min-components 1.7.1430 → 1.7.1431

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.7.1430",
3
+ "version": "1.7.1431",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -27,6 +27,7 @@ const Grammar = ({ Aidata }) => {
27
27
  const feedbackCorrection = (
28
28
  data?.["Correction Operations (Optional)"] || []
29
29
  )?.filter((item) => ["substituted", "formatting"].includes(item?.operation));
30
+
30
31
  const originalText = data?.["Original Speech"] || "";
31
32
  const correctText = data?.["Grammatical Correct Version"] || "";
32
33
  const feedbacks = data?.["Feedback"];
@@ -51,7 +52,7 @@ const Grammar = ({ Aidata }) => {
51
52
  { label: "Feedback", value: 1, icon: ChatIcon },
52
53
  { label: "View script", value: 2, icon: AIcon },
53
54
  { label: "Corrected version", value: 3, icon: MarsIcon },
54
- ];
55
+ ].filter((item) => !(item?.value === 3 && Aidata?.score >= 100));
55
56
 
56
57
  return (
57
58
  <ModelComtainer>
@@ -153,7 +153,7 @@ const FullAnalysis = ({ data, onClose, accountType }) => {
153
153
  className="progress-section"
154
154
  >
155
155
  <span style={{ color: model?.primaryColor }}>
156
- {model?.score || 0}%
156
+ {Math.floor(model?.score) || 0}%
157
157
  </span>
158
158
  <Progress.Line
159
159
  percent={model?.score || 0}
@@ -17,7 +17,6 @@ const GradingModal = ({
17
17
  const [value, setValue] = useState(defaultScore || "");
18
18
 
19
19
  const numberValue = parseFloat(value || 0);
20
- const disable = selected === "manually" && (numberValue > 100 || !value);
21
20
 
22
21
  const isNumbter = parseFloat(aiValue) || 0;
23
22
  const isSuggestionNumber = parseFloat(suggestionValue) || 0;
@@ -111,7 +110,7 @@ const GradingModal = ({
111
110
  </TopSection>
112
111
  <ButtonComponent
113
112
  text="Save score"
114
- disabled={disable}
113
+ // disabled={disable}
115
114
  onClick={handleSetValue}
116
115
  />
117
116
  </Content>
@@ -128,7 +128,7 @@ const ReportQuestions = ({
128
128
  {toggleGrade && (
129
129
  <GradingModal
130
130
  aiValue={formatNumber(data?.ai_score)}
131
- suggestionValue={formatNumber(100)}
131
+ suggestionValue={formatNumber(data?.suggested_score)}
132
132
  noAi={noAi}
133
133
  setScore={handleScore}
134
134
  defaultScore={formatNumber(intructorScore)}