Explore: Remove camel case from tracking labels (#56809) (#56856)

* refactor: remove camel case from tracking labels

* refactor: remove camel case from tracking labels

(cherry picked from commit b71e08ad59)

Co-authored-by: Laura Benz <48948963+L-M-K-B@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-10-13 13:01:34 +02:00
committed by GitHub
parent 17e197634e
commit 22ae442f56
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ export class AppWrapper extends React.Component<AppWrapperProps, AppWrapperState
navigationLogger('AppWrapper', false, 'rendering');
const commandPaletteActionSelected = (action: Action) => {
reportInteraction('commandPalette_action_selected', {
reportInteraction('command_palette_action_selected', {
actionId: action.id,
actionName: action.name,
});
@@ -55,7 +55,7 @@ export const CommandPalette = () => {
useEffect(() => {
if (showing) {
reportInteraction('commandPalette_opened');
reportInteraction('command_palette_opened');
// Do dashboard search on demand
getDashboardNavActions('go/dashboard').then((dashAct) => {
@@ -97,7 +97,7 @@ export const AddToDashboardModal = ({ onClose, exploreId }: Props) => {
setSubmissionError(undefined);
const dashboardUid = data.saveTarget === SaveTarget.ExistingDashboard ? data.dashboardUid : undefined;
reportInteraction('e2d_submit', {
reportInteraction('e_2_d_submit', {
newTab: openInNewTab,
saveTarget: data.saveTarget,
queries: exploreItem.queries.length,
@@ -144,7 +144,7 @@ export const AddToDashboardModal = ({ onClose, exploreId }: Props) => {
};
useEffect(() => {
reportInteraction('e2d_open');
reportInteraction('e_2_d_open');
}, []);
return (
@@ -69,13 +69,13 @@ class UnConnectedExploreToolbar extends PureComponent<Props> {
onOpenSplitView = () => {
const { split } = this.props;
split();
reportInteraction('grafana_explore_splitView_opened');
reportInteraction('grafana_explore_split_view_opened');
};
onCloseSplitView = () => {
const { closeSplit, exploreId } = this.props;
closeSplit(exploreId);
reportInteraction('grafana_explore_splitView_closed');
reportInteraction('grafana_explore_split_view_closed');
};
renderRefreshPicker = (showSmallTimePicker: boolean) => {