@@ -133,17 +119,21 @@ export function Home({ projectId, messages }: Props) {
-
+
{messages.testTypes}
-
-
{messages.testTypes}
-
+
+
{messages.priority}
+
+
+
);
}
diff --git a/frontend/src/app/[locale]/projects/[projectId]/home/page.tsx b/frontend/src/app/[locale]/projects/[projectId]/home/page.tsx
index 591b411..5583605 100644
--- a/frontend/src/app/[locale]/projects/[projectId]/home/page.tsx
+++ b/frontend/src/app/[locale]/projects/[projectId]/home/page.tsx
@@ -19,6 +19,11 @@ export type HomeMessages = {
regression: string;
automated: string;
manual: string;
+ priority: string;
+ critical: string;
+ high: string;
+ medium: string;
+ low: string;
};
export default function Page({ params }: { params: { projectId: string } }) {
@@ -41,6 +46,11 @@ export default function Page({ params }: { params: { projectId: string } }) {
regression: t("regression"),
automated: t("automated"),
manual: t("manual"),
+ priority: t("priority"),
+ critical: t("critical"),
+ high: t("high"),
+ medium: t("medium"),
+ low: t("low"),
};
return (
<>
diff --git a/frontend/types/case.ts b/frontend/types/case.ts
index bf353a7..cde45a2 100644
--- a/frontend/types/case.ts
+++ b/frontend/types/case.ts
@@ -54,6 +54,11 @@ type CaseTypeCountType = {
count: number;
};
+type CasePriorityCountType = {
+ priority: number;
+ count: number;
+};
+
export type CasesMessages = {
testCaseList: string;
id: string;
@@ -119,4 +124,4 @@ export type CaseMessages = {
maxFileSize: string;
};
-export { CaseType, StepType, AttachmentType, CaseTypeCountType, CasesMessages, CaseMessages };
+export { CaseType, StepType, AttachmentType, CaseTypeCountType, CasePriorityCountType, CasesMessages, CaseMessages };
diff --git a/frontend/types/folder.ts b/frontend/types/folder.ts
index 4150dd6..fe5edf7 100644
--- a/frontend/types/folder.ts
+++ b/frontend/types/folder.ts
@@ -1,3 +1,5 @@
+import { CaseType } from "./case";
+
export type FolderType = {
id: number;
name: string;
@@ -6,6 +8,7 @@ export type FolderType = {
parentFolderId: number | null;
createdAt: string;
updatedAt: string;
+ Cases: CaseType[]; // additional property
};
export type FoldersMessages = {
diff --git a/frontend/types/project.ts b/frontend/types/project.ts
index 45988f0..0938e62 100644
--- a/frontend/types/project.ts
+++ b/frontend/types/project.ts
@@ -1,9 +1,14 @@
+import { FolderType } from "./folder";
+import { RunType } from "./run";
+
export type ProjectType = {
id: number;
name: string;
detail: string;
createdAt: string;
updatedAt: string;
+ Folders: FolderType[]; // additional property
+ Runs: RunType[]; // additional property
};
export type ProjectsMessages = {