Skip to main content
Version: 0.0.35

Changelog

All notable changes to the kampmann-calcgateway-frontend (calc-interface) package.

0.0.35

Added

  • Reduced calc state — introduced the ReducedState model and threaded it through the utility functions and state initialization, enabling a compact, serializable representation of the calc interface state (#57).
  • Accessory stateReducedCalcState now supports calculable and non-calculable accessory states.
  • Color comments / paint mode — color-based comment handling on the CalculationTable:
    • calculationTableColorComments support in the model and an addColorCommentsToState helper.
    • A requestDataToComments utility integrated with initState, plus request-data generation that uses the dynamic product ID.
    • A PaintButton and floating-button UI for entering/editing comments.
    • A paintMode prop on ProductDataTable and selected-cell syncing against calculation results (#1043, #1062).
  • KapiLink component — generates localized product links. ReducedState-backed state handling.
  • CalculationTable tab control — added an initialTab prop and tab initialization logic that falls back to calculationResults.
  • AccessoryForm — added a reducedCallback and integrated the initial colors state.
  • Parameter-set overlap selection — on init, auto-select the InputParameterSet whose input values best overlap the persisted initState; an explicit selection in initState is respected and only the absence of one triggers the heuristic. Added as pure, unit-tested helpers with a Vitest setup for the package.
  • Init warnings — surface warnings when an initState value is missing from the parameter set or was overridden by a dependency (#1294).
  • Single calc point — collapse multi-point control-voltage inputs to a single representative value via applySingleCalcPoint, replacing the redundant onlyOneControlVoltage logic (#1257).
  • useDynamicInputParameterSet hook for dynamic input parameter sets (#1123).
  • Button icons and refined button label markup (#1147).
  • Single-CV mode expansion — pending CV state management for single calc point mode across components, single-CV mode enabled for categories with specific numeric-suffix keys, and a showAllCVSliders config option to toggle the visibility of disabled CV sliders in single-CV mode (documented alongside useSingleCalcPoint).
  • TESTSYSTEM UI control — added TESTSYSTEM to the UIControls enum.
  • Belgium & Luxembourg regions — added the BE and LU regions.
  • Value highlighting — optional IsHighlighted property on the CalculationResponse types, with ProductDataTable conditionally applying highlight table styles; bundled the Circular (CircularXXWeb) font assets (#1432).

Changed

  • Improved CalculationTable state handling for more reliable tab management.
  • Adjusted PaintButton class names and button styles for visual consistency and better UX.
  • Refactored state initialization: callback wrapping and optimized reduced-state updates.
  • Optimized string-value handling in ProductDataTable for consistent output (#1254).
  • Parameter-set scoring — refined scoring and selection: introduced ParameterSetScore (tracking missing/excess mismatches) and weighParameterSetScore for weighted divergence, and updated pickDefaultParameterSetIndex to prioritize the least-divergent set (#1388).
  • KapiLink export — the KapiLink component and its types are now exported from the package.
  • CalculationTable styling — restored the Circular font definitions and .performanceTableBody styles and refactored ProductDataTable formatting (#1432).

Fixed

  • Scope category updates to the specific group key.
  • Correct the category-group Length property and update the API proxy target.
  • Use the adjacent config when configuring the accessory modal.
  • Correct the language check in displayDecimal.
  • Variant table aggregation (#1096).

Build

  • Switch the package to a workspace:* dependency and refactor calc-related typings for the monorepo.
  • Upgrade Vite to 7.3.2 and mathjs to 15.2.0 (#906).