chordia-ui 4.0.1 → 4.0.2
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/components/UpdatedInteractionDetails.cjs.js +4 -4
- package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
- package/dist/components/UpdatedInteractionDetails.es.js +72 -72
- package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +4 -11
package/package.json
CHANGED
|
@@ -902,17 +902,10 @@ const UpdatedInteractionDetails = ({
|
|
|
902
902
|
predictedLabel={predictedLabel}
|
|
903
903
|
legends={compassLegends}
|
|
904
904
|
// Compass score as a percentage (0–100) in round brackets after
|
|
905
|
-
// the score — Figma 1798-5168.
|
|
906
|
-
// `compass_score_pct`;
|
|
907
|
-
// (
|
|
908
|
-
|
|
909
|
-
outcomePercent={
|
|
910
|
-
compassScorePct != null
|
|
911
|
-
? compassScorePct
|
|
912
|
-
: (compassScore != null
|
|
913
|
-
? Math.min(100, Math.max(0, Math.round(((compassScore - 1) / 4) * 1000) / 10))
|
|
914
|
-
: null)
|
|
915
|
-
}
|
|
905
|
+
// the score — Figma 1798-5168. Purely backend-driven via
|
|
906
|
+
// `compass_score_pct`; no local score→percent conversion. Null
|
|
907
|
+
// (field absent) hides the bracket.
|
|
908
|
+
outcomePercent={compassScorePct != null ? compassScorePct : null}
|
|
916
909
|
/>
|
|
917
910
|
</div>
|
|
918
911
|
|