@@ -167,11 +167,12 @@ const GENERAL_NOTIFICATION = (
167
167
} as Notification ;
168
168
} ;
169
169
170
- const AWS_REINVENT_NOTIFICATION = ( updateUser : ( user : Partial < UserProtocol > ) => Promise < User > ) => {
170
+ /* const AWS_REINVENT_NOTIFICATION = (updateUser: (user: Partial<UserProtocol>) => Promise<User>) => {
171
171
return GENERAL_NOTIFICATION(
172
172
"aws_reinvent_2024",
173
173
<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) |{" "}
175
176
<a
176
177
className="text-kumquat-ripe font-bold"
177
178
href="https://www.gitpod.io/aws-reinvent-24"
@@ -184,6 +185,25 @@ const AWS_REINVENT_NOTIFICATION = (updateUser: (user: Partial<UserProtocol>) =>
184
185
updateUser,
185
186
"aws_reinvent_notification",
186
187
);
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
+ ) ;
187
207
} ;
188
208
189
209
export function AppNotifications ( ) {
@@ -219,8 +239,12 @@ export function AppNotifications() {
219
239
notifications . push ( GITPOD_FLEX_INTRODUCTION ( ( u : Partial < UserProtocol > ) => mutateAsync ( u ) ) ) ;
220
240
}
221
241
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 ) ) ) ;
224
248
}
225
249
}
226
250
0 commit comments