Skip to content

Commit

Permalink
Add info tool tip to clarify running test cases and submitting code
Browse files Browse the repository at this point in the history
  • Loading branch information
solomonng2001 committed Nov 14, 2024
1 parent 6b55beb commit 28871f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/frontend/src/app/collaboration/[id]/page.tsx
Original file line number Diff line number Diff line change
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 @@ -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 28871f9

Please sign in to comment.