pull/4809/head
Stéphane Tetsing 6 months ago
parent c5f52d9fb4
commit 38c2b18c53
  1. 2
      apps/circuit-compiler/src/app/components/feedbackAlert.tsx
  2. 6
      apps/remix-ide/src/app/plugins/solcoderAI.tsx
  3. 2
      apps/vyper/src/app/components/CompileErrorCard.tsx
  4. 2
      libs/remix-ui/renderer/src/lib/renderer.tsx

@ -24,7 +24,7 @@ export function FeedbackAlert ({ message, askGPT }: FeedbackAlertProps) {
<span className="border border-success text-success btn-sm" onClick={(e) => { <span className="border border-success text-success btn-sm" onClick={(e) => {
e.stopPropagation() e.stopPropagation()
askGPT() askGPT()
}}>Ask Remix AI</span> }}>Ask RemixAI</span>
</div> </div>
</> </>
</RenderIf> </RenderIf>

@ -80,7 +80,7 @@ export class SolCoder extends Plugin {
async solidity_answer(prompt): Promise<any> { async solidity_answer(prompt): Promise<any> {
this.emit("aiInfering") this.emit("aiInfering")
this.call('layout', 'maximizeTerminal') this.call('layout', 'maximizeTerminal')
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for Remix AI answer...` }) this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for RemixAI answer...` })
_paq.push(['trackEvent', 'ai', 'solcoder', 'answering']) _paq.push(['trackEvent', 'ai', 'solcoder', 'answering'])
let result let result
@ -117,7 +117,7 @@ export class SolCoder extends Plugin {
async code_explaining(prompt, context:string=""): Promise<any> { async code_explaining(prompt, context:string=""): Promise<any> {
this.emit("aiInfering") this.emit("aiInfering")
this.call('layout', 'maximizeTerminal') this.call('layout', 'maximizeTerminal')
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for Remix AI answer...` }) this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for RemixAI answer...` })
_paq.push(['trackEvent', 'ai', 'solcoder', 'explaining']) _paq.push(['trackEvent', 'ai', 'solcoder', 'explaining'])
let result let result
@ -233,7 +233,7 @@ export class SolCoder extends Plugin {
async error_explaining(prompt): Promise<any> { async error_explaining(prompt): Promise<any> {
this.emit("aiInfering") this.emit("aiInfering")
this.call('layout', 'maximizeTerminal') this.call('layout', 'maximizeTerminal')
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for Remix AI answer...` }) this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for RemixAI answer...` })
_paq.push(['trackEvent', 'ai', 'solcoder', 'explaining']) _paq.push(['trackEvent', 'ai', 'solcoder', 'explaining'])
let result let result

@ -21,7 +21,7 @@ export function CompileErrorCard(props: { output: any, plugin: RemixClient }) {
<div className="d-flex flex-column pt-3 align-items-end mb-2"> <div className="d-flex flex-column pt-3 align-items-end mb-2">
<div> <div>
<span className="border border-ai text-ai btn-sm" onClick={async () => await props.plugin.askGpt(props.output.message)}> <span className="border border-ai text-ai btn-sm" onClick={async () => await props.plugin.askGpt(props.output.message)}>
Ask Remix AI Ask RemixAI
</span> </span>
<span className="ml-3 pt-1 py-1"> <span className="ml-3 pt-1 py-1">
<CopyToClipboard content={props.output.message} className={`p-0 m-0 far fa-copy alert alert-danger`} direction={'top'} /> <CopyToClipboard content={props.output.message} className={`p-0 m-0 far fa-copy alert alert-danger`} direction={'top'} />

@ -111,7 +111,7 @@ export const Renderer = ({ message, opt = {}, plugin }: RendererProps) => {
onClick={() => { askGtp() }} onClick={() => { askGtp() }}
style={{ borderColor: "var(--ai)" }} style={{ borderColor: "var(--ai)" }}
> >
Ask Remix AI Ask RemixAI
</span> </span>
</div> </div>

Loading…
Cancel
Save