From 053fe9aa7978e61373ec8eba9ddd4df834dd24e1 Mon Sep 17 00:00:00 2001 From: Christian Swinehart Date: Tue, 10 Oct 2023 14:55:17 -0400 Subject: [PATCH] :hammer: (controls): add tracking labels to widgets --- .../grapher/src/controls/EntitySelectionToggle.tsx | 1 + .../@ourworldindata/grapher/src/controls/LabeledSwitch.tsx | 6 ++++-- .../@ourworldindata/grapher/src/controls/SettingsMenu.tsx | 4 +--- .../grapher/src/controls/settings/AbsRelToggle.tsx | 1 + .../grapher/src/controls/settings/AxisScaleToggle.tsx | 2 ++ .../grapher/src/controls/settings/FacetStrategySelector.tsx | 1 + .../grapher/src/controls/settings/FacetYDomainToggle.tsx | 1 + .../grapher/src/controls/settings/NoDataAreaToggle.tsx | 1 + .../grapher/src/controls/settings/TableFilterToggle.tsx | 1 + .../grapher/src/controls/settings/ZoomToggle.tsx | 1 + 10 files changed, 14 insertions(+), 5 deletions(-) diff --git a/packages/@ourworldindata/grapher/src/controls/EntitySelectionToggle.tsx b/packages/@ourworldindata/grapher/src/controls/EntitySelectionToggle.tsx index 8b0eee25bfb..7d67cfc1172 100644 --- a/packages/@ourworldindata/grapher/src/controls/EntitySelectionToggle.tsx +++ b/packages/@ourworldindata/grapher/src/controls/EntitySelectionToggle.tsx @@ -80,6 +80,7 @@ export class EntitySelectionToggle extends React.Component<{ onClick={(): void => { this.props.manager.isSelectingData = !active }} + data-track-note="chart_add_entity" > {label.icon}