Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/InstallationWizard/InstallStep/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ export const InstallStep = (props: InstallStepProps) => {
props.onGoToNextStep();
};

const handleSelectInstallTab = (tabIndex: number) => {
const handleInstallTabSelect = (tabIndex: number) => {
setSelectedInstallTab(tabIndex);
props.onInstallTabSelect(installTabs[tabIndex].title);
};

const handleSelectDockerComposeOSTab = (tabIndex: number) => {
Expand Down Expand Up @@ -167,7 +168,7 @@ export const InstallStep = (props: InstallStepProps) => {
<s.Container>
<Tabs
tabs={installTabs}
onSelect={handleSelectInstallTab}
onSelect={handleInstallTabSelect}
selectedTab={selectedInstallTab}
/>
<s.LoaderContainer>
Expand Down
1 change: 1 addition & 0 deletions src/components/InstallationWizard/InstallStep/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export interface InstallStepProps {
onConnectionStatusCheck: () => void;
onResetConnectionCheckStatus: () => void;
onGetDigmaDockerDesktopButtonClick: () => void;
onInstallTabSelect: (tabName: string) => void;
onGoToNextStep: () => void;
}
18 changes: 16 additions & 2 deletions src/components/InstallationWizard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const trackingEvents = addPrefix(
INSTALL_STEP_AUTOMATICALLY_PASSED: "install step automatically passed",
GET_DIGMA_DOCKER_EXTENSION_BUTTON_CLICKED:
"get digma docker extension button clicked",
OBSERVABILITY_BUTTON_CLICKED: "set observability button clicked"
OBSERVABILITY_BUTTON_CLICKED: "set observability button clicked",
TAB_CLICKED: "tab clicked"
},
" "
);
Expand Down Expand Up @@ -136,13 +137,25 @@ export const InstallationWizard = () => {
}
});
window.sendMessageToDigma({
action: globalActions.SET_TRACKING_EVENT,
action: globalActions.SEND_TRACKING_EVENT,
payload: {
eventName: trackingEvents.GET_DIGMA_DOCKER_EXTENSION_BUTTON_CLICKED
}
});
};

const handleInstallTabSelect = (tabName: string) => {
window.sendMessageToDigma({
action: globalActions.SEND_TRACKING_EVENT,
payload: {
eventName: trackingEvents.TAB_CLICKED,
data: {
tabName
}
}
});
};

const handleIsAlreadyUsingOtelChange = (value: boolean) => {
setIsAlreadyUsingOtel(value);
};
Expand Down Expand Up @@ -200,6 +213,7 @@ export const InstallationWizard = () => {
onGetDigmaDockerDesktopButtonClick={
handleGetDigmaDockerDesktopButtonClick
}
onInstallTabSelect={handleInstallTabSelect}
onGoToNextStep={goToNextStep}
/>
)
Expand Down