feat: comment to test run's case (#390)

This commit is contained in:
kimatata
2026-02-23 12:26:07 +09:00
committed by GitHub
parent 1f4ac0ae7b
commit a9674c81ab
27 changed files with 1045 additions and 40 deletions

View File

@@ -44,6 +44,7 @@ type RunCaseType = {
caseId: number;
status: number;
editState: 'notChanged' | 'changed' | 'new' | 'deleted';
commentCount?: number;
};
type CaseAttachmentType = {

32
frontend/types/comment.ts Normal file
View File

@@ -0,0 +1,32 @@
type CommentType = {
id: number;
commentableType: 'RunCase' | 'Run' | 'Case';
commentableId: number;
userId: number;
content: string;
createdAt: string;
updatedAt: string;
User: {
id: number;
username: string;
email: string;
};
};
type CommentMessages = {
comments: string;
noComments: string;
addComment: string;
save: string;
cancel: string;
placeholder: string;
notIncludedInRun: string;
commentAdded: string;
failedToAddComment: string;
commentUpdated: string;
failedToUpdateComment: string;
commentDeleted: string;
failedToDeleteComment: string;
};
export type { CommentType, CommentMessages };

View File

@@ -89,6 +89,7 @@ type RunMessages = {
selected: string;
tags: string;
selectTags: string;
comments: string;
};
type RunDetailMessages = {
@@ -102,6 +103,9 @@ type RunDetailMessages = {
preconditions: string;
expectedResult: string;
detailsOfTheStep: string;
caseDetail: string;
comments: string;
history: string;
};
export type {