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

@@ -1,5 +1,6 @@
import { ProjectType } from "@/types/project";
import { testTypes, priorities, testRunCaseStatus } from "@/config/selection";
import { HomeMessages } from "./page";
// aggregate folder, case, run mum
function aggregateBasicInfo(project: ProjectType) {
@@ -49,9 +50,9 @@ function aggregateTestPriority(project: ProjectType) {
return result;
}
function aggregateProgress(project: ProjectType) {
function aggregateProgress(project: ProjectType, messages: HomeMessages) {
let series = testRunCaseStatus.map((status) => {
return { name: status.uid, data: [] };
return { name: messages[status.uid], data: [] };
});
let categories = [];