-
Notifications
You must be signed in to change notification settings - Fork 172
LLM Frontend #2554
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
Closed
Closed
LLM Frontend #2554
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b8ef27b
LLM Frontend
clementlemon02 967135d
Merge branch 'master' of https://github.com/source-academy/frontend i…
RichDom2185 d68f0a9
Use optional chaining and reformat files
RichDom2185 3f07e69
Run yarn format
RichDom2185 956a6d0
Merge branch 'master' into master
RichDom2185 d3e6e39
Merge branch 'master' into master
RichDom2185 443b232
Merge branch 'master' into master
RichDom2185 00f2cc6
Merge branch 'master' into master
RichDom2185 802cc65
Merge branch 'master' into master
RichDom2185 c694de1
fix lint issues
clementlemon02 b4b837d
Merge branch 'master' of https://github.com/clementlemon02/SA_frontend
clementlemon02 bf271ce
Merge branch 'master' into master
clementlemon02 8887a69
fix lint issues
clementlemon02 2e0f1f3
fix lint issues
clementlemon02 1738c6c
Merge branch 'master' of https://github.com/clementlemon02/SA_frontend
clementlemon02 49c5da7
fix lint issues
clementlemon02 c3dfea0
fix lint issues
clementlemon02 00149d2
fix lint issues
clementlemon02 f169755
Merge branch 'master' into master
RichDom2185 9a9fc68
Remove unnecessary empty line
RichDom2185 fe5728b
resolving comments
clementlemon02 5ab2851
Merge branch 'master' of https://github.com/clementlemon02/SA_frontend
clementlemon02 3ef944c
Merge branch 'master' into master
clementlemon02 197994f
fix format
clementlemon02 a45cdce
Merge branch 'master' of https://github.com/clementlemon02/SA_frontend
clementlemon02 63324f4
Merge branch 'master' into master
RichDom2185 8648f59
Merge branch 'master' into master
RichDom2185 6e2d8c5
Merge branch 'master' into master
RichDom2185 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { Classes, Dialog } from '@blueprintjs/core'; | ||
import { IconNames } from '@blueprintjs/icons'; | ||
import * as React from 'react'; | ||
|
||
import Markdown from '../Markdown'; | ||
import { Links } from '../utils/Constants'; | ||
import { useTypedSelector } from '../utils/Hooks'; | ||
|
||
type DialogProps = { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
}; | ||
|
||
const DropdownPrompt: React.FC<DialogProps> = props => { | ||
const defaultLlmPrompt = useTypedSelector(store => store.session.defaultLlmPrompt); | ||
|
||
return ( | ||
<Dialog | ||
className="help" | ||
icon={IconNames.ERROR} | ||
isCloseButtonShown={true} | ||
isOpen={props.isOpen} | ||
onClose={props.onClose} | ||
title="Help" | ||
> | ||
<div className={Classes.DIALOG_BODY}> | ||
{defaultLlmPrompt ? ( | ||
<Markdown content={defaultLlmPrompt} openLinksInNewWindow /> | ||
) : ( | ||
<> | ||
<p> | ||
We recommend recent updates of the browsers <b>Google Chrome</b>,{' '} | ||
<b>Microsoft Edge</b>, or <b>Mozilla Firefox</b> to visit the Source Academy. | ||
</p> | ||
<p> | ||
If you encounter issues with the Source Academy using these browsers, please use the | ||
issue system of the{' '} | ||
<a href={Links.githubIssues}>Source Academy frontend repository on GitHub</a>. | ||
</p> | ||
</> | ||
)} | ||
</div> | ||
</Dialog> | ||
); | ||
}; | ||
export default DropdownPrompt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.