Skip to content

2.0.0

Latest

Choose a tag to compare

@spryker-release-bot spryker-release-bot released this 16 Nov 14:12

Included commits: 1.7.1...2.0.0

Breaking Changes

  • Replaced the Plotly based Back Office charts with ECharts. The spryker-zed-chart-plotly-main bundle was replaced with spryker-zed-chart-main, so the Zed frontend has to be rebuilt.
  • Removed the Back Office Twig chart plugins AbstractTwigChartPlugin, ChartTwigPlugin, TwigBarChartPlugin, TwigChartPlugin, TwigLineChartPlugin and TwigPieChartPlugin, together with TwigChartFunctionServiceProvider, ChartCommunicationFactory and the @Chart/_template/* and @Chart/_partials/plotly-chart.twig templates. The Twig plugins of spryker/chart-gui have to be used instead.
  • Removed the plugin stacks from ChartDependencyProvider: the PLUGIN_CHARTS and PLUGIN_TWIG_CHART_FUNCTIONS constants and the provideCommunicationLayerDependencies(), addChartPlugins(), getChartPlugins(), addTwigChartFunctionPlugins() and getTwigChartFunctionPlugins() methods. Chart plugins are registered in ChartGuiDependencyProvider::getChartPlugins().
  • Removed the Zed ChartConfig::getDefaultChartLayout() method.
  • Removed the Count orders, SKU and Title Zed translations. spryker/chart-gui and spryker/dashboard provide the translations the Back Office charts use.

Improvements

  • Introduced chart view strategies for the Back Office, exported from @zed/chart/js/modules as ChartFactory, mountCharts(), createDefaultChartStrategies(), AbstractChartStrategy and EChartsChartStrategy. The cartesian, daily-bar, pie, order-status and ranking views were provided.
  • Added the chart markup contract: each [data-chart] element is drawn by the strategy of the view named in its payload, from the <template data-chart-template> markup inside it.
  • Added the error state: a chart whose view is unknown or missing, or that fails to load, renders the error-state template.
  • Added ChartDataTransfer.view to select the chart view.

Adjustments

  • Replaced the plotly.js-dist-min frontend dependency with echarts and removed the assert, buffer and stream-browserify dev dependencies.
  • Removed the spryker/twig-extension requirement and added a conflict with spryker/chart-gui below 2.0.0.
  • Adjusted the ChartLayoutablePluginInterface::getChartLayout() specification: the Back Office chart Twig functions of spryker/chart-gui 2.0.0 and later ignore it.