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

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 };