@@ -167,11 +167,12 @@ const GENERAL_NOTIFICATION = (
167167 } as Notification ;
168168} ;
169169
170- const AWS_REINVENT_NOTIFICATION = ( updateUser : ( user : Partial < UserProtocol > ) => Promise < User > ) => {
170+ /* const AWS_REINVENT_NOTIFICATION = (updateUser: (user: Partial<UserProtocol>) => Promise<User>) => {
171171 return GENERAL_NOTIFICATION(
172172 "aws_reinvent_2024",
173173 <span className="text-md">
174- < b > See you at re:Invent!</ b > Book a demo with us, and join our developer productivity leaders roundtable (limited tickets) |{ " " }
174+ <b>See you at re:Invent!</b> Book a demo with us, and join our developer productivity leaders roundtable
175+ (limited tickets) |{" "}
175176 <a
176177 className="text-kumquat-ripe font-bold"
177178 href="https://www.gitpod.io/aws-reinvent-24"
@@ -184,6 +185,25 @@ const AWS_REINVENT_NOTIFICATION = (updateUser: (user: Partial<UserProtocol>) =>
184185 updateUser,
185186 "aws_reinvent_notification",
186187 );
188+ }; */
189+
190+ const FLEX_WEBINAR_NOTIFICATION = ( updateUser : ( user : Partial < UserProtocol > ) => Promise < User > ) => {
191+ return GENERAL_NOTIFICATION (
192+ "flex_webinar_2024" ,
193+ < span className = "text-md" >
194+ < b > Upcoming webinar:</ b > Gitpod Flex - Deploy your self-hosted CDE in 3 minutes |{ " " }
195+ < a
196+ className = "text-kumquat-ripe font-bold"
197+ href = "https://www.gitpod.io/webinars/gitpod-flex-demo"
198+ target = "_blank"
199+ rel = "noreferrer"
200+ >
201+ Register now
202+ </ a >
203+ </ span > ,
204+ updateUser ,
205+ "flex_webinar_notification" ,
206+ ) ;
187207} ;
188208
189209export function AppNotifications ( ) {
@@ -219,8 +239,12 @@ export function AppNotifications() {
219239 notifications . push ( GITPOD_FLEX_INTRODUCTION ( ( u : Partial < UserProtocol > ) => mutateAsync ( u ) ) ) ;
220240 }
221241
222- if ( isGitpodIo ( ) && ! user ?. profile ?. coachmarksDismissals [ "aws_reinvent_2024" ] ) {
223- notifications . push ( AWS_REINVENT_NOTIFICATION ( ( u : Partial < UserProtocol > ) => mutateAsync ( u ) ) ) ;
242+ // if (isGitpodIo() && !user?.profile?.coachmarksDismissals["aws_reinvent_2024"]) {
243+ // notifications.push(AWS_REINVENT_NOTIFICATION((u: Partial<UserProtocol>) => mutateAsync(u)));
244+ // }
245+
246+ if ( isGitpodIo ( ) && ! user ?. profile ?. coachmarksDismissals [ "flex_webinar_2024" ] ) {
247+ notifications . push ( FLEX_WEBINAR_NOTIFICATION ( ( u : Partial < UserProtocol > ) => mutateAsync ( u ) ) ) ;
224248 }
225249 }
226250
0 commit comments