@@ -61,6 +61,10 @@ const fireConfetti = () => {
6161 } )
6262}
6363
64+ const handleNextStepEvent = ( wizardEventName : string , nextStepName : string ) => {
65+ event ( `firstMile.${ wizardEventName } .nextSteps.${ nextStepName } .clicked` )
66+ }
67+
6468export const Finish = ( props : OwnProps ) => {
6569 useEffect ( ( ) => {
6670 // if the finish step was opened during the session,
@@ -73,6 +77,7 @@ export const Finish = (props: OwnProps) => {
7377 }
7478 } , [ ] )
7579
80+ const showSampleApp = props . wizardEventName === 'pythonWizard'
7681 return (
7782 < >
7883 < h1 > Congrats!</ h1 >
@@ -82,22 +87,39 @@ export const Finish = (props: OwnProps) => {
8287 Curious to learn more? Try these next steps!
8388 </ p >
8489 < FlexBox margin = { ComponentSize . Medium } alignItems = { AlignItems . Stretch } >
85- < ResourceCard className = "homepage-wizard-next-steps" >
86- < SafeBlankLink href = "https://github.com/InfluxCommunity/sample-flask/blob/main/app.py" >
87- < h4 > { CodeTerminalIcon } Sample App</ h4 >
88- </ SafeBlankLink >
89- < p >
90- Play around with our template code of sample app to streamline your
91- own data into InfluxData.
92- </ p >
93- </ ResourceCard >
94- < ResourceCard className = "homepage-wizard-next-steps" >
90+ { showSampleApp && (
91+ < ResourceCard
92+ className = "homepage-wizard-next-steps"
93+ onClick = { ( ) =>
94+ handleNextStepEvent ( props . wizardEventName , 'sampleApp' )
95+ }
96+ >
97+ < SafeBlankLink href = "https://github.com/InfluxCommunity/sample-flask/blob/main/app.py" >
98+ < h4 > { CodeTerminalIcon } Sample App</ h4 >
99+ </ SafeBlankLink >
100+ < p >
101+ Play around with our template code of sample app to streamline
102+ your own data into InfluxData.
103+ </ p >
104+ </ ResourceCard >
105+ ) }
106+ < ResourceCard
107+ className = "homepage-wizard-next-steps"
108+ onClick = { ( ) =>
109+ handleNextStepEvent ( props . wizardEventName , 'keyConcepts' )
110+ }
111+ >
95112 < SafeBlankLink href = "https://docs.influxdata.com/influxdb/v2.2/reference/key-concepts/" >
96113 < h4 > { BookIcon } Key Concepts</ h4 >
97114 </ SafeBlankLink >
98115 < p > Learn about important concepts for writing time-series data.</ p >
99116 </ ResourceCard >
100- < ResourceCard className = "homepage-wizard-next-steps" >
117+ < ResourceCard
118+ className = "homepage-wizard-next-steps"
119+ onClick = { ( ) =>
120+ handleNextStepEvent ( props . wizardEventName , 'influxUniversity' )
121+ }
122+ >
101123 < SafeBlankLink href = "https://influxdbu.com/" >
102124 < h4 > { CodeTerminalIcon } InfluxDB University</ h4 >
103125 </ SafeBlankLink >
0 commit comments