Adjust Appearance
This commit is contained in:
@@ -196,7 +196,7 @@ export default function CaseEditor({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="p-5">
|
<div className="p-5">
|
||||||
<h6>Basic</h6>
|
<h6 className="font-bold">Basic</h6>
|
||||||
<Input
|
<Input
|
||||||
size="sm"
|
size="sm"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -302,7 +302,7 @@ export default function CaseEditor({
|
|||||||
<Divider className="my-6" />
|
<Divider className="my-6" />
|
||||||
{templates[testCase.template].name === "Text" ? (
|
{templates[testCase.template].name === "Text" ? (
|
||||||
<div>
|
<div>
|
||||||
<h6>Test Detail</h6>
|
<h6 className="font-bold">Test Detail</h6>
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<Textarea
|
<Textarea
|
||||||
size="sm"
|
size="sm"
|
||||||
@@ -332,7 +332,7 @@ export default function CaseEditor({
|
|||||||
) : (
|
) : (
|
||||||
<div>
|
<div>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<h6>Steps</h6>
|
<h6 className="font-bold">Steps</h6>
|
||||||
<Button
|
<Button
|
||||||
startContent={<Plus size={16} />}
|
startContent={<Plus size={16} />}
|
||||||
size="sm"
|
size="sm"
|
||||||
@@ -364,7 +364,7 @@ export default function CaseEditor({
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<Divider className="my-6" />
|
<Divider className="my-6" />
|
||||||
<h6>Attachments</h6>
|
<h6 className="font-bold">Attachments</h6>
|
||||||
<CaseAttachmentsEditor
|
<CaseAttachmentsEditor
|
||||||
attachments={testCase.Attachments}
|
attachments={testCase.Attachments}
|
||||||
onAttachmentDownload={(
|
onAttachmentDownload={(
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ export default function RunEditor({ projectId, runId }: Props) {
|
|||||||
<>
|
<>
|
||||||
<div className="border-b-1 dark:border-neutral-700 w-full p-3 flex items-center justify-between">
|
<div className="border-b-1 dark:border-neutral-700 w-full p-3 flex items-center justify-between">
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<Tooltip content="Back to runs" placement="left">
|
<Tooltip content="Back to runs">
|
||||||
<Button
|
<Button
|
||||||
isIconOnly
|
isIconOnly
|
||||||
size="sm"
|
size="sm"
|
||||||
@@ -288,7 +288,7 @@ export default function RunEditor({ projectId, runId }: Props) {
|
|||||||
|
|
||||||
<Divider className="my-6" />
|
<Divider className="my-6" />
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<h6 className="h-8">Select test cases</h6>
|
<h6 className="h-8 font-bold">Select test cases</h6>
|
||||||
<div>
|
<div>
|
||||||
{selectedKeys.size > 0 || selectedKeys === "all" ? (
|
{selectedKeys.size > 0 || selectedKeys === "all" ? (
|
||||||
<Dropdown>
|
<Dropdown>
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
|
import { Button, Tooltip } from "@nextui-org/react";
|
||||||
|
import { RotateCw } from "lucide-react";
|
||||||
const Chart = dynamic(() => import("react-apexcharts"), { ssr: false });
|
const Chart = dynamic(() => import("react-apexcharts"), { ssr: false });
|
||||||
|
|
||||||
const testCases = [
|
const testCases = [
|
||||||
{ name: "Passed", value: 12, color: "#17c964" },
|
{ name: "Passed", value: 12, color: "#059669" },
|
||||||
{ name: "Failed", value: 3, color: "#f31260" },
|
{ name: "Failed", value: 3, color: "#f87171" },
|
||||||
{ name: "Skipped", value: 14, color: "#71717a" },
|
{ name: "Retest", value: 4, color: "#fbbf24" },
|
||||||
{ name: "Untested", value: 32, color: "#d4d4d8" },
|
{ name: "Skipped", value: 14, color: "#4b5563" },
|
||||||
|
{ name: "Untested", value: 32, color: "#e5e7eb" },
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function RunProgressDounut() {
|
export default function RunProgressDounut() {
|
||||||
@@ -25,14 +28,27 @@ export default function RunProgressDounut() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="w-96 h-72">
|
||||||
<h1>Progress</h1>
|
<div className="flex items-center">
|
||||||
|
<h4 className="font-bold">Progress</h4>
|
||||||
|
<Tooltip content="Refresh">
|
||||||
|
<Button
|
||||||
|
isIconOnly
|
||||||
|
size="sm"
|
||||||
|
className="rounded-full bg-transparent ms-1"
|
||||||
|
onPress={() => console.log("refresh")}
|
||||||
|
>
|
||||||
|
<RotateCw size={16} />
|
||||||
|
</Button>
|
||||||
|
</Tooltip>
|
||||||
|
</div>
|
||||||
|
|
||||||
<Chart
|
<Chart
|
||||||
options={chartData.options}
|
options={chartData.options}
|
||||||
series={chartData.series}
|
series={chartData.series}
|
||||||
type="donut"
|
type="donut"
|
||||||
width={400}
|
width={"100%"}
|
||||||
height={400}
|
height={"100%"}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import {
|
|||||||
CopyMinus,
|
CopyMinus,
|
||||||
Circle,
|
Circle,
|
||||||
CircleCheck,
|
CircleCheck,
|
||||||
|
CircleDashed,
|
||||||
CircleX,
|
CircleX,
|
||||||
CircleSlash2,
|
CircleSlash2,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
@@ -75,6 +76,8 @@ export default function TestCaseSelector({
|
|||||||
return <Circle size={16} color="#d4d4d8" />;
|
return <Circle size={16} color="#d4d4d8" />;
|
||||||
} else if (uid === "passed") {
|
} else if (uid === "passed") {
|
||||||
return <CircleCheck size={16} color="#17c964" />;
|
return <CircleCheck size={16} color="#17c964" />;
|
||||||
|
} else if (uid === "retest") {
|
||||||
|
return <CircleDashed size={16} color="#f5a524" />;
|
||||||
} else if (uid === "failed") {
|
} else if (uid === "failed") {
|
||||||
return <CircleX size={16} color="#f31260" />;
|
return <CircleX size={16} color="#f31260" />;
|
||||||
} else if (uid === "skipped") {
|
} else if (uid === "skipped") {
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ const testRunStatus = [
|
|||||||
const testRunCaseStatus = [
|
const testRunCaseStatus = [
|
||||||
{ name: "Untested", uid: "untested", color: "primary" },
|
{ name: "Untested", uid: "untested", color: "primary" },
|
||||||
{ name: "Passed", uid: "passed", color: "success" },
|
{ name: "Passed", uid: "passed", color: "success" },
|
||||||
|
{ name: "Retest", uid: "retest", color: "warning" },
|
||||||
{ name: "Failed", uid: "failed", color: "danger" },
|
{ name: "Failed", uid: "failed", color: "danger" },
|
||||||
{ name: "Skipped", uid: "skipped", color: "primary" },
|
{ name: "Skipped", uid: "skipped", color: "primary" },
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user