From cb9d7fe5b1f4670bf2ee7cf917cebd6524ab7e97 Mon Sep 17 00:00:00 2001 From: Andrei Lakatos Date: Tue, 26 May 2026 08:30:51 -0400 Subject: [PATCH] Fixes #39357 - deprecate LineChart component that uses PF3 LineChart --- .../components/common/charts/LineChart/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/webpack/assets/javascripts/react_app/components/common/charts/LineChart/index.js b/webpack/assets/javascripts/react_app/components/common/charts/LineChart/index.js index 5b168b59d1..b44c1b0c21 100644 --- a/webpack/assets/javascripts/react_app/components/common/charts/LineChart/index.js +++ b/webpack/assets/javascripts/react_app/components/common/charts/LineChart/index.js @@ -1,8 +1,9 @@ -import React from 'react'; +import React, { useEffect } from 'react'; import PropTypes from 'prop-types'; import { LineChart as PfLineChart } from 'patternfly-react'; import { translate as __ } from '../../../../../react_app/common/I18n'; +import { deprecate } from '../../../../common/DeprecationService'; import { getLineChartConfig } from '../../../../../services/charts/LineChartService'; import MessageBox from '../../MessageBox'; @@ -25,6 +26,14 @@ const LineChart = ({ onclick, id, }) => { + useEffect(() => { + deprecate( + 'common/charts/LineChart (patternfly-react LineChart)', + '@patternfly/react-charts ChartLine / Chart', + '5.1' + ); + }, []); + const chartConfig = getLineChartConfig({ data, config,