Skip to content

Commit

Permalink
Merge pull request #91 from CS3219-AY2425S1/solomon/fix-multiple-code…
Browse files Browse the repository at this point in the history
…-saved-messages

Solomon/fix multiple code saved messages
  • Loading branch information
bensohh authored Nov 15, 2024
2 parents 60f044f + 28871f9 commit 34459a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion apps/frontend/src/app/collaboration/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default function CollaborationPage(props: CollaborationProps) {
customTestCases: "",
});
updateExecutionResults(data);
infoMessage("Test cases executed. Review the results below.");
successMessage("Test cases executed. Review the results below.");
sendExecutionResultsToMatchedUser(data);
} finally {
setIsLoadingTestCase(false);
Expand Down Expand Up @@ -500,6 +500,9 @@ export default function CollaborationPage(props: CollaborationProps) {
<div className="spinner-container">
{isLoadingSubmission && <Spin tip="Saving code..." />}
</div>
<Tooltip title="Submit will run public and hidden test cases before submitting">
<InfoCircleFilled className="submit-code" />
</Tooltip>
<Button
icon={<SendOutlined />}
iconPosition="end"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const CollaborativeEditor = forwardRef(
state.editorState &&
state.editorState.id !== latestLanguageChangeId
) {
latestSubmissionId = state.editorState.id;
latestLanguageChangeId = state.editorState.id;
setSelectedLanguage(state.editorState.language);
// if (props.user === state.user.name) {
// console.log("ownself update ownself");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
InfoCircleFilled,
PlayCircleOutlined,
} from "@ant-design/icons";
import { Button, Input, Spin, Tabs, TabsProps, Typography } from "antd";
import { Button, Input, Spin, Tabs, TabsProps, Tooltip, Typography } from "antd";
import "./styles.scss";
import { isTestResult, Test } from "@/app/services/execute";

Expand Down Expand Up @@ -100,6 +100,9 @@ export const TestcaseDetail = (props: TestcaseDetailProps) => {
<div className="spinner-container">
{props.isLoadingTestCase && <Spin tip="Running test cases..." />}
</div>
<Tooltip title="Run test cases will run public test cases">
<InfoCircleFilled className="run-test-cases-info" />
</Tooltip>
<Button
icon={<PlayCircleOutlined />}
iconPosition="end"
Expand Down

0 comments on commit 34459a2

Please sign in to comment.