-
Notifications
You must be signed in to change notification settings - Fork 584
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
Teacher Tool: Copilot Criteria Support #9953
Merged
thsparks
merged 32 commits into
master
from
thsparks/copilot_criteria_before_autorun_changes
Apr 10, 2024
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
2372ed4
One approach to having a validator plan for AI questions, still sever…
thsparks eb7b97e
Merge branch 'master' of https://github.com/microsoft/pxt into thspar…
thsparks b210067
Move ai eval into teacher tool. (Does not remove from editor yet). No…
thsparks ed379e2
Remove ai eval from editor. Not sure if we really want to expose this…
thsparks fb952bb
Fix Updating Result Display
thsparks 7f77388
Change "Not Evaluated" to "N/A"
thsparks 189e26f
Capitalize
thsparks d78ce27
Resize text area automatically when autoResize is true.
thsparks e5dce83
(Untested) Backend Request Changes to askCopilotQuestion
thsparks 3235655
Remove target parameter, change SHAREID to SHARE_ID
thsparks 806a65c
Remove evaluating... from the dropdown.
thsparks ed5bc8c
Use a "key" field for system parameters instead of "default"
thsparks 850989b
Do not print N/A results
thsparks b35f451
Vertical resize textarea when it's horizontally resized if autoresize…
thsparks 3ed5832
Hide notes while evaluation is in progress.
thsparks 84377d8
New loading indicator for results
thsparks 7b6a85b
Merge branch 'master' of https://github.com/microsoft/pxt into thspar…
thsparks f09f969
Make test criteria appear at the top and put shared before specific.
thsparks f31bd65
Add copilot url parameter for setting the endpoint to use.
thsparks ffa278a
Rings instead of circles for loading
thsparks 328b16d
Make copilot url param implicitly enable test criteria
thsparks ba54a94
Merge branch 'master' of https://github.com/microsoft/pxt into thspar…
thsparks 59dd7de
Remove newline change
thsparks d2a430c
Clarify the different set result transforms
thsparks 52dccca
Comment update
thsparks 0d83f85
Prettier
thsparks 38144f9
Less wordy description for AI question
thsparks 4b5cc24
import useEffect
thsparks e5bba55
askCopilotQuestion -> askCopilotQuestionAsync
thsparks 68ccfcf
Remove trailing slash assumption
thsparks b862442
Remove redundant "React."
thsparks 476a8e1
Remove value state. I don't think this is necessary.
thsparks 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 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 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 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 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 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 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,17 @@ | ||
import { classList } from "react-common/components/util"; | ||
import css from "./styling/ThreeDotsLoadingDisplay.module.scss"; | ||
import { Strings } from "../constants"; | ||
|
||
export interface ThreeDotsLoadingDisplayProps { | ||
className?: string; | ||
} | ||
// Three dots that move up and down in a wave pattern. | ||
export const ThreeDotsLoadingDisplay: React.FC<ThreeDotsLoadingDisplayProps> = ({ className }) => { | ||
return ( | ||
<div className={classList(className, css["loading-ellipsis"])} aria-label={Strings.Loading}> | ||
<i className={classList("far fa-circle", css["circle"], css["circle-1"])} aria-hidden={true} /> | ||
<i className={classList("far fa-circle", css["circle"], css["circle-2"])} aria-hidden={true} /> | ||
<i className={classList("far fa-circle", css["circle"], css["circle-3"])} aria-hidden={true} /> | ||
</div> | ||
); | ||
}; |
This file contains 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
44 changes: 44 additions & 0 deletions
44
teachertool/src/components/styling/ThreeDotsLoadingDisplay.module.scss
This file contains 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,44 @@ | ||
.loading-ellipsis { | ||
display: flex; | ||
flex-direction: row; | ||
gap: 1rem; | ||
padding-top: 1rem; | ||
align-items: center; | ||
color: var(--pxt-content-foreground); | ||
|
||
.circle { | ||
font-size: 1rem; | ||
|
||
@keyframes bounce { | ||
0% { | ||
transform: translateY(0); | ||
} | ||
|
||
25% { | ||
transform: translateY(-0.5rem); | ||
} | ||
|
||
50% { | ||
transform: translateY(0); | ||
} | ||
|
||
100% { | ||
transform: translateY(0); | ||
} | ||
} | ||
|
||
animation: bounce 750ms infinite ease-in-out; | ||
} | ||
|
||
.circle-1 { | ||
animation-delay: 0ms; | ||
} | ||
|
||
.circle-2 { | ||
animation-delay: 125ms; | ||
} | ||
|
||
.circle-3 { | ||
animation-delay: 250ms; | ||
} | ||
} |
This file contains 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wanted to ask about these. I don't really have a strong preference either way, but it was all lower case in the design which is why these were lowercase at the start. Do we know if there's a design pattern that we should follow for these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not aware of any pattern, but I think it looks cleaner with capitalized first letters when shown in the page.