Display information of project on home tab

This commit is contained in:
Takeshi Kimata
2024-05-06 23:02:07 +09:00
parent 47457e45f4
commit de2f915c30
7 changed files with 86 additions and 41 deletions

View File

@@ -2,6 +2,7 @@ import React from "react";
import { useState, useEffect } from "react";
import dynamic from "next/dynamic";
import { ProgressSeriesType } from "@/types/run";
import { testRunCaseStatus } from "@/config/selection";
const Chart = dynamic(() => import("react-apexcharts"), { ssr: false });
type Props = {
@@ -36,6 +37,9 @@ export default function TestProgressBarChart({
legend: {
position: "right",
},
colors: testRunCaseStatus.map((itr) => {
return itr.chartColor;
}),
xaxis: {
type: "datetime",
categories: progressCategories,