-
- Downloads
Fix #25637: SmartScalars should compactify like Scalars (#30337)
* copy compact logic from scalar * re-organize compactify logic * move duplicated logic into utils file * move scalarUtils * convert scalar_utils to typescript * add smartscalar unit tests for compactify * add unit tests for compactifyValue * refactor optional parameter * default to compact = false for fullScalarValue * refactor scalar_utils unit tests
Showing
- frontend/src/metabase/visualizations/lib/scalar_utils.ts 35 additions, 0 deletionsfrontend/src/metabase/visualizations/lib/scalar_utils.ts
- frontend/src/metabase/visualizations/lib/scalar_utils.unit.spec.ts 92 additions, 0 deletions...src/metabase/visualizations/lib/scalar_utils.unit.spec.ts
- frontend/src/metabase/visualizations/visualizations/Scalar.jsx 6 additions, 21 deletions...end/src/metabase/visualizations/visualizations/Scalar.jsx
- frontend/src/metabase/visualizations/visualizations/SmartScalar.jsx 34 additions, 16 deletions...rc/metabase/visualizations/visualizations/SmartScalar.jsx
- frontend/src/metabase/visualizations/visualizations/SmartScalar.unit.spec.js 44 additions, 2 deletions...se/visualizations/visualizations/SmartScalar.unit.spec.js
Please register or sign in to comment