File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,10 @@ class Tracking {
138
138
} ) ;
139
139
} ;
140
140
141
+ public trackBannerLinkClick = ( ) => {
142
+ this . fireTrackingEvent ( "TB" , "BANNER_LINK_CLICK" , { } ) ;
143
+ } ;
144
+
141
145
private getScreenValue = ( screenValue : Screen ) : string => {
142
146
return screenValue === Screen . EDITOR ? "query editor" : "type definitions" ;
143
147
} ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import { NeedleThemeProvider } from "@neo4j-ndl/react";
24
24
import type { GraphQLSchema } from "graphql" ;
25
25
26
26
import { invokeSegmentAnalytics } from "../../analytics/segment-snippet" ;
27
+ import { tracking } from "../../analytics/tracking" ;
27
28
import { CannySDK } from "../../common/canny" ;
28
29
import { ViewSelector } from "../../components/ViewSelector" ;
29
30
import { AuthContext } from "../../contexts/auth" ;
@@ -70,14 +71,17 @@ export const Main = () => {
70
71
const Banner = ( ) => {
71
72
return (
72
73
< div className = "h-8 w-full bg-lavender-45 text-neutral-10 text-center leading-8" >
73
- Win $250 by testing the GraphQL for Neo4j AuraDB.{ ` ` }
74
+ GraphQL for Neo4j AuraDB is now released .{ ` ` }
74
75
< a
75
- href = "https://neo4j.com/developer-blog/build-conways-game-of-life /"
76
+ href = "https://neo4j.com/docs/graphql/current/aura-graphql /"
76
77
className = "underline"
77
78
target = "_blank"
78
79
rel = "noreferrer"
80
+ onClick = { ( ) => {
81
+ tracking . trackBannerLinkClick ( ) ;
82
+ } }
79
83
>
80
- See Developer Blog for details
84
+ See Developer documentation for details
81
85
</ a >
82
86
.
83
87
</ div >
Original file line number Diff line number Diff line change @@ -144,11 +144,11 @@ export const SchemaView = ({ onSchemaChange }: Props) => {
144
144
}
145
145
146
146
if ( useStore . getState ( ) . constraint === ConstraintState . check . toString ( ) ) {
147
- await neoSchema . assertIndexesAndConstraints ( { driver : auth . driver , options : { create : false } } ) ;
147
+ await neoSchema . assertIndexesAndConstraints ( { driver : auth . driver } ) ;
148
148
}
149
149
150
150
if ( useStore . getState ( ) . constraint === ConstraintState . create . toString ( ) ) {
151
- await neoSchema . assertIndexesAndConstraints ( { driver : auth . driver , options : { create : true } } ) ;
151
+ await neoSchema . assertIndexesAndConstraints ( { driver : auth . driver } ) ;
152
152
}
153
153
154
154
const analyticsResults = rudimentaryTypeDefinitionsAnalytics ( typeDefs ) ;
You can’t perform that action at this time.
0 commit comments