Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync getting-started-page with framework #491

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions theia-extensions/product/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

.gs-float {
float: right;
padding-left: 20px;
}

.gs-logo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,51 +155,10 @@ export class TheiaIDEGettingStartedWidget extends GettingStartedWidget {
}

protected renderAIBanner(): React.ReactNode {
return <div className='gs-section'>
<div className='flex-grid'>
<div className='col'>
<h3 className='gs-section-header'> 🚀 AI Support in the Theia IDE is available! [Experimental] ✨</h3>

<div className='gs-action-container'>
Theia IDE now contains experimental AI support, which offers early access to cutting-edge AI capabilities within your IDE.
<br />
Please note that these features are disabled by default, ensuring that users can opt-in at their discretion.
For those who choose to enable AI support, it is important to be aware that these experimental features may generate continuous
requests to the language models (LLMs) you provide access to. This might incur costs that you need to monitor closely.
<br />
For more details, please visit &nbsp;
<a
role={'button'}
tabIndex={0}
onClick={() => this.doOpenExternalLink(this.theiaAIDocUrl)}
onKeyDown={(e: React.KeyboardEvent) => this.doOpenExternalLinkEnter(e, this.theiaAIDocUrl)}>
{'the documentation'}
</a>.
<br />
<br />
🚧 Please note that this feature is currently in development and may undergo frequent changes.
We welcome your feedback, contributions, and sponsorship! To support the ongoing development of the AI capabilities please visit the&nbsp;
<a
role={'button'}
tabIndex={0}
onClick={() => this.doOpenExternalLink(this.ghProjectUrl)}
onKeyDown={(e: React.KeyboardEvent) => this.doOpenExternalLinkEnter(e, this.ghProjectUrl)}>
{'Github Project'}
</a>.
&nbsp;Thank you for being part of our community!
</div>
<div className='gs-action-container'>
<a
role={'button'}
style={{ fontSize: 'var(--theia-ui-font-size2)' }}
tabIndex={0}
onClick={() => this.doOpenAIChatView()}
onKeyDown={(e: React.KeyboardEvent) => this.doOpenAIChatViewEnter(e)}>
{'Open the AI Chat View now to learn how to start! ✨'}
</a>
</div>
</div>
</div>
</div>;
const framework = super.renderAIBanner();
if (React.isValidElement<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>(framework)) {
return React.cloneElement(framework, { className: 'gs-section' });
}
return framework;
}
}