chordia-ui 4.0.0 → 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 +465 -461
- package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +9 -7
package/package.json
CHANGED
|
@@ -152,6 +152,10 @@ const UpdatedInteractionDetails = ({
|
|
|
152
152
|
// Compass score props
|
|
153
153
|
compassScore, // gauge meter value — compass_score, range 0.5-5
|
|
154
154
|
compassMaxScore = 5,
|
|
155
|
+
// Compass score as a backend-computed percentage (0–100), shown in the
|
|
156
|
+
// bracket next to the score, e.g. "3.5 (62.5%)". Prefer this over any local
|
|
157
|
+
// score→percent conversion; null hides the bracket.
|
|
158
|
+
compassScorePct = null,
|
|
155
159
|
predictedCsat, // predicted objective number (e.g. compass_score) — shown as "03" top-right
|
|
156
160
|
predictedLabel = 'Predicted Objective',
|
|
157
161
|
compassLegends,
|
|
@@ -897,13 +901,11 @@ const UpdatedInteractionDetails = ({
|
|
|
897
901
|
predictedScore={predictedCsat ?? 0.5}
|
|
898
902
|
predictedLabel={predictedLabel}
|
|
899
903
|
legends={compassLegends}
|
|
900
|
-
//
|
|
901
|
-
//
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
: null
|
|
906
|
-
}
|
|
904
|
+
// Compass score as a percentage (0–100) in round brackets after
|
|
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}
|
|
907
909
|
/>
|
|
908
910
|
</div>
|
|
909
911
|
|