diff --git a/teachertool/src/components/DebugInput.tsx b/teachertool/src/components/DebugInput.tsx index 22df0914a07e..7f4bb9de8795 100644 --- a/teachertool/src/components/DebugInput.tsx +++ b/teachertool/src/components/DebugInput.tsx @@ -10,25 +10,12 @@ import { runEvaluateAsync } from "../transforms/runEvaluateAsync"; interface IProps {} export const DebugInput: React.FC = ({}) => { - const [shareLink, setShareLink] = useState("https://makecode.microbit.org/S95591-52406-50965-65671"); - const evaluate = async () => { - await loadProjectMetadataAsync(shareLink); await runEvaluateAsync(); }; return (
-
- {lf("Share Link:")} - -
); -}; \ No newline at end of file +}; diff --git a/teachertool/src/components/EvalResultDisplay.tsx b/teachertool/src/components/EvalResultDisplay.tsx index 5f4afe038ade..b8a6127aef2c 100644 --- a/teachertool/src/components/EvalResultDisplay.tsx +++ b/teachertool/src/components/EvalResultDisplay.tsx @@ -28,20 +28,24 @@ export const EvalResultDisplay: React.FC = ({}) => { {Object.keys(teacherTool.evalResults ?? {}).map(criteriaInstanceId => { const result = teacherTool.evalResults[criteriaInstanceId]; const label = getTemplateStringFromCriteriaInstanceId(criteriaInstanceId); - return label && ( -
-

- {getTemplateStringFromCriteriaInstanceId(criteriaInstanceId)}: -

- {result === CriteriaEvaluationResult.InProgress &&
} - {result === CriteriaEvaluationResult.CompleteWithNoResult &&

{lf("N/A")}

} - {result === CriteriaEvaluationResult.Fail && ( -

{lf("Needs Work")}

- )} - {result === CriteriaEvaluationResult.Pass && ( -

{lf("Looks Good!")}

- )} -
+ return ( + label && ( +
+

+ {getTemplateStringFromCriteriaInstanceId(criteriaInstanceId)}: +

+ {result === CriteriaEvaluationResult.InProgress && ( +
+ )} + {result === CriteriaEvaluationResult.CompleteWithNoResult &&

{lf("N/A")}

} + {result === CriteriaEvaluationResult.Fail && ( +

{lf("Needs Work")}

+ )} + {result === CriteriaEvaluationResult.Pass && ( +

{lf("Looks Good!")}

+ )} +
+ ) ); })}
diff --git a/teachertool/src/components/HeaderBar.tsx b/teachertool/src/components/HeaderBar.tsx index 0bbdbe9007c2..d912d15ce290 100644 --- a/teachertool/src/components/HeaderBar.tsx +++ b/teachertool/src/components/HeaderBar.tsx @@ -73,7 +73,7 @@ export const HeaderBar: React.FC = () => { }; return ( - +
{getOrganizationLogo()} {getTargetLogo()} diff --git a/teachertool/src/components/MainPanel.tsx b/teachertool/src/components/MainPanel.tsx index 1ea3eaf6e9f0..0008ed3f4e9e 100644 --- a/teachertool/src/components/MainPanel.tsx +++ b/teachertool/src/components/MainPanel.tsx @@ -2,11 +2,10 @@ import * as React from "react"; // eslint-disable-next-line import/no-internal-modules import css from "./styling/MainPanel.module.scss"; -import { DebugInput } from "./DebugInput"; import { MakeCodeFrame } from "./MakecodeFrame"; -import { EvalResultDisplay } from "./EvalResultDisplay"; -import { ActiveRubricDisplay } from "./ActiveRubricDisplay"; import { SplitPane } from "./SplitPane"; +import { RubricWorkspace } from "./RubricWorkspace"; +import { ProjectWorkspace } from "./ProjectWorkspace"; interface IProps {} @@ -16,13 +15,11 @@ export const MainPanel: React.FC = () => { {/* Left side */} <> - - - + {/* Right side */} <> - +
diff --git a/teachertool/src/components/MakecodeFrame.tsx b/teachertool/src/components/MakecodeFrame.tsx index 76d88ead937c..8f8922a36b84 100644 --- a/teachertool/src/components/MakecodeFrame.tsx +++ b/teachertool/src/components/MakecodeFrame.tsx @@ -1,12 +1,16 @@ /// + +// eslint-disable-next-line import/no-internal-modules +import css from "./styling/MakeCodeFrame.module.scss"; + import { useContext, useEffect } from "react"; import { clearReady, setEditorRef } from "../services/makecodeEditorService"; import { AppStateContext } from "../state/appStateContext"; import { getEditorUrl } from "../utils"; -interface MakeCodeFrameProps {} +interface IProps {} -export const MakeCodeFrame: React.FC = () => { +export const MakeCodeFrame: React.FC = () => { const { state: teacherTool } = useContext(AppStateContext); // Clear iframe state when the iframe url is changed @@ -32,17 +36,13 @@ export const MakeCodeFrame: React.FC = () => { }; /* eslint-disable @microsoft/sdl/react-iframe-missing-sandbox */ - return ( -
- {teacherTool.projectMetadata && ( -