-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/rag-lecture-text
- Loading branch information
Showing
57 changed files
with
2,694 additions
and
115 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"scanSettings": { | ||
"enableScan": true, | ||
"baseBranches": ["develop"], | ||
"scanDependabotPR": false | ||
}, | ||
"checkRunSettings": { | ||
"vulnerableCheckRunConclusionLevel": "failure", | ||
"displayMode": "diff", | ||
"useMendCheckNames": true | ||
}, | ||
"issueSettings": { | ||
"minSeverityLevel": "MEDIUM", | ||
"issueType": "DEPENDENCY" | ||
}, | ||
"remediateSettings": { | ||
"workflowRules": { | ||
"enabled": true, | ||
"minVulnerabilityScore": 1.5, | ||
"maxVulnerabilityScore": 10 | ||
} | ||
} | ||
} |
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
84 changes: 84 additions & 0 deletions
84
playground/src/components/expert_evaluation/expert_evaluation_buttons.tsx
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,84 @@ | ||
import React from 'react'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faCircleInfo } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
const buttonBase = "px-4 py-2 rounded focus:outline-none transition-all"; | ||
const buttonPrimary = `${buttonBase} bg-blue-500 text-white hover:bg-blue-600`; | ||
const buttonSecondary = `${buttonBase} bg-gray-300 text-gray-700 hover:bg-gray-400`; | ||
const buttonFinish = `${buttonBase} bg-green-600 text-white hover:bg-green-700`; | ||
|
||
|
||
interface NextButtonProps { | ||
onClick?: () => void; | ||
isFinish?: boolean; | ||
isInline?: boolean; | ||
className?: string; | ||
} | ||
|
||
export function NextButton(nextButtonProps: NextButtonProps) { | ||
const { onClick, isFinish, isInline, className } = nextButtonProps; | ||
return <button | ||
onClick={onClick} | ||
className={`${isFinish ? buttonFinish : buttonPrimary} ${isInline ? 'inline-block' : 'w-full'} ${className}`} | ||
> | ||
{isFinish ? 'Finish 🏁' : 'Next ➡️'} | ||
</button> | ||
} | ||
|
||
|
||
interface SecondaryButtonProps { | ||
onClick?: () => void; | ||
isInline?: boolean; | ||
className?: string; | ||
text: string; | ||
isDisabled?: boolean; | ||
} | ||
|
||
export function SecondaryButton(secondaryButtonProps: SecondaryButtonProps) { | ||
const { onClick, isInline, className, text, isDisabled } = secondaryButtonProps; | ||
return <button | ||
onClick={onClick} | ||
className={`${buttonSecondary} ${isInline ? 'inline-block' : ''} ${className}`} | ||
disabled={isDisabled} | ||
> | ||
{text} | ||
</button> | ||
} | ||
|
||
|
||
interface PrimaryButtonProps { | ||
onClick?: () => void; | ||
isInline?: boolean; | ||
isDisabled?: boolean, | ||
className?: string; | ||
text: string; | ||
} | ||
|
||
export function PrimaryButton(primaryButtonProps: PrimaryButtonProps) { | ||
const { onClick, isInline, isDisabled, className, text } = primaryButtonProps; | ||
return <button | ||
onClick={onClick} | ||
className={`${buttonPrimary} ${isInline ? 'inline-block' : ''} ${className}`} | ||
disabled={isDisabled} | ||
> | ||
{text} | ||
</button> | ||
} | ||
|
||
|
||
interface InfoIconButtonProps { | ||
onClick?: () => void; | ||
className?: string; | ||
} | ||
|
||
export function InfoIconButton(infoIconButtonProps: InfoIconButtonProps) { | ||
const { onClick, className } = infoIconButtonProps; | ||
return <span | ||
onClick={onClick} | ||
className={`text-gray-400 cursor-pointer hover:text-gray-600 ${className}`} | ||
role="img" | ||
aria-label="info" | ||
> | ||
<FontAwesomeIcon icon={faCircleInfo} /> | ||
</span> | ||
} |
44 changes: 44 additions & 0 deletions
44
playground/src/components/expert_evaluation/expert_view/congratulation_screen.tsx
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 @@ | ||
import React, { useEffect, useState } from 'react'; | ||
import Confetti from 'react-confetti'; | ||
import background_image from "@/assets/evaluation_backgrounds/congratulations.jpeg"; | ||
|
||
export default function CongratulationScreen() { | ||
const [windowSize, setWindowSize] = useState({ width: window.innerWidth, height: window.innerHeight }); | ||
|
||
useEffect(() => { | ||
const handleResize = () => { | ||
setWindowSize({ | ||
width: window.innerWidth, | ||
height: window.innerHeight | ||
}); | ||
}; | ||
|
||
window.addEventListener('resize', handleResize); | ||
return () => window.removeEventListener('resize', handleResize); | ||
}, []); | ||
|
||
return ( | ||
<div | ||
className="fixed inset-0 bg-congratulation-bg bg-cover bg-center bg-black bg-opacity-75 flex items-center justify-center z-50" | ||
style={{ | ||
backgroundImage: `url(${background_image.src})`, | ||
backgroundSize: 'cover', | ||
backgroundPosition: 'center', | ||
}}> | ||
{/* Confetti effect */} | ||
<Confetti | ||
width={windowSize.width} | ||
height={windowSize.height} | ||
numberOfPieces={300} | ||
gravity={0.2} | ||
/> | ||
|
||
<div className="bg-white p-8 rounded-lg shadow-lg max-w-lg w-full text-center relative z-10"> | ||
<h1 className="text-4xl font-bold mb-4">Congratulations!</h1> | ||
<p className="text-lg mb-6"> | ||
You have successfully completed the expert evaluation. Thank you for your hard work! | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
}; |
34 changes: 34 additions & 0 deletions
34
playground/src/components/expert_evaluation/expert_view/continue_later_screen.tsx
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,34 @@ | ||
import React from 'react'; | ||
import background_image from "@/assets/evaluation_backgrounds/save-progress.jpeg"; | ||
import { PrimaryButton } from "@/components/expert_evaluation/expert_evaluation_buttons"; | ||
|
||
|
||
interface ContinueLaterScreenProps { | ||
onClose: () => void; | ||
} | ||
|
||
export default function ContinueLaterScreen(continueLaterScreenProps: ContinueLaterScreenProps) { | ||
const { onClose } = continueLaterScreenProps; | ||
|
||
return ( | ||
<div className="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50" | ||
style={{ | ||
backgroundImage: `url(${background_image.src})`, | ||
backgroundSize: 'cover', | ||
backgroundPosition: 'center', | ||
}} | ||
> | ||
<div className="bg-white p-8 rounded-lg shadow-lg max-w-lg w-full text-center"> | ||
<h1 className="text-4xl font-bold mb-4">Continue Later</h1> | ||
<p className="text-lg mb-6"> | ||
Your progress has been saved. You can continue the evaluation later using the same link. | ||
</p> | ||
<PrimaryButton | ||
onClick={onClose} | ||
text="Continue Evaluation" | ||
className="px-6 py-3 ml-4" | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; |
20 changes: 20 additions & 0 deletions
20
playground/src/components/expert_evaluation/expert_view/exercise_detail_popup.tsx
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,20 @@ | ||
import React from 'react'; | ||
import Popup from "@/components/expert_evaluation/expert_view/popup"; | ||
import ExerciseDetail from "@/components/details/exercise_detail"; | ||
import { Exercise } from "@/model/exercise"; | ||
|
||
interface ExerciseDetailPopupProps { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
exercise: Exercise; | ||
} | ||
|
||
export default function ExerciseDetailPopup(exerciseDetailPopupProps: ExerciseDetailPopupProps) { | ||
const { isOpen, onClose, exercise } = exerciseDetailPopupProps; | ||
|
||
return ( | ||
<Popup isOpen={isOpen} onClose={onClose} title={`Exercise Details: ${exercise.title}`}> | ||
<ExerciseDetail exercise={exercise} hideDisclosure={true} openedInitially={true} /> | ||
</Popup> | ||
); | ||
}; |
Oops, something went wrong.