diff --git a/frontend/scripts/react-components/dashboard-element/dashboard-modal-footer/dashboard-modal-footer.component.jsx b/frontend/scripts/react-components/dashboard-element/dashboard-modal-footer/dashboard-modal-footer.component.jsx
index 2b51617b04..7063dff32c 100644
--- a/frontend/scripts/react-components/dashboard-element/dashboard-modal-footer/dashboard-modal-footer.component.jsx
+++ b/frontend/scripts/react-components/dashboard-element/dashboard-modal-footer/dashboard-modal-footer.component.jsx
@@ -5,7 +5,6 @@ import Button from 'react-components/shared/button/button.component';
import Text from 'react-components/shared/text/text.component';
import { DASHBOARD_STEPS } from 'constants';
import './dashboard-modal-footer.scss';
-import ConfidenceWarning from 'react-components/shared/confidence-warning';
function DashboardModalFooter(props) {
const {
@@ -18,8 +17,7 @@ function DashboardModalFooter(props) {
onBack,
backText,
isDisabled,
- step,
- hasConfidenceWarning
+ step
} = props;
return (
@@ -32,7 +30,6 @@ function DashboardModalFooter(props) {
placement="top-end"
readOnly={step === DASHBOARD_STEPS.welcome}
/>
- {hasConfidenceWarning && }
{onBack && (
);
@@ -181,8 +179,7 @@ DashboardPanel.propTypes = {
cancelPanelsDraft: PropTypes.func.isRequired,
setSelectedItems: PropTypes.func.isRequired,
canProceed: PropTypes.bool.isRequired,
- countryNames: PropTypes.object.isRequired,
- hasConfidenceWarning: PropTypes.bool
+ countryNames: PropTypes.object.isRequired
};
export default DashboardPanel;
diff --git a/frontend/scripts/react-components/dashboard-element/dashboard-panel/dashboard-panel.jsx b/frontend/scripts/react-components/dashboard-element/dashboard-panel/dashboard-panel.jsx
index 62ec994e1b..50e5a06dcc 100644
--- a/frontend/scripts/react-components/dashboard-element/dashboard-panel/dashboard-panel.jsx
+++ b/frontend/scripts/react-components/dashboard-element/dashboard-panel/dashboard-panel.jsx
@@ -5,7 +5,7 @@ import {
getDraftDynamicSentence
} from 'react-components/dashboard-element/dashboard-element.selectors';
-import { getCountryNamesByCountryId, hasConfidenceWarning } from 'app/app.selectors';
+import { getCountryNamesByCountryId } from 'app/app.selectors';
import { nodesPanelActions } from 'react-components/nodes-panel/nodes-panel.register';
import { getCanProceed } from 'react-components/nodes-panel/nodes-panel.selectors';
@@ -18,8 +18,7 @@ const mapStateToProps = (state, ownProps) => {
canProceed: getCanProceed(state),
isDisabled: getIsDisabled(state, ownProps),
draftDynamicSentenceParts: getDraftDynamicSentence(state),
- countryNames: getCountryNamesByCountryId(state),
- hasConfidenceWarning: hasConfidenceWarning(state)
+ countryNames: getCountryNamesByCountryId(state)
};
};
diff --git a/frontend/scripts/react-components/profile/profile-components/summary/actor-summary.component.jsx b/frontend/scripts/react-components/profile/profile-components/summary/actor-summary.component.jsx
index 999f4818f0..07d23b4305 100644
--- a/frontend/scripts/react-components/profile/profile-components/summary/actor-summary.component.jsx
+++ b/frontend/scripts/react-components/profile/profile-components/summary/actor-summary.component.jsx
@@ -10,8 +10,6 @@ import Text from 'react-components/shared/text';
import Icon from 'react-components/shared/icon';
import formatValue from 'utils/formatValue';
import 'react-components/profile/profile-components/summary/summary.scss';
-import ConfidenceWarning from 'react-components/shared/confidence-warning';
-import { hasConfidenceWarningFunction } from 'app/app.selectors';
class ActorSummary extends React.PureComponent {
render() {
@@ -25,10 +23,6 @@ class ActorSummary extends React.PureComponent {
data: { nodeName, columnName, summary, headerAttributes } = {}
} = this.props;
const { commodityName, countryName } = context;
- // Warning is only applicable to exporter activity. If is importer it has many exporting contexts
- const hasConfidenceWarning =
- (columnName === 'EXPORTER' || columnName === 'EXPORTER GROUP') &&
- hasConfidenceWarningFunction(context);
const titles = [
{ name: columnName, label: 'Activity' },
{ name: commodityName, label: 'Commodity' },
@@ -154,9 +148,6 @@ class ActorSummary extends React.PureComponent {
titles={titles}
on={onChange}
/>
- {status !== Sticky.STATUS_FIXED && hasConfidenceWarning && (
-
- )}
{status !== Sticky.STATUS_FIXED &&
headerAttributes &&
Object.keys(headerAttributes).length > 0 &&
diff --git a/frontend/scripts/react-components/profile/profile-components/summary/country-summary.component.jsx b/frontend/scripts/react-components/profile/profile-components/summary/country-summary.component.jsx
index f2ab9d5d09..39ba404411 100644
--- a/frontend/scripts/react-components/profile/profile-components/summary/country-summary.component.jsx
+++ b/frontend/scripts/react-components/profile/profile-components/summary/country-summary.component.jsx
@@ -11,8 +11,6 @@ import SummaryTitle from 'react-components/profile/profile-components/summary/su
import Map from 'react-components/profile/profile-components/map.component';
import Text from 'react-components/shared/text';
import formatValue from 'utils/formatValue';
-import ConfidenceWarning from 'react-components/shared/confidence-warning';
-import { hasConfidenceWarningFunction } from 'app/app.selectors';
function CountrySummary(props) {
const {
@@ -45,11 +43,8 @@ function CountrySummary(props) {
);
const selectedCommodity = commodities.find(c => c.id === commodityId);
- const selectedContext = { commodityName: selectedCommodity.name, countryName };
const selectedActivity = activities.find(a => a.name === activity);
- // Warning is only applicable to exporter activity. If is importer it has many exporting contexts
- const hasConfidenceWarning =
- selectedActivity?.name === 'exporter' && hasConfidenceWarningFunction(selectedContext);
+
const titles = [
{
dropdown: true,
@@ -138,7 +133,6 @@ function CountrySummary(props) {
titles={titles}
on={newYear => onChange('year', newYear)}
/>
- {hasConfidenceWarning && }
{status !== Sticky.STATUS_FIXED &&
headerAttributes &&
Object.keys(headerAttributes).length > 0 &&
diff --git a/frontend/scripts/react-components/profile/profile-components/summary/place-summary.component.jsx b/frontend/scripts/react-components/profile/profile-components/summary/place-summary.component.jsx
index d7e32792a9..acbd58d9fb 100644
--- a/frontend/scripts/react-components/profile/profile-components/summary/place-summary.component.jsx
+++ b/frontend/scripts/react-components/profile/profile-components/summary/place-summary.component.jsx
@@ -11,8 +11,6 @@ import SummaryTitle from 'react-components/profile/profile-components/summary/su
import Map from 'react-components/profile/profile-components/map.component';
import Text from 'react-components/shared/text';
import formatValue from 'utils/formatValue';
-import ConfidenceWarning from 'react-components/shared/confidence-warning';
-import { hasConfidenceWarningFunction } from 'app/app.selectors';
function PlaceSummary(props) {
const {
@@ -36,7 +34,6 @@ function PlaceSummary(props) {
} = props;
const { commodityName } = context;
- const hasConfidenceWarning = hasConfidenceWarningFunction(context);
const titles = [
{ name: commodityName, label: 'Commodity' },
{
@@ -125,7 +122,6 @@ function PlaceSummary(props) {
)}
- {hasConfidenceWarning && }
{renderStats()}
diff --git a/frontend/scripts/react-components/shared/confidence-warning/confidence-warning.component.jsx b/frontend/scripts/react-components/shared/confidence-warning/confidence-warning.component.jsx
index 41f28e8909..247ed83ce1 100644
--- a/frontend/scripts/react-components/shared/confidence-warning/confidence-warning.component.jsx
+++ b/frontend/scripts/react-components/shared/confidence-warning/confidence-warning.component.jsx
@@ -1,36 +1,20 @@
import React from 'react';
-import PropTypes from 'prop-types';
import Text from 'react-components/shared/text';
import './confidence-warning.scss';
-const ConfidenceWarning = ({ variant, noIcon }) => (
-
- {!noIcon && (
-
- )}
+const ConfidenceWarning = () => (
+
+
Note:{' '}
- This data is based on new methodological approaches and we welcome feedback.
+ This dataset is experimental and we welcome feedback. Please refer to the methods to
+ understand the modelling work and its limitations.