Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading