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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chordia-ui",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Chordia Design System - UI components, tokens, and Tailwind preset",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -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
- // Outcome value (interaction-outcome-lift `p_full`) shown in
901
- // percent, in round brackets after the score — Figma 1798-5168.
902
- outcomePercent={
903
- resolvedOutcomeLift?.p_full != null
904
- ? Math.round(resolvedOutcomeLift.p_full * 100)
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