File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
packages/getting-started/src/browser Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,13 @@ export class GettingStartedWidget extends ReactWidget {
149149 }
150150 { this . renderHeader ( ) }
151151 < hr className = 'gs-hr' />
152+ { this . aiIsIncluded &&
153+ < div className = 'flex-grid' >
154+ < div className = 'col' >
155+ { this . renderNews ( ) }
156+ </ div >
157+ </ div >
158+ }
152159 < div className = 'flex-grid' >
153160 < div className = 'col' >
154161 { this . renderStart ( ) }
@@ -403,6 +410,22 @@ export class GettingStartedWidget extends ReactWidget {
403410 return < WelcomePreferences preferenceService = { this . preferenceService } > </ WelcomePreferences > ;
404411 }
405412
413+ protected renderNews ( ) : React . ReactNode {
414+ return < div className = 'gs-section' >
415+ < h3 className = 'gs-section-header' > 🚀 AI Support in the Theia IDE is available (Alpha Version)! ✨</ h3 >
416+ < div className = 'gs-action-container' >
417+ < a
418+ role = { 'button' }
419+ style = { { fontSize : 'var(--theia-ui-font-size2)' } }
420+ tabIndex = { 0 }
421+ onClick = { ( ) => this . doOpenAIChatView ( ) }
422+ onKeyDown = { ( e : React . KeyboardEvent ) => this . doOpenAIChatViewEnter ( e ) } >
423+ { 'Open the AI Chat View now to learn how to start! ✨' }
424+ </ a >
425+ </ div >
426+ </ div > ;
427+ }
428+
406429 protected renderAIBanner ( ) : React . ReactNode {
407430 return < div className = 'gs-container gs-aifeature-container' >
408431 < div className = 'flex-grid' >
You can’t perform that action at this time.
0 commit comments