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
1 change: 1 addition & 0 deletions assets/recentActivity/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
window.theme;
window.mainFont;
window.codeFont;
window.isJaegerEnabled;
window.recentActivityRefreshInterval;
window.recentActivityExpirationLimit;
window.recentActivityDocumentationURL;
Expand Down
33 changes: 31 additions & 2 deletions src/components/InstallationWizard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useState } from "react";
import { dispatcher } from "../../dispatcher";
import { usePrevious } from "../../hooks/usePrevious";
import { getActions } from "../../utils/getActions";
import { actions as globalActions } from "../common/App";
import { Loader } from "../common/Loader";
Expand All @@ -23,13 +24,34 @@ const firstStep = window.wizardSkipInstallationStep === true ? 1 : 0;

export const InstallationWizard = () => {
const [currentStep, setCurrentStep] = useState<number>(firstStep);
const previousStep = usePrevious(currentStep);
const [isCollectorModified, setIsCollectorModified] =
useState<boolean>(false);
const [isAlreadyUsingOtel, setIsAlreadyUsingOtel] = useState<boolean>(false);
const [connectionCheckStatus, setConnectionCheckStatus] =
useState<ConnectionCheckStatus>();

useEffect(() => {
if (previousStep === 0 && currentStep === 1) {
window.sendMessageToDigma({
action: globalActions.sendTrackingEvent,
payload: {
event_name: "installation wizard install step passed"
}
});
}
}, [previousStep, currentStep]);

useEffect(() => {
if (firstStep === 1) {
window.sendMessageToDigma({
action: globalActions.sendTrackingEvent,
payload: {
event_name: "installation wizard install step automatically passed"
}
});
}

const handleConnectionCheckResultData = (data: unknown) => {
const result = (data as ConnectionCheckResultData).result;
setConnectionCheckStatus(result);
Expand Down Expand Up @@ -66,6 +88,13 @@ export const InstallationWizard = () => {
url: "https://open.docker.com/extensions/marketplace?extensionId=digmaai/digma-docker-extension"
}
});
window.sendMessageToDigma({
action: globalActions.sendTrackingEvent,
payload: {
event_name:
"installation wizard get digma docker extension button clicked"
}
});
};

const handleContinueButtonClick = () => {
Expand Down Expand Up @@ -107,7 +136,7 @@ export const InstallationWizard = () => {
<>
<s.SectionTitle>Install Digma Docker Extension</s.SectionTitle>
<s.SectionDescription>
(Youll need{" "}
(You&apos;ll need{" "}
<s.Link
href={"https://www.docker.com/products/docker-desktop/"}
target={"_blank"}
Expand All @@ -128,7 +157,7 @@ export const InstallationWizard = () => {
backend:
</s.SectionTitle>
<s.SectionDescription>
(Youll need{" "}
(You&apos;ll need{" "}
<s.Link
href={"https://docs.docker.com/get-docker/"}
target={"_blank"}
Expand Down
3 changes: 2 additions & 1 deletion src/components/common/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const actions = getActions(ACTION_PREFIX, {
setColorMode: "SET_THEME",
setMainFont: "SET_MAIN_FONT",
setCodeFont: "SET_CODE_FONT",
openURLInDefaultBrowser: "OPEN_URL_IN_DEFAULT_BROWSER"
openURLInDefaultBrowser: "OPEN_URL_IN_DEFAULT_BROWSER",
sendTrackingEvent: "SEND_TRACKING_EVENT"
});

export const App = (props: AppProps) => {
Expand Down