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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chordia-ui",
3
- "version": "4.0.1",
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",
@@ -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. Uses the backend-provided
906
- // `compass_score_pct`; falls back to the backend formula
907
- // ((score-1)/4*100, clamped) only when the field is absent
908
- // (older payloads). Null when neither is available → hides it.
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