Skip to content

Commit 2402450

Browse files
authored
Add news section with AI to welcome page (#15269)
* Add news section with AI to welcome page
1 parent 2a2c0ba commit 2402450

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

packages/getting-started/src/browser/getting-started-widget.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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'>

0 commit comments

Comments
 (0)